<?php

/**
 * Displays the Hero part
 *
 * @package WordPress
 * @subpackage IZI_THEME
 * @since 1.0.0
 */

$heroimage = get_field('imgune', 15);
if (get_field('active', 15)) {
?>
	<!-- HERO IMG BEGIN -->
	<section class="container-fluid p-0 hero">
		<div class="col-12 position-relative">
			<img class="img-fluid w-100" src="<?php echo esc_url($heroimage['url']); ?>" alt="<?php echo esc_attr($image1['heroimage']); ?>">
			<div class="filterdiv col-md-6 position-absolute top-0 start-0">
				<h2 class="herotitle">Stranger Things</h2>
				<a class="btn btn-gradient btn-border btn-lg" href="<?php if (!empty(get_field('linktopage', 15))) : the_field('linktopage', 15);
																	endif; ?>">
					<?php if (!empty(get_field('text_bouton', 15))) : the_field('text_bouton', 15);
					endif; ?> >>></a>
			</div>
		</div>
	</section>
	<!-- HERO IMG END -->
<?php } ?>