FEATURE introducing component
This commit is contained in:
parent
3519963514
commit
b4dd09b606
21
template-parts/articles/article-references.php
Normal file
21
template-parts/articles/article-references.php
Normal 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>
|
||||||
Loading…
Reference in New Issue
Block a user