updating chapter header call with new subtitle parameter

This commit is contained in:
Antoine M 2023-11-30 13:08:44 +01:00
parent a340310323
commit 341a4440db

View File

@ -50,15 +50,12 @@ if (!function_exists('build_share_urls')) {
$currentThematique = get_the_terms(get_the_ID(), 'thematiques')[0];
$mainThematique = getMainThematique($currentThematique);
$thematiqueColorSlug = $mainThematique->slug;
?>
<div class="post-conseil-page-container <?php echo $thematiqueColorSlug ? "post-conseil-page--" . $thematiqueColorSlug : "" ?>">
<nav class=" breadcrumbs_navigation" aria-label="breadcrumbs">
<?php
$archiveConseils = get_page_by_template('template-archive-conseils.php')[0];
?>
<ol>
<li>
@ -117,6 +114,7 @@ if (!function_exists('build_share_urls')) {
?>
<?php get_template_part('template-components/post-conseils/chapter-header', null, array(
'postID' => get_the_ID(),
'subtitle' => __("Les conseillers Homegrade vous guident", "homegrade-theme__texte-fonctionnel"),
'title' => get_the_title(get_the_ID()),
'ctaUrl' => $relatedDocumentUrl,
'ctaTitle' => $relatedDocumentCtaTitle,