adding dynamic accordeon classes
This commit is contained in:
parent
2be41bd723
commit
cd0d7d4730
|
|
@ -32,23 +32,25 @@ $relatedTaxQuestions = $args['relatedTaxQuestions'] ?? null
|
|||
|
||||
|
||||
?>
|
||||
<details class=" question">
|
||||
<details class=" question homegrade-dynamic-accordeon">
|
||||
<summary>
|
||||
<?php the_title(); ?>
|
||||
<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="" />
|
||||
</div>
|
||||
</summary>
|
||||
<div class="content entry-content">
|
||||
<?php the_content(); ?>
|
||||
<?php if ($relatedFicheConseil) : ?>
|
||||
<div class="question-context">
|
||||
<p class="question-context__title"><?php echo __("Ce contenu fait parti de ", "homegrade-theme__texte-fonctionnel") ?></p>
|
||||
<a class="question-context__conseil-name" href="<?php echo get_permalink($relatedFicheConseil) ?>">
|
||||
<?php echo $relatedFicheConseil->post_title ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="homegrade-dynamic-accordeon__content-wrapper">
|
||||
<div class="content entry-content homegrade-dynamic-accordeon__content ">
|
||||
<?php the_content(); ?>
|
||||
<?php if ($relatedFicheConseil) : ?>
|
||||
<div class="question-context">
|
||||
<p class="question-context__title"><?php echo __("Ce contenu fait parti de ", "homegrade-theme__texte-fonctionnel") ?></p>
|
||||
<a class="question-context__conseil-name" href="<?php echo get_permalink($relatedFicheConseil) ?>">
|
||||
<?php echo $relatedFicheConseil->post_title ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user