FEATURE Introducing actualites features

This commit is contained in:
Antoine M 2026-04-08 16:41:28 +02:00
parent 1e4649ba90
commit 7d34b8d50a
2 changed files with 50 additions and 10 deletions

View File

@ -9,28 +9,25 @@ $current_post_type = get_post_type();
<?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 #### -->
<?php get_template_part('template-parts/components/archive/post-grid', null, array(
'current_post_type' => 'expositions',
<?php get_template_part('template-parts/post-types/actualites/archive-grid', null, array(
'current_post_type' => 'actualites',
'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 #### -->
<?php get_template_part('template-parts/compositions/soutenir'); ?>
<!-- #### INFOLETTRE #### -->
<?php get_template_part('template-parts/compositions/infolettre'); ?>
</main>
<?php

43
single-actualites.php Normal file
View 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();