FEATURE Updating gneralized post-header component in carhop theme and using it in dynamiques with the adequate parameters
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Nonimart 2026-03-23 14:31:28 +01:00
parent e4299c020f
commit 9ccc48086d
3 changed files with 18 additions and 2 deletions

View File

@ -6,7 +6,15 @@ $revueID = get_field('related_revue', get_the_ID());
<div class="page-single page--single-articles" data-article-id="<?php echo get_the_ID(); ?>">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('template-parts/post-header'); ?>
<?php get_template_part(
'template-parts/components/posts/post-header',
null,
array(
'has_thumbnail_overlay' => true,
'thumbnail_position' => 'left'
)
); ?>
<?php get_template_part('template-parts/articles/article-toolbar'); ?>

View File

@ -15,7 +15,15 @@ $articles = get_field('articles', $current_issue->ID);
$issue_number = get_field('issue_number', $current_issue->ID);
?>
<?php get_template_part('template-parts/post-header'); ?>
<?php get_template_part(
'template-parts/components/posts/post-header',
null,
array(
'has_thumbnail_overlay' => true,
'thumbnail_position' => 'left'
)
); ?>
<?php get_template_part('template-parts/revues/revue-toolbar'); ?>