FEATURE passing a dedicated article-authors component

This commit is contained in:
Nonimart 2025-06-25 11:42:40 +02:00
parent 0e733e5988
commit 3fbd4a4ac6

View File

@ -1,15 +1,15 @@
<?php
get_header();
$revueID = get_field('related_revue', get_the_ID());
?>
<div class="page--single-articles" data-revue-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/articles/article-toolbar'); ?>
<div class="content-wrapper" data-active-tab="article">
<aside class="sidebar">
<div class="search-field">
@ -20,6 +20,10 @@ $revueID = get_field('related_revue', get_the_ID());
</aside>
<div class="content-area">
<?php get_template_part('template-parts/articles/article-authors', null, array(
'postId' => get_the_ID()
)); ?>
<?php get_template_part('template-parts/articles/article-informations', null, array(
'revueID' => $revueID
)); ?>
@ -27,12 +31,14 @@ $revueID = get_field('related_revue', get_the_ID());
<?php get_template_part('template-parts/revues/table-matiere-revue', null, array(
'revueID' => $revueID
)); ?>
<?php get_template_part('template-parts/articles/article-content', null, array(
'ID' => get_the_ID()
)); ?>
</div>
</div>