<?php
$photo_archives = get_field('photos_archives');
?>


<section class="homegarde-blocks-photos-archives">

	<div class="table_head" aria-hidden="true">
		<p>
			<?php echo __("Photos", "homegrade-theme__texte-fonctionnel") ?>
		</p>
		<p>
			<?php echo __("Nom de l'archive", "homegrade-theme__texte-fonctionnel") ?>
		</p>
		<p>
			<?php echo __("Référence", "homegrade-theme__texte-fonctionnel") ?>

		</p>
	</div>
	<ul class="homegarde-blocks-photos-archives__archives-grid">
		<?php foreach ($photo_archives as $archive_row) : ?>
			<li class="homegarde-blocks-photos-archives__archive-row">
				<figure>
					<img src="<?php echo $archive_row['url'] ?>" alt="<?php echo $archive_row['alt'] ?>">

					<figcaption class="figcaption">
						<h3 class="figcaption__title"><?php echo $archive_row['title'] ?></h3>
						<div>
							<p class="figcaption__description"><?php echo $archive_row['description'] ?></p>
							<p class="figcaption__caption"><?php echo $archive_row['caption'] ?></p>
						</div>
					</figcaption>
				</figure>
			</li>
		<?php endforeach; ?>


	</ul>

</section>