FEATURE Introducing new tab template part components
This commit is contained in:
parent
bbe045980f
commit
aa0e3a4281
|
|
@ -68,21 +68,10 @@ $articles = get_field('articles', $current_issue->ID);
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<?php get_template_part('template-parts/revues/table-matiere-revue', null, array(
|
||||||
<section class="table-matieres">
|
'revueID' => get_the_ID()
|
||||||
<h2 class="table-matieres__title">Table des matières</h2>
|
|
||||||
<ul class="post-grid__list article-grid__list">
|
|
||||||
<?php foreach ($issue_related_articles as $article) : ?>
|
|
||||||
<?php get_template_part('template-parts/articles/card-article', null, array(
|
|
||||||
|
|
||||||
'date' => $article->post_date,
|
|
||||||
'image' => get_the_post_thumbnail_url($article->ID),
|
|
||||||
'link' => get_the_permalink($article->ID),
|
|
||||||
'ID' => $article->ID
|
|
||||||
)); ?>
|
)); ?>
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user