FEATURE ADapting api to use reusable post-card component

This commit is contained in:
Nonimart 2026-03-23 15:28:28 +01:00
parent df9a8c6d5e
commit 3c3e8615f3

View File

@ -219,12 +219,19 @@ 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(),
// 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(
'ID' => get_the_ID(),
'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
'showTags' => false,
'has_thumbnail_overlay' => true,
));
endwhile;
else :