front-page.php 1.36 KB
Newer Older
imac's avatar
imac committed
1 2 3 4
<?php
get_header();
get_sidebar();
$url =  nap_attachment_image($ID);
5
?>
imac's avatar
imac committed
6
<div id="home">
7
	<div data-defaultimg ='<?php echo $url ;?>' class="transition img-wrapper" style ="background-image: url('<?php echo $url ;?>')"></div>
imac's avatar
imac committed
8 9 10 11 12 13 14
	<div class="news-btn circle-btn add-icon font-small animated zoomIn"><span>Nouveautés</span></div>
	<aside class="news-wrapper container ">
		<div class="news-header crete">
			<h2>Nouveautés</h2>
			<span class="close-btn"></span>
		</div>
		<div class="news-content">
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
			<?php
			if( get_field('nap_nouveautes',135) ):

				while ( has_sub_field('nap_nouveautes',135) ) :
					?>
				<article class = "row <?php the_sub_field('nv_taille');?>">
					<a href="<?php echo  the_sub_field('nv_lien');?>">
						<figure>
							<img src="<?php the_sub_field('nv_image');?>" alt="Nouveautés">
							<figcaption>
								<?php htmlspecialchars(the_sub_field('nv_titre'));?>
							</figcaption>
						</figure>
					</a>
				</article>
				<?php
				endwhile;
				endif;
				?>

			</div>
		</aside>
		<!--Menu for mobile-->
		<div class="home-footer-nav display--only-mobile">
			<div class="header">
				<div class="nav-wrapper footer-home-content">
					<div class="home-down-wrapper blue-bg"></div>
					<span class = "home-down chevron bottom hidden-elem  pink-btn abs-center"></span>
				</div>
			</div>
imac's avatar
imac committed
45
		</div>
46 47
	</div><!--END home -->
	<?php
imac's avatar
imac committed
48 49


50
	get_footer();