Compare commits
No commits in common. "165721e03a4e8061e91f7287e347edd871032bef" and "df9a8c6d5e150d9711a4678b6b2a257345a999e5" have entirely different histories.
165721e03a
...
df9a8c6d5e
|
|
@ -219,19 +219,12 @@ 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(),
|
||||||
'showTags' => false,
|
'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
|
||||||
'has_thumbnail_overlay' => true,
|
|
||||||
));
|
));
|
||||||
endwhile;
|
endwhile;
|
||||||
else :
|
else :
|
||||||
|
|
|
||||||
|
|
@ -66,28 +66,24 @@ $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(
|
||||||
|
|
||||||
<?php
|
'date' => get_the_date(),
|
||||||
//CODE TO DELETE BEACAUSE CARD HAS BEEN UPDATED WITH CARHOP POOST_CARD MODEL
|
'image' => get_the_post_thumbnail_url(),
|
||||||
// get_template_part('template-parts/revues/card-revue', null, array(
|
'link' => get_the_permalink(),
|
||||||
|
|
||||||
// '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(),
|
||||||
'showTags' => false,
|
'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
|
||||||
'has_thumbnail_overlay' => true,
|
|
||||||
)); ?>
|
)); ?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user