Compare commits

...

2 Commits

Author SHA1 Message Date
Nonimart
3d0771f5fd FIX for revue id not passed correctly to one component
All checks were successful
continuous-integration/drone/push Build is passing
2025-09-04 17:08:43 +02:00
Nonimart
2c08303099 FIX removing unecessary write_log 2025-09-04 17:08:10 +02:00
2 changed files with 8 additions and 9 deletions

View File

@ -150,7 +150,7 @@ function build_footnotes_index_from_content($content)
if ($has_footnotes) { if ($has_footnotes) {
foreach ($matches as $index => $match) { foreach ($matches as $index => $match) {
write_log($match);
// Le contenu peut être dans match[1] ou match[2] selon l'ordre des attributs // Le contenu peut être dans match[1] ou match[2] selon l'ordre des attributs
$footnote_content = !empty($match[1]) ? $match[1] : $match[2]; $footnote_content = !empty($match[1]) ? $match[1] : $match[2];
if (!empty($footnote_content)) { if (!empty($footnote_content)) {

View File

@ -10,6 +10,12 @@ $articles = get_field('articles', $current_issue->ID);
<div class="page--single-revue" data-revue-id="<?php echo get_the_ID(); ?>"> <div class="page--single-revue" data-revue-id="<?php echo get_the_ID(); ?>">
<?php if (have_posts()) : ?> <?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?> <?php while (have_posts()) : the_post(); ?>
<?php
$issue_number = get_field('issue_number', $current_issue->ID);
?>
<?php get_template_part('template-parts/post-header'); ?> <?php get_template_part('template-parts/post-header'); ?>
<?php get_template_part('template-parts/revues/revue-toolbar'); ?> <?php get_template_part('template-parts/revues/revue-toolbar'); ?>
@ -40,15 +46,8 @@ $articles = get_field('articles', $current_issue->ID);
</div> </div>
<div class="content-area"> <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"> <details class="edito" open="true">
<summary> <summary>
<h2 class="edito__title"> <h2 class="edito__title">
@ -74,7 +73,7 @@ $articles = get_field('articles', $current_issue->ID);
)); ?> )); ?>
<?php get_template_part('template-parts/articles/article-informations', null, array( <?php get_template_part('template-parts/articles/article-informations', null, array(
'revueID' => $revueID 'revueID' => get_the_ID()
)); ?> )); ?>