Compare commits
2 Commits
df9a8c6d5e
...
165721e03a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
165721e03a | ||
|
|
3c3e8615f3 |
|
|
@ -219,12 +219,19 @@ function build_revues($request)
|
||||||
if ($revues->have_posts()) :
|
if ($revues->have_posts()) :
|
||||||
while ($revues->have_posts()) : $revues->the_post();
|
while ($revues->have_posts()) : $revues->the_post();
|
||||||
|
|
||||||
get_template_part('template-parts/revues/card-revue', null, array(
|
// get_template_part('template-parts/revues/card-revue', null, array(
|
||||||
'date' => get_the_date(),
|
// 'date' => get_the_date(),
|
||||||
'image' => get_the_post_thumbnail_url(),
|
// 'image' => get_the_post_thumbnail_url(),
|
||||||
'link' => get_the_permalink(),
|
// '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(
|
||||||
'ID' => get_the_ID(),
|
'ID' => get_the_ID(),
|
||||||
'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
|
'showTags' => false,
|
||||||
|
'has_thumbnail_overlay' => true,
|
||||||
));
|
));
|
||||||
endwhile;
|
endwhile;
|
||||||
else :
|
else :
|
||||||
|
|
|
||||||
|
|
@ -66,24 +66,28 @@ $thematiques = get_terms(array(
|
||||||
<option value="date_asc"><?php _e('Numéros anciens en premier', 'dynamiques'); ?></option>
|
<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>
|
<option value="title_asc"><?php _e('Par ordre alphabétique', 'dynamiques'); ?></option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<ul class="post-grid__list">
|
<ul class="post-grid__list">
|
||||||
|
|
||||||
<?php if ($revues->have_posts()) : ?>
|
<?php if ($revues->have_posts()) : ?>
|
||||||
<?php while ($revues->have_posts()) : $revues->the_post(); ?>
|
<?php while ($revues->have_posts()) : $revues->the_post(); ?>
|
||||||
<?php get_template_part('template-parts/revues/card-revue', null, array(
|
|
||||||
|
|
||||||
'date' => get_the_date(),
|
<?php
|
||||||
'image' => get_the_post_thumbnail_url(),
|
//CODE TO DELETE BEACAUSE CARD HAS BEEN UPDATED WITH CARHOP POOST_CARD MODEL
|
||||||
'link' => get_the_permalink(),
|
// 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(
|
||||||
'ID' => get_the_ID(),
|
'ID' => get_the_ID(),
|
||||||
'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
|
'showTags' => false,
|
||||||
|
'has_thumbnail_overlay' => true,
|
||||||
)); ?>
|
)); ?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user