44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
<?php get_header(); ?>
|
|
|
|
|
|
<?php
|
|
$postType = get_post_type();
|
|
$showAuthors = get_field('show_authors', get_the_ID());
|
|
$authors = get_field('authors', get_the_ID());
|
|
?>
|
|
|
|
|
|
|
|
<div class="page-single page--single-<?php echo $postType; ?>" data-article-id="<?php echo get_the_ID(); ?>">
|
|
<?php if (have_posts()) : ?>
|
|
<?php while (have_posts()) : the_post(); ?>
|
|
<?php get_template_part('template-parts/components/posts/post-header'); ?>
|
|
|
|
|
|
<div class="content-wrapper" data-active-tab="post">
|
|
|
|
|
|
<div class="content-area">
|
|
<?php get_template_part('template-parts/components/posts/post-content', null, array(
|
|
'ID' => get_the_ID(),
|
|
)); ?>
|
|
|
|
<?php get_template_part('template-parts/components/posts/post-authors', null, array(
|
|
'postId' => get_the_ID()
|
|
)); ?>
|
|
</div>
|
|
</div>
|
|
<?php endwhile; ?>
|
|
<?php endif; ?>
|
|
|
|
<!-- #### SOUTENIR #### -->
|
|
<?php get_template_part('template-parts/compositions/soutenir'); ?>
|
|
|
|
|
|
<!-- #### INFOLETTRE #### -->
|
|
<?php get_template_part('template-parts/compositions/infolettre'); ?>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|