Compare commits

..

No commits in common. "165721e03a4e8061e91f7287e347edd871032bef" and "df9a8c6d5e150d9711a4678b6b2a257345a999e5" have entirely different histories.

2 changed files with 15 additions and 26 deletions

View File

@ -219,19 +219,12 @@ function build_revues($request)
if ($revues->have_posts()) :
while ($revues->have_posts()) : $revues->the_post();
// get_template_part('template-parts/revues/card-revue', null, array(
// 'date' => get_the_date(),
// 'image' => get_the_post_thumbnail_url(),
// 'link' => get_the_permalink(),
// 'ID' => get_the_ID(),
// 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
// ));
get_template_part('template-parts/components/cards/post-card', null, array(
get_template_part('template-parts/revues/card-revue', null, array(
'date' => get_the_date(),
'image' => get_the_post_thumbnail_url(),
'link' => get_the_permalink(),
'ID' => get_the_ID(),
'showTags' => false,
'has_thumbnail_overlay' => true,
'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
));
endwhile;
else :

View File

@ -66,28 +66,24 @@ $thematiques = get_terms(array(
<option value="date_asc"><?php _e('Numéros anciens en premier', 'dynamiques'); ?></option>
<option value="title_asc"><?php _e('Par ordre alphabétique', 'dynamiques'); ?></option>
</select>
</div>
<ul class="post-grid__list">
<?php if ($revues->have_posts()) : ?>
<?php while ($revues->have_posts()) : $revues->the_post(); ?>
<?php get_template_part('template-parts/revues/card-revue', null, array(
<?php
//CODE TO DELETE BEACAUSE CARD HAS BEEN UPDATED WITH CARHOP POOST_CARD MODEL
// get_template_part('template-parts/revues/card-revue', null, array(
// 'date' => get_the_date(),
// 'image' => get_the_post_thumbnail_url(),
// 'link' => get_the_permalink(),
// 'ID' => get_the_ID(),
// 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
// ));
?>
<?php get_template_part('template-parts/components/cards/post-card', null, array(
'date' => get_the_date(),
'image' => get_the_post_thumbnail_url(),
'link' => get_the_permalink(),
'ID' => get_the_ID(),
'showTags' => false,
'has_thumbnail_overlay' => true,
'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
)); ?>
<?php endwhile; ?>
<?php endif; ?>