REFACTOR Simplified rendering of press releases by utilizing a template part for the communique card
This commit is contained in:
parent
c856c91b16
commit
f3392e3ab8
|
|
@ -52,13 +52,8 @@
|
|||
<div class="communiques-de-presse__list">
|
||||
|
||||
<?php foreach ($communiques_de_presse as $communique) : ?>
|
||||
<div class="communique-card">
|
||||
<h3><?php echo get_the_title($communique->ID); ?></h3>
|
||||
<p><?php echo get_the_date('d F Y', $communique->ID); ?></p>
|
||||
<a href="<?php echo get_permalink($communique->ID); ?>" class="button">Voir le communiqué</a>
|
||||
</div>
|
||||
<?php get_template_part('template-parts/cards/communique-presse-card', '', array('communique_id' => $communique->ID)); ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -52,13 +52,8 @@
|
|||
<div class="communiques-de-presse__list">
|
||||
|
||||
<?php foreach ($communiques_de_presse as $communique) : ?>
|
||||
<div class="communique-card">
|
||||
<h3><?php echo get_the_title($communique->ID); ?></h3>
|
||||
<p><?php echo get_the_date('d F Y', $communique->ID); ?></p>
|
||||
<a href="<?php echo get_permalink($communique->ID); ?>" class="button">Voir le communiqué</a>
|
||||
</div>
|
||||
<?php get_template_part('template-parts/cards/communique-presse-card', '', array('communique_id' => $communique->ID)); ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user