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,14 +32,15 @@ $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">
<div class="content entry-content homegrade-dynamic-accordeon__content ">
<?php the_content(); ?> <?php the_content(); ?>
<?php if ($relatedFicheConseil) : ?> <?php if ($relatedFicheConseil) : ?>
<div class="question-context"> <div class="question-context">
@ -50,6 +51,7 @@ $relatedTaxQuestions = $args['relatedTaxQuestions'] ?? null
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div>
</details> </details>
<?php endwhile ?> <?php endwhile ?>