FEATURE Handling unpublished Recherches post type currently hidden
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2026-06-08 15:25:21 +02:00
parent 83b8b4f53c
commit 57bd7c13e9
3 changed files with 53 additions and 0 deletions

37
archive-recherches.php Normal file
View File

@ -0,0 +1,37 @@
<?php get_header(); ?>
<?php
$current_post_type = get_post_type();
?>
<main id="content" class="site-content flex-grow">
<?php get_template_part('template-parts/post-types/recherches/archive-header'); ?>
<!-- #### LATEST PARUTIONS #### -->
<?php get_template_part('template-parts/components/archive/latest-parutions', null, array(
'post_amount' => 1,
'post_type' => 'recherches',
));
?>
<!-- #### ARCHIVE POST GRID #### -->
<?php get_template_part('template-parts/components/archive/post-grid', null, array(
'current_post_type' => 'recherches',
'post_amount' => -1,
'grid_title' => 'Trouver une recherche',
)); ?>
<!-- #### SOUTENIR #### -->
<?php get_template_part('template-parts/compositions/soutenir'); ?>
<!-- #### INFOLETTRE #### -->
<?php get_template_part('template-parts/compositions/infolettre'); ?>
</main>
<?php
get_footer();

View File

@ -8,6 +8,7 @@
@apply content-[''] mr-2 h-6 w-6 inline-block;
}
&--recherches:before,
&--analyses-etudes:before,
&--expositions:before,
&--outils-pedagogiques:before,

View File

@ -0,0 +1,15 @@
<?php get_template_part('template-parts/page-header', null, array(
'title' => 'Recherches participatives',
'subtitle' => 'Des recherches construites avec les acteurs du terrain',
'description' => 'Le CARHOP mène des recherches participatives en collaboration avec des travailleur·euses, des associations et des collectifs. Ces projets croisent savoirs scientifiques, expériences vécues et mémoire collective afin de produire des analyses ancrées dans le réel et directement utiles à la compréhension des enjeux sociaux contemporains.',
'cover' => array(
'url' => get_stylesheet_directory_uri() . '/resources/img/covers/carhop-page-expositions-cover.svg',
'alt' => 'Revues'
),
'has_overlap' => true,
'background_style' => 'sliced',
'cta' => array(
'title' => __('Trouver une recherche participative', 'carhop'),
'url' => '#recherches-participatives',
)
));