FEATURE Tweaking the detail edito tag
This commit is contained in:
parent
8062b003c1
commit
be7887da94
|
|
@ -47,27 +47,27 @@ $articles = get_field('articles', $current_issue->ID);
|
||||||
|
|
||||||
<div class="content-area">
|
<div class="content-area">
|
||||||
|
|
||||||
|
<?php if (has_excerpt()) : ?>
|
||||||
|
<details class="edito">
|
||||||
|
<summary>
|
||||||
|
<h2 class="edito__title">
|
||||||
|
Edito
|
||||||
|
</h2>
|
||||||
|
<div class="open-close-icon">
|
||||||
|
<img src="https://homegrade.brussels/wp-content/themes/Deligraph_Homegrade/resources/img/graphic-assets/chevron_down.svg" class="open-close-cta" alt="">
|
||||||
|
</div>
|
||||||
|
</summary>
|
||||||
|
<div class="edito__content-wrapper">
|
||||||
|
<div class="edito__content">
|
||||||
|
|
||||||
<details class="edito" open="true">
|
<?php the_excerpt(); ?>
|
||||||
<summary>
|
<div class="edito__cta">
|
||||||
<h2 class="edito__title">
|
<button class="cta cta--primary">Bonne Lecture</button>
|
||||||
Edito
|
</div>
|
||||||
</h2>
|
|
||||||
<div class="open-close-icon">
|
|
||||||
<img src="https://homegrade.brussels/wp-content/themes/Deligraph_Homegrade/resources/img/graphic-assets/chevron_down.svg" class="open-close-cta" alt="">
|
|
||||||
</div>
|
|
||||||
</summary>
|
|
||||||
<div class="edito__content-wrapper">
|
|
||||||
<div class="edito__content">
|
|
||||||
|
|
||||||
<?php the_excerpt(); ?>
|
|
||||||
<div class="edito__cta">
|
|
||||||
<button class="cta cta--primary">Bonne Lecture</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</details>
|
||||||
</details>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php get_template_part('template-parts/revues/revue-authors', null, array(
|
<?php get_template_part('template-parts/revues/revue-authors', null, array(
|
||||||
'postId' => get_the_ID()
|
'postId' => get_the_ID()
|
||||||
)); ?>
|
)); ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user