REFACTORING Nettoyage et réorganisation du code dans single-revues.php
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fbcf74643d
commit
c0d422cfa1
|
|
@ -2,9 +2,7 @@
|
|||
|
||||
<?php
|
||||
$current_issue = get_queried_object();
|
||||
|
||||
$issue_related_articles = get_field('articles', $current_issue->ID);
|
||||
|
||||
$articles = get_field('articles', $current_issue->ID);
|
||||
?>
|
||||
|
||||
|
|
@ -12,7 +10,8 @@ $articles = get_field('articles', $current_issue->ID);
|
|||
<div class="page--single-revue" data-revue-id="<?php echo get_the_ID(); ?>">
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<?php get_template_part('template-parts/revues/single-revue__header'); ?>
|
||||
<?php get_template_part('template-parts/revues/revue-header'); ?>
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<div class="sidebar">
|
||||
|
|
@ -23,7 +22,6 @@ $articles = get_field('articles', $current_issue->ID);
|
|||
$tags = get_terms(array(
|
||||
'taxonomy' => 'etiquettes',
|
||||
));
|
||||
|
||||
?>
|
||||
<?php if ($tags) : ?>
|
||||
<div class="tags">
|
||||
|
|
@ -39,7 +37,16 @@ $articles = get_field('articles', $current_issue->ID);
|
|||
</div>
|
||||
|
||||
</div>
|
||||
<div class="revue-content">
|
||||
|
||||
<div class="content-area">
|
||||
<div class="authors">
|
||||
<!-- <button class="authors-button">get Auteurs</button> -->
|
||||
|
||||
|
||||
<div class="authors-list">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<details class="edito" open="true">
|
||||
<summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user