adding dynamic accordeon classes

This commit is contained in:
Antoine M 2023-12-13 16:33:40 +01:00
parent 2be41bd723
commit cd0d7d4730

View File

@ -32,23 +32,25 @@ $relatedTaxQuestions = $args['relatedTaxQuestions'] ?? null
?> ?>
<details class=" question"> <details class=" question homegrade-dynamic-accordeon">
<summary> <summary>
<?php the_title(); ?> <?php the_title(); ?>
<div class="open-close-icon"> <div class="open-close-icon">
<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/chevron_down.svg' ?>" class="open-close-cta" alt="" /> <img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/chevron_down.svg' ?>" class="open-close-cta" alt="" />
</div> </div>
</summary> </summary>
<div class="content entry-content"> <div class="homegrade-dynamic-accordeon__content-wrapper">
<?php the_content(); ?> <div class="content entry-content homegrade-dynamic-accordeon__content ">
<?php if ($relatedFicheConseil) : ?> <?php the_content(); ?>
<div class="question-context"> <?php if ($relatedFicheConseil) : ?>
<p class="question-context__title"><?php echo __("Ce contenu fait parti de ", "homegrade-theme__texte-fonctionnel") ?></p> <div class="question-context">
<a class="question-context__conseil-name" href="<?php echo get_permalink($relatedFicheConseil) ?>"> <p class="question-context__title"><?php echo __("Ce contenu fait parti de ", "homegrade-theme__texte-fonctionnel") ?></p>
<?php echo $relatedFicheConseil->post_title ?> <a class="question-context__conseil-name" href="<?php echo get_permalink($relatedFicheConseil) ?>">
</a> <?php echo $relatedFicheConseil->post_title ?>
</div> </a>
<?php endif; ?> </div>
<?php endif; ?>
</div>
</div> </div>
</details> </details>