Compare commits

...

16 Commits

Author SHA1 Message Date
Antoine M
255e86649c FEATURE Introducing a has-overlap variation
All checks were successful
continuous-integration/drone/push Build is passing
2026-02-24 14:57:56 +01:00
Antoine M
809c0ec841 FEATURE Handling a new framed-rotated variation to choose if rotation or not for each image 2026-02-24 14:57:29 +01:00
Antoine M
544d67707a REFACTOR With a new folder architecture and a new php template part 2026-02-24 14:56:50 +01:00
Antoine M
e61446e2dd REBUILDING 2026-02-24 14:56:39 +01:00
Antoine M
e4ce27a833 REFACTOR With a new folder architecture and a new php template part 2026-02-24 14:56:23 +01:00
Antoine M
264a90b348 REFACTORE Moving taxonomy decalration to the shared taxonomy component to best handled mutualized taxonomies between both websites 2026-02-24 14:55:16 +01:00
Antoine M
c0cc11fe17 FEATURE Introducing the shared taxonomy component to best handled mujtualized taxonomies between both websites 2026-02-24 14:54:43 +01:00
Antoine M
f073f916a6 REFACTOR Updated menu icon colors for post types to use a consistent color scheme, enhancing visual coherence. 2026-02-24 14:54:05 +01:00
Antoine M
b249d9f460 FEATURE Addind a modified 'rest_base' for taxonomy top avoid errors due to confusion with default inherited types in the rest base 2026-02-24 14:53:47 +01:00
Antoine M
67df0f541b REFACTOR Updated menu icon colors for post types to improve visual consistency 2026-02-24 14:52:31 +01:00
Antoine M
0ce4a8bf36 REFACTOR Commenting now useless default post-type rename 2026-02-24 14:52:07 +01:00
Antoine M
e90d7edb76 FEATURE Extending post types support for post type expositions 2026-02-24 14:51:06 +01:00
Antoine M
cafe4c7bca FEATURE Extending post types support for post type recherche 2026-02-24 14:50:40 +01:00
Antoine M
e1ba2fb5ec FEATURE Extending post types support for post type communiques 2026-02-24 14:50:24 +01:00
Antoine M
9c9a49099d FEATURE Extending post types support for post type recherche 2026-02-24 14:49:52 +01:00
Antoine M
49980e322f FEATURE Declaring actualites post-type 2026-02-24 14:49:04 +01:00
15 changed files with 139 additions and 82 deletions

View File

@ -44,6 +44,28 @@ function carhop_create_posttype()
)
);
// ------- ACTUALITES ------- //
register_post_type(
'actualites',
// CPT Options
array(
'labels' => array(
'name' => __('Actualités'),
'singular_name' => __('Actualité'),
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'actualites'),
'show_in_rest' => true,
'menu_icon' => 'dashicons-admin-post',
'menu_position' => 4,
'supports' => array('title', 'editor', 'thumbnail'),
'taxonomies' => array('etiquettes'),
)
);
// -------DBMOB------- //
register_post_type(
@ -82,8 +104,8 @@ function carhop_create_posttype()
'show_in_rest' => true,
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.513 2.69841H17.4805C17.2208 2.69841 16.9935 2.92064 16.9935 3.1746V14.9524C16.9935 15.4603 16.5714 15.873 16.0519 15.873H10.4026V15.0794C10.4026 14.8254 10.1753 14.6032 9.91558 14.6032H7.31818C7.18831 14.6032 7.05844 14.6667 6.96104 14.7302C6.86364 14.7937 6.83117 14.9524 6.83117 15.0794V15.873H4.91558C4.46104 15.873 4.07143 15.619 3.94156 15.1746C3.94156 14.9841 3.94156 14.7619 4.1039 14.6032C4.3961 14.3175 4.78571 14.1587 5.20779 14.1587H14.8506C15.7273 14.1587 16.4091 13.4603 16.4091 12.6349V2.06349C16.4091 0.920635 15.4675 0 14.2987 0H5.11039C3.94156 0 3 0.920635 3 2.06349V15.3651C3.22727 16.2222 4.00649 16.8571 4.94805 16.8254H6.86364V19.5238C6.86364 19.7143 6.99351 19.873 7.15584 19.9683C7.35065 20.0317 7.54545 19.9683 7.67532 19.873L8.64935 18.9841L9.62338 19.873C9.72078 19.9683 9.85065 20 9.94805 20H10.1429C10.3377 19.9365 10.4351 19.746 10.4351 19.5556V16.8571H16.0844C17.1558 16.8571 18 16.0317 18 14.9841V3.1746C18 2.92064 17.7727 2.69841 17.513 2.69841ZM10.1104 10.5079C10.1104 10.7619 9.88312 10.9841 9.62338 10.9841C9.36364 10.9841 9.13636 10.7619 9.13636 10.5079V5.77778C9.13636 5.52381 9.36364 5.30159 9.62338 5.30159C9.88312 5.30159 10.1104 5.52381 10.1104 5.77778V10.5079ZM9.59091 3.1746H9.62338C9.91558 3.1746 10.1429 3.36508 10.2403 3.61905C10.3377 3.87302 10.2403 4.15873 10.0779 4.34921C9.91558 4.53968 9.59091 4.60317 9.33117 4.47619C9.07143 4.38095 8.90909 4.12698 8.90909 3.84127C8.90909 3.55556 9.23377 3.1746 9.59091 3.1746Z" fill="#9BA2A9"/></svg>'),
'menu_position' => 4,
'supports' => array('title', 'custom-fields'),
'taxonomies' => array('type'),
'taxonomies' => array('type', 'etiquettes'),
'supports' => array('title', 'custom-fields', 'editor', 'thumbnail'),
)
);
register_post_type(
@ -95,6 +117,8 @@ function carhop_create_posttype()
'singular_name' => __('Recherche'),
),
'menu_name' => 'Recherches participatives',
'show_in_rest' => true,
'supports' => array('title', 'custom-fields', 'editor', 'thumbnail'),
'public' => true,
'has_archive' => true,
'menu_position' => 4,
@ -124,7 +148,7 @@ function carhop_create_posttype()
'rewrite' => array('slug' => 'communiques-presse'),
'show_in_rest' => true,
'show_in_menu' => 'carhop-presse',
'supports' => array('title', 'custom-fields'),
'supports' => array('title', 'custom-fields', 'thumbnail'),
'menu_position' => 4,
)
);
@ -145,7 +169,7 @@ function carhop_create_posttype()
'rewrite' => array('slug' => 'expositions'),
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.25 3.92857H16.05L11.25 0.785714V0.714286C11.25 0.321429 10.9125 0 10.5 0C10.0875 0 9.75 0.321429 9.75 0.714286V0.785714L4.95 3.92857H3.75C3.3375 3.92857 3 4.25 3 4.64286V19.2857C3 19.6786 3.3375 20 3.75 20H17.25C17.6625 20 18 19.6786 18 19.2857V4.64286C18 4.25 17.6625 3.92857 17.25 3.92857ZM10.2 1.35714C10.3125 1.39286 10.3875 1.42857 10.5 1.42857C10.6125 1.42857 10.725 1.42857 10.8 1.35714L14.7 3.92857H6.3L10.2 1.35714ZM16.5 15.3571C14.1375 11.75 12.9375 11.1786 11.55 12.9286C11.4 13.1071 11.175 13.3571 10.875 13.6429C10.9875 13.9643 11.1 14.2857 11.25 14.6071C12 16.8929 12.9 17.3929 13.65 17.8214L13.8375 17.9286L14.925 18.5357H13.4625C12.6 18.0357 11.4375 17.5714 10.5375 14.8214C10.35 14.2857 10.2 13.8214 10.0125 13.4286C8.6625 10.2857 7.2 10.3571 6.225 11.1429C5.625 11.6429 5.0625 12.3929 4.5 13.2857V5.35714H16.5V15.3571ZM13.875 8.92857C14.5125 8.92857 15 8.46429 15 7.85714C15 7.25 14.5125 6.78571 13.875 6.78571C13.2375 6.78571 12.75 7.25 12.75 7.85714C12.75 8.46429 13.2375 8.92857 13.875 8.92857Z" fill="#9BA2A9"/></svg>'),
'show_in_rest' => true,
'supports' => array('title', 'custom-fields', 'editor'),
'supports' => array('title', 'custom-fields', 'editor', 'thumbnail'),
'menu_position' => 4,
)
);
@ -199,7 +223,7 @@ function carhop_register_taxonomies()
'search_items' => __('Rechercher des types', 'carhop-post-types'),
'not_found' => __('Non trouvé', 'carhop-post-types'),
'no_terms' => __('Aucun type', 'carhop-post-types'),
'items_list' => __('Liste des types', 'carhop-post-types'),
'items_list' => __('Liste des types', 'carhop-post-types'),
'items_list_navigation' => __('Navigation dans la liste des types', 'carhop-post-types'),
);
$args = array(
@ -211,6 +235,7 @@ function carhop_register_taxonomies()
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'show_in_rest' => true, // Important pour l'éditeur Gutenberg
'rest_base' => 'study_type',
'rewrite' => array('slug' => 'type'),
);
register_taxonomy('type', array('analyses-etudes'), $args);
@ -218,33 +243,34 @@ function carhop_register_taxonomies()
add_action('init', 'carhop_register_taxonomies', 0);
/* ------------------------------------------------
##### CHANGE LE NOM DES POSTS PAR ACTUALITES
--------------------------------------------------*/
function carhop_change_post_object()
{
$current_site = get_current_blog_id();
if ($current_site !== 1) return;
// function carhop_change_post_object()
// {
// $current_site = get_current_blog_id();
// if ($current_site !== 1) return;
$get_post_type = get_post_type_object('post');
$labels = $get_post_type->labels;
$labels->name = 'Actualités';
$labels->singular_name = 'Actualité';
$labels->add_new = 'Ajouter une actualité';
$labels->add_new_item = 'Ajouter une nouvelle actualité';
$labels->edit_item = 'Editer l\'actualité';
$labels->new_item = 'Actualité';
$labels->view_item = 'Voir l\'actualité';
$labels->search_items = 'Chercher une actualité';
$labels->not_found = 'Pas d\'actualité trouvée';
$labels->not_found_in_trash = 'Pas d\'actualité trouvée dans la corbeille';
$labels->all_items = 'Toutes les actualités';
$labels->menu_name = 'Actualités';
$labels->name_admin_bar = 'Actualités';
// $get_post_type = get_post_type_object('post');
// $labels = $get_post_type->labels;
// $labels->name = 'Actualités';
// $labels->singular_name = 'Actualité';
// $labels->add_new = 'Ajouter une actualité';
// $labels->add_new_item = 'Ajouter une nouvelle actualité';
// $labels->edit_item = 'Editer l\'actualité';
// $labels->new_item = 'Actualité';
// $labels->view_item = 'Voir l\'actualité';
// $labels->search_items = 'Chercher une actualité';
// $labels->not_found = 'Pas d\'actualité trouvée';
// $labels->not_found_in_trash = 'Pas d\'actualité trouvée dans la corbeille';
// $labels->all_items = 'Toutes les actualités';
// $labels->menu_name = 'Actualités';
// $labels->name_admin_bar = 'Actualités';
// remove_post_type_support('post', 'editor');
unregister_taxonomy_for_object_type('category', 'post');
unregister_taxonomy_for_object_type('post_tag', 'post');
}
// // remove_post_type_support('post', 'editor');
// unregister_taxonomy_for_object_type('category', 'post');
// unregister_taxonomy_for_object_type('post_tag', 'post');
// }
add_action('init', 'carhop_change_post_object');
// add_action('init', 'carhop_change_post_object');

View File

@ -27,7 +27,7 @@ function dynamiques_create_posttype()
'public' => true,
'has_archive' => true,
'show_in_rest' => true,
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="96" height="74" viewBox="0 0 96 74" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M86.4 2.2C81.6 0.7 76.3 0 71.3 0C62.9 0 53.8 1.7 47.5 6.5C41.2 1.7 32.2 0 23.8 0C15.4 0 6.3 1.7 0 6.5V69.8C0 70.9 1.1 72 2.2 72C3.3 72 2.8 71.8 3.3 71.8C9.1 69 17.6 67 23.8 67C30 67 41.3 68.7 47.6 73.5C53.4 69.8 64 67 71.4 67C78.8 67 85.9 68.3 91.9 71.5C92.3 71.7 92.5 71.7 93 71.7C94.1 71.7 95.2 70.6 95.2 69.5V6.5C92.6 4.6 89.8 3.3 86.6 2.2H86.4ZM86.4 60.5C81.6 59 76.5 58.3 71.3 58.3C64 58.3 53.4 61.1 47.5 64.8V15.1C53.3 11.4 63.9 8.6 71.3 8.6C78.7 8.6 81.7 9.2 86.4 10.8V60.5Z" fill="black"/></svg>'),
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="96" height="74" viewBox="0 0 96 74" fill="#9BA2A9" xmlns="http://www.w3.org/2000/svg"><path d="M86.4 2.2C81.6 0.7 76.3 0 71.3 0C62.9 0 53.8 1.7 47.5 6.5C41.2 1.7 32.2 0 23.8 0C15.4 0 6.3 1.7 0 6.5V69.8C0 70.9 1.1 72 2.2 72C3.3 72 2.8 71.8 3.3 71.8C9.1 69 17.6 67 23.8 67C30 67 41.3 68.7 47.6 73.5C53.4 69.8 64 67 71.4 67C78.8 67 85.9 68.3 91.9 71.5C92.3 71.7 92.5 71.7 93 71.7C94.1 71.7 95.2 70.6 95.2 69.5V6.5C92.6 4.6 89.8 3.3 86.6 2.2H86.4ZM86.4 60.5C81.6 59 76.5 58.3 71.3 58.3C64 58.3 53.4 61.1 47.5 64.8V15.1C53.3 11.4 63.9 8.6 71.3 8.6C78.7 8.6 81.7 9.2 86.4 10.8V60.5Z" fill="#9BA2A9"/></svg>'),
'menu_position' => 4,
'supports' => array(
'title',
@ -37,7 +37,6 @@ function dynamiques_create_posttype()
'revisions',
'author',
),
)
);
register_post_type(
@ -52,7 +51,7 @@ function dynamiques_create_posttype()
'has_archive' => true,
'show_in_rest' => true,
'menu_icon' => 'dashicons-edit-page',
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z" fill="black"/><path d="M11 14H4V12H11V14ZM14 10H4V8H14V10ZM14 6H4V4H14V6Z" fill="black"/></svg>'),
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="18" height="18" viewBox="0 0 18 18" fill="#9BA2A9" xmlns="http://www.w3.org/2000/svg"><path d="M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z" fill="#9BA2A9" /><path d="M11 14H4V12H11V14ZM14 10H4V8H14V10ZM14 6H4V4H14V6Z" fill="#9BA2A9" /></svg>'),
'menu_position' => 4,
'supports' => array(
'title',

View File

@ -8,47 +8,6 @@
*/
// Register Custom Taxonomy
function dynamiques_taxonomy_init()
{
$labels = array(
'name' => _x('Étiquettes', 'Taxonomy General Name', 'text_domain'),
'singular_name' => _x('Étiquette', 'Taxonomy Singular Name', 'text_domain'),
'menu_name' => __('Étiquettes', 'text_domain'),
'all_items' => __('Toutes les étiquettes', 'text_domain'),
'parent_item' => __('Étiquette parente', 'text_domain'),
'parent_item_colon' => __('Étiquette parente:', 'text_domain'),
'new_item_name' => __('Nouvelle étiquette', 'text_domain'),
'add_new_item' => __('Ajouter une étiquette', 'text_domain'),
'edit_item' => __('Modifier l\'étiquette', 'text_domain'),
'update_item' => __('Mettre à jour l\'étiquette', 'text_domain'),
'view_item' => __('Voir l\'étiquette', 'text_domain'),
'separate_items_with_commas' => __('Séparer les étiquettes avec des virgules', 'text_domain'),
'add_or_remove_items' => __('Ajouter ou supprimer des étiquettes', 'text_domain'),
'choose_from_most_used' => __('Choisir parmi les plus utilisées', 'text_domain'),
'popular_items' => __('Étiquettes populaires', 'text_domain'),
'search_items' => __('Rechercher des étiquettes', 'text_domain'),
'not_found' => __('Non trouvé', 'text_domain'),
'no_terms' => __('Aucune étiquette', 'text_domain'),
'items_list' => __('Liste des étiquettes', 'text_domain'),
'items_list_navigation' => __('Navigation dans la liste des étiquettes', 'text_domain'),
);
$args = array(
'show_in_rest' => true,
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'meta_box_cb' => false,
);
register_taxonomy('etiquettes', array('articles', 'revues'), $args);
}
add_action('init', 'dynamiques_taxonomy_init', 0);
/**
* SYNCHRONISATION DES TAGS ('ETIQUETTES') ENTRE ARTICLES ET REVUES.
*

View File

@ -0,0 +1,50 @@
<?php
/**
* Plugin Name: Carhop & Dynamiques Taxonomies Partagées
* Description: Gestion des taxonomies partagées entre carhop et dynamiques
* Author: Antoine M. @ Deligraph
* Text Domain: dynamiques-taxonomies
*/
// Register Custom Taxonomy
function shared_taxonomy_init()
{
$labels = array(
'name' => _x('Étiquettes', 'Taxonomy General Name', 'text_domain'),
'singular_name' => _x('Étiquette', 'Taxonomy Singular Name', 'text_domain'),
'menu_name' => __('Étiquettes', 'text_domain'),
'all_items' => __('Toutes les étiquettes', 'text_domain'),
'parent_item' => __('Étiquette parente', 'text_domain'),
'parent_item_colon' => __('Étiquette parente:', 'text_domain'),
'new_item_name' => __('Nouvelle étiquette', 'text_domain'),
'add_new_item' => __('Ajouter une étiquette', 'text_domain'),
'edit_item' => __('Modifier l\'étiquette', 'text_domain'),
'update_item' => __('Mettre à jour l\'étiquette', 'text_domain'),
'view_item' => __('Voir l\'étiquette', 'text_domain'),
'separate_items_with_commas' => __('Séparer les étiquettes avec des virgules', 'text_domain'),
'add_or_remove_items' => __('Ajouter ou supprimer des étiquettes', 'text_domain'),
'choose_from_most_used' => __('Choisir parmi les plus utilisées', 'text_domain'),
'popular_items' => __('Étiquettes populaires', 'text_domain'),
'search_items' => __('Rechercher des étiquettes', 'text_domain'),
'not_found' => __('Non trouvé', 'text_domain'),
'no_terms' => __('Aucune étiquette', 'text_domain'),
'items_list' => __('Liste des étiquettes', 'text_domain'),
'items_list_navigation' => __('Navigation dans la liste des étiquettes', 'text_domain'),
);
$args = array(
'show_in_rest' => true,
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'meta_box_cb' => false,
);
register_taxonomy('etiquettes', array('articles', 'revues', 'analyses-etudes', 'expositions', 'outils-pedagogiques'), $args);
}
add_action('init', 'shared_taxonomy_init', 0);

View File

@ -20,7 +20,7 @@ if ($personnalized_order) {
<div class="container mx-auto">
<ul class="comity-type__list">
<?php foreach ($teamMembers as $member) : ?>
<?php get_template_part('template-parts/cards/author-card', '', array('member_id' => $member->ID)); ?>
<?php get_template_part('template-parts/components/cards/member-card', '', array('member_id' => $member->ID)); ?>
<?php

View File

@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '7248346e1270cebc7ce0');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => 'ce820c62032b1c2239d6');

View File

@ -135,6 +135,10 @@ __webpack_require__.r(__webpack_exports__);
edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"],
save: _save__WEBPACK_IMPORTED_MODULE_3__["default"]
});
wp.blocks.registerBlockStyle("front-header/front-header", {
name: "has-overlap",
label: "Superposition du bloc suivant”"
});
/***/ }),

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@
<ul class="contact-persons__list">
<?php foreach ($contact_persons as $person) : ?>
<?php get_template_part('template-parts/cards/author-card', '', array('member_id' => $person->ID)); ?>
<?php get_template_part('template-parts/components/cards/member-card', '', array('member_id' => $person->ID)); ?>
<?php endforeach; ?>
</ul>
</div>
@ -45,6 +45,7 @@
'post_type' => 'communique-presse',
'posts_per_page' => 10,
));
?>
<h2 class="communiques-de-presse__title">Nos Communiqués de presse</h2>
@ -52,7 +53,8 @@
<div class="communiques-de-presse__list">
<?php foreach ($communiques_de_presse as $communique) : ?>
<?php get_template_part('template-parts/cards/communique-presse-card', '', array('communique_id' => $communique->ID)); ?>
<?php get_template_part('template-parts/components/cards/communique-presse-card', '', array('communique_id' => $communique->ID)); ?>
<?php endforeach; ?>
</div>
</div>

View File

@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '025809f38879d8aa4d9f');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '3f6b05b882c661442b82');

View File

@ -155,6 +155,11 @@ wp.blocks.registerBlockStyle("core/heading", {
wp.blocks.registerBlockStyle("core/image", {
name: "framed",
label: "Encadré",
isDefault: false
});
wp.blocks.registerBlockStyle("core/image", {
name: "framed-rotated",
label: "Encadré pivoté",
isDefault: true
});
wp.blocks.registerBlockStyle("core/image", {

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,11 @@
wp.blocks.registerBlockStyle("core/image", {
name: "framed",
label: "Encadré",
isDefault: false,
});
wp.blocks.registerBlockStyle("core/image", {
name: "framed-rotated",
label: "Encadré pivoté",
isDefault: true,
});
wp.blocks.registerBlockStyle("core/image", {

View File

@ -59,3 +59,8 @@ registerBlockType(metadata.name, {
edit: Edit,
save,
});
wp.blocks.registerBlockStyle("front-header/front-header", {
name: "has-overlap",
label: "Superposition du bloc suivant”",
});

View File

@ -12,7 +12,7 @@
<ul class="contact-persons__list">
<?php foreach ($contact_persons as $person) : ?>
<?php get_template_part('template-parts/cards/author-card', '', array('member_id' => $person->ID)); ?>
<?php get_template_part('template-parts/components/cards/member-card', '', array('member_id' => $person->ID)); ?>
<?php endforeach; ?>
</ul>
</div>
@ -45,6 +45,7 @@
'post_type' => 'communique-presse',
'posts_per_page' => 10,
));
?>
<h2 class="communiques-de-presse__title">Nos Communiqués de presse</h2>
@ -52,7 +53,8 @@
<div class="communiques-de-presse__list">
<?php foreach ($communiques_de_presse as $communique) : ?>
<?php get_template_part('template-parts/cards/communique-presse-card', '', array('communique_id' => $communique->ID)); ?>
<?php get_template_part('template-parts/components/cards/communique-presse-card', '', array('communique_id' => $communique->ID)); ?>
<?php endforeach; ?>
</div>
</div>