FEATURE Introducing actualites features
This commit is contained in:
parent
1e4649ba90
commit
7d34b8d50a
|
|
@ -9,28 +9,25 @@ $current_post_type = get_post_type();
|
||||||
<?php get_template_part('template-parts/post-types/actualites/archive-header'); ?>
|
<?php get_template_part('template-parts/post-types/actualites/archive-header'); ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- #### LATEST PARUTIONS #### -->
|
|
||||||
<?php get_template_part('template-parts/components/archive/latest-parutions', null, array(
|
|
||||||
'post_amount' => 1,
|
|
||||||
'post_type' => 'expositions',
|
|
||||||
));
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- #### ANALYSES ET ETUDES POST GRID #### -->
|
<!-- #### ANALYSES ET ETUDES POST GRID #### -->
|
||||||
<?php get_template_part('template-parts/components/archive/post-grid', null, array(
|
<?php get_template_part('template-parts/post-types/actualites/archive-grid', null, array(
|
||||||
'current_post_type' => 'expositions',
|
'current_post_type' => 'actualites',
|
||||||
'post_amount' => -1,
|
'post_amount' => -1,
|
||||||
'grid_title' => 'Trouver une exposition',
|
'grid_title' => 'Toutes les actualités',
|
||||||
)); ?>
|
)); ?>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- #### AUTRES PUBLICATIONS #### -->
|
||||||
|
<?php get_template_part('template-parts/compositions/autres-publications'); ?>
|
||||||
|
|
||||||
<!-- #### SOUTENIR #### -->
|
<!-- #### SOUTENIR #### -->
|
||||||
<?php get_template_part('template-parts/compositions/soutenir'); ?>
|
<?php get_template_part('template-parts/compositions/soutenir'); ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- #### INFOLETTRE #### -->
|
<!-- #### INFOLETTRE #### -->
|
||||||
<?php get_template_part('template-parts/compositions/infolettre'); ?>
|
<?php get_template_part('template-parts/compositions/infolettre'); ?>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
||||||
43
single-actualites.php
Normal file
43
single-actualites.php
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
<?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();
|
||||||
Loading…
Reference in New Issue
Block a user