FEATURE passing a dedicated article-authors component
This commit is contained in:
parent
0e733e5988
commit
3fbd4a4ac6
|
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
get_header();
|
get_header();
|
||||||
$revueID = get_field('related_revue', get_the_ID());
|
$revueID = get_field('related_revue', get_the_ID());
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="page--single-articles" data-revue-id="<?php echo get_the_ID(); ?>">
|
<div class="page--single-articles" data-revue-id="<?php echo get_the_ID(); ?>">
|
||||||
<?php if (have_posts()) : ?>
|
<?php if (have_posts()) : ?>
|
||||||
<?php while (have_posts()) : the_post(); ?>
|
<?php while (have_posts()) : the_post(); ?>
|
||||||
<?php get_template_part('template-parts/post-header'); ?>
|
<?php get_template_part('template-parts/post-header'); ?>
|
||||||
|
|
||||||
<?php get_template_part('template-parts/articles/article-toolbar'); ?>
|
<?php get_template_part('template-parts/articles/article-toolbar'); ?>
|
||||||
|
|
||||||
<div class="content-wrapper" data-active-tab="article">
|
<div class="content-wrapper" data-active-tab="article">
|
||||||
<aside class="sidebar">
|
<aside class="sidebar">
|
||||||
<div class="search-field">
|
<div class="search-field">
|
||||||
|
|
@ -20,6 +20,10 @@ $revueID = get_field('related_revue', get_the_ID());
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<div class="content-area">
|
<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(
|
<?php get_template_part('template-parts/articles/article-informations', null, array(
|
||||||
'revueID' => $revueID
|
'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(
|
<?php get_template_part('template-parts/revues/table-matiere-revue', null, array(
|
||||||
'revueID' => $revueID
|
'revueID' => $revueID
|
||||||
)); ?>
|
)); ?>
|
||||||
|
|
||||||
<?php get_template_part('template-parts/articles/article-content', null, array(
|
<?php get_template_part('template-parts/articles/article-content', null, array(
|
||||||
'ID' => get_the_ID()
|
'ID' => get_the_ID()
|
||||||
)); ?>
|
)); ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user