refactoring spaces and comments
This commit is contained in:
parent
4904f355ef
commit
6477272369
|
|
@ -87,6 +87,10 @@ if (!function_exists('build_share_urls')) {
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
<?php /* -------
|
||||||
|
CHAPTER HEADER
|
||||||
|
---------------*/ ?>
|
||||||
<?php
|
<?php
|
||||||
$blocks = parse_blocks($post->post_content);
|
$blocks = parse_blocks($post->post_content);
|
||||||
$chapterBlockIndex = build_chapter_index($blocks);
|
$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'];
|
$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");
|
$relatedDocumentCtaTitle = ($hasManualDocument && $manualSrcDocument && $manualSrcDocument['button_title']) ? $manualSrcDocument['button_title'] : __("Télécharger la brochure ", "homegrade-theme__texte-fonctionnel");
|
||||||
|
|
||||||
?>
|
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"),
|
'subtitle' => __("Les conseillers Homegrade vous guident", "homegrade-theme__texte-fonctionnel"),
|
||||||
'title' => get_the_title(get_the_ID()),
|
'title' => get_the_title(get_the_ID()),
|
||||||
|
|
@ -120,11 +123,17 @@ if (!function_exists('build_share_urls')) {
|
||||||
'ctaTitle' => $relatedDocumentCtaTitle,
|
'ctaTitle' => $relatedDocumentCtaTitle,
|
||||||
'hasInfoCapsule' => true,
|
'hasInfoCapsule' => true,
|
||||||
)); ?>
|
)); ?>
|
||||||
|
<?php /* -------
|
||||||
|
CONSEIL
|
||||||
|
---------------*/ ?>
|
||||||
<div class=" conseils_wrapper">
|
<div class=" conseils_wrapper">
|
||||||
|
<!-- CHAPTER INDEX -->
|
||||||
<aside class="chapter_index">
|
<aside class="chapter_index">
|
||||||
<?php if ($chapterBlockIndex) : ?>
|
<?php if ($chapterBlockIndex) : ?>
|
||||||
<div class="chapter_index__titling">
|
<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>
|
<h2 class="chapter_index__title"> <?php echo __("Dans ce conseil", "homegrade-theme__texte-fonctionnel") ?> </h2>
|
||||||
</div>
|
</div>
|
||||||
<ul class="chapter_index__list">
|
<ul class="chapter_index__list">
|
||||||
|
|
@ -136,12 +145,7 @@ if (!function_exists('build_share_urls')) {
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<!-- CHAPTER INDEX -->
|
<!-- ARTICLE -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<article class="entry-content single-editor-content <?php echo $thematiqueColorSlug ? "entry-content--" . $thematiqueColorSlug : "" ?>">
|
<article class="entry-content single-editor-content <?php echo $thematiqueColorSlug ? "entry-content--" . $thematiqueColorSlug : "" ?>">
|
||||||
<?php the_content() ?>
|
<?php the_content() ?>
|
||||||
</article>
|
</article>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user