updating chapter header call with new subtitle parameter
This commit is contained in:
parent
a340310323
commit
341a4440db
|
|
@ -50,15 +50,12 @@ if (!function_exists('build_share_urls')) {
|
||||||
$currentThematique = get_the_terms(get_the_ID(), 'thematiques')[0];
|
$currentThematique = get_the_terms(get_the_ID(), 'thematiques')[0];
|
||||||
$mainThematique = getMainThematique($currentThematique);
|
$mainThematique = getMainThematique($currentThematique);
|
||||||
$thematiqueColorSlug = $mainThematique->slug;
|
$thematiqueColorSlug = $mainThematique->slug;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="post-conseil-page-container <?php echo $thematiqueColorSlug ? "post-conseil-page--" . $thematiqueColorSlug : "" ?>">
|
<div class="post-conseil-page-container <?php echo $thematiqueColorSlug ? "post-conseil-page--" . $thematiqueColorSlug : "" ?>">
|
||||||
<nav class=" breadcrumbs_navigation" aria-label="breadcrumbs">
|
<nav class=" breadcrumbs_navigation" aria-label="breadcrumbs">
|
||||||
<?php
|
<?php
|
||||||
$archiveConseils = get_page_by_template('template-archive-conseils.php')[0];
|
$archiveConseils = get_page_by_template('template-archive-conseils.php')[0];
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -117,6 +114,7 @@ if (!function_exists('build_share_urls')) {
|
||||||
?>
|
?>
|
||||||
<?php get_template_part('template-components/post-conseils/chapter-header', null, array(
|
<?php get_template_part('template-components/post-conseils/chapter-header', null, array(
|
||||||
'postID' => get_the_ID(),
|
'postID' => get_the_ID(),
|
||||||
|
'subtitle' => __("Les conseillers Homegrade vous guident", "homegrade-theme__texte-fonctionnel"),
|
||||||
'title' => get_the_title(get_the_ID()),
|
'title' => get_the_title(get_the_ID()),
|
||||||
'ctaUrl' => $relatedDocumentUrl,
|
'ctaUrl' => $relatedDocumentUrl,
|
||||||
'ctaTitle' => $relatedDocumentCtaTitle,
|
'ctaTitle' => $relatedDocumentCtaTitle,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user