refactoring spaces and comments

This commit is contained in:
Antoine M 2023-12-04 11:26:32 +01:00
parent 4904f355ef
commit 6477272369

View File

@ -87,6 +87,10 @@ if (!function_exists('build_share_urls')) {
</ol>
</nav>
<?php /* -------
CHAPTER HEADER
---------------*/ ?>
<?php
$blocks = parse_blocks($post->post_content);
$chapterBlockIndex = build_chapter_index($blocks);
@ -111,8 +115,7 @@ if (!function_exists('build_share_urls')) {
$relatedDocumentUrl = ($hasManualDocument && $manualSrcDocument && $manualSrcDocument['source_document']) ? $manualSrcDocument['source_document']['url'] : $relatedBrochure['url'];
$relatedDocumentCtaTitle = ($hasManualDocument && $manualSrcDocument && $manualSrcDocument['button_title']) ? $manualSrcDocument['button_title'] : __("Télécharger la brochure ", "homegrade-theme__texte-fonctionnel");
?>
<?php get_template_part('template-components/post-conseils/chapter-header', null, array(
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()),
@ -120,11 +123,17 @@ if (!function_exists('build_share_urls')) {
'ctaTitle' => $relatedDocumentCtaTitle,
'hasInfoCapsule' => true,
)); ?>
<?php /* -------
CONSEIL
---------------*/ ?>
<div class=" conseils_wrapper">
<!-- CHAPTER INDEX -->
<aside class="chapter_index">
<?php if ($chapterBlockIndex) : ?>
<div class="chapter_index__titling">
<div class="icon"></div>
<div class="icon">
<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/icon-feather-menu.svg' ?>" alt="">
</div>
<h2 class="chapter_index__title"> <?php echo __("Dans ce conseil", "homegrade-theme__texte-fonctionnel") ?> </h2>
</div>
<ul class="chapter_index__list">
@ -136,12 +145,7 @@ if (!function_exists('build_share_urls')) {
<?php endif; ?>
</aside>
<!-- CHAPTER INDEX -->
<!-- ARTICLE -->
<article class="entry-content single-editor-content <?php echo $thematiqueColorSlug ? "entry-content--" . $thematiqueColorSlug : "" ?>">
<?php the_content() ?>
</article>