Handling Dynamic Sections titles

This commit is contained in:
Antoine M 2023-11-29 09:49:42 +01:00
parent cc87bcc259
commit 772c481cce

View File

@ -156,9 +156,11 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
-----------------*/ ?> -----------------*/ ?>
<section class="brochures-archives"> <section class="brochures-archives">
<div class="section_titling section_titling--left"> <div class="section_titling section_titling--left">
<?php
<h2 class="section_titling__title"><?php echo __("Nos Brochures thématiques", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?></h2> $sectionBrochureDatas = get_field('section_brochure_datas', $current_page_id);
<p class="section_titling__subtitle">Curabitur eleifend neque eu erat lacinia tincidunt</p> ?>
<h2 class="section_titling__title"><?php echo $sectionBrochureDatas['title'] ?></h2>
<p class="section_titling__subtitle"><?php echo $sectionBrochureDatas['subtitle'] ?></p>
</div> </div>
<!-- BROCHURES GRID --> <!-- BROCHURES GRID -->
@ -186,8 +188,11 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
------------------*/ ?> ------------------*/ ?>
<section class="fiches-infos-archives"> <section class="fiches-infos-archives">
<div class="section_titling section_titling--left"> <div class="section_titling section_titling--left">
<h2 class="section_titling__title"><?php echo __("Nos Fiches infos", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?></h2> <?php
<p class="section_titling__subtitle">Phasellus elit turpis, viverra id porta gravida</p> $sectionFichesInfosDatas = get_field('section_fiches_infos_datas', $current_page_id);
?>
<h2 class="section_titling__title"><?php echo $sectionFichesInfosDatas['title'] ?></h2>
<p class="section_titling__subtitle"><?php echo $sectionFichesInfosDatas['subtitle'] ?></p>
</div> </div>
@ -211,8 +216,11 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
-----------------------*/ ?> -----------------------*/ ?>
<section class="videos-webinaires-archives"> <section class="videos-webinaires-archives">
<div class="section_titling section_titling--left"> <div class="section_titling section_titling--left">
<h2 class="section_titling__title"><?php echo __("Nos vidéos et webinaires", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?></h2> <?php
<p class="section_titling__subtitle">Phasellus elit turpis, viverra id porta gravida</p> $sectionWebinairesDatas = get_field('section_webinaires_datas', $current_page_id);
?>
<h2 class="section_titling__title"><?php echo $sectionWebinairesDatas['title'] ?></h2>
<p class="section_titling__subtitle"><?php echo $sectionWebinairesDatas['subtitle'] ?></p>
</div> </div>
<?php <?php
$highlightedWebinaire = get_field('highlighted_webinaire', $current_page_id) ?? null; $highlightedWebinaire = get_field('highlighted_webinaire', $current_page_id) ?? null;