FEATURE introducing component

This commit is contained in:
Nonimart 2025-06-25 18:12:41 +02:00
parent 3519963514
commit b4dd09b606

View File

@ -0,0 +1,21 @@
<?php
$postId = $args['postId'];
$references = get_field('references', $postId);
?>
<div id="article-references" class="article-references">
<h3 class="content-tab__title">Références</h2>
<?php if ($references) : ?>
<ul class="references-list">
<?php foreach ($references as $reference) : ?>
<li class="reference-item">
<?php echo $reference['content']; ?>
</li>
<?php endforeach; ?>
</ul>
<?php else : ?>
<p class="references-list__empty">Aucune référence trouvée</p>
<?php endif; ?>
</div>