renaming page wrapper

This commit is contained in:
Antoine M 2023-12-07 15:42:15 +01:00
parent c36a0d7aca
commit 373462f67e

View File

@ -62,7 +62,7 @@ $relatedTaxQuestions = new WP_Query($query_args);
</ol> </ol>
</nav> </nav>
<div class="post-question-page-container <?php echo $thematiqueColorSlug ? "post-question-page--" . $mainThematique->slug : "" ?>"" data-thematique-id=" <?php echo $currentThematique->term_id ?>"> <div class="taxonomy-question-page-container <?php echo $thematiqueColorSlug ? "taxonomy-question-page--" . $mainThematique->slug : "" ?>"" data-thematique-id=" <?php echo $currentThematique->term_id ?>">
<?php get_template_part( <?php get_template_part(
'template-components/posts-components/chapter-header', 'template-components/posts-components/chapter-header',
@ -154,6 +154,57 @@ FILTERS
</section> </section>
<!-- <button id="load-more-questions"><?php echo __("Charger plus de questions", "homegrade-theme__texte-fonctionnel") ?></button> --> <!-- <button id="load-more-questions"><?php echo __("Charger plus de questions", "homegrade-theme__texte-fonctionnel") ?></button> -->
<section class="card-large-content-container">
<div class="card-large-content">
<div class="section_titling">
<h2 class="section_titling__title"><?php echo __("Publications suggérées", "homegrade-theme__texte-fonctionnel") ?></h2>
<p class="section_titling__subtitle"><?php echo __("Consultez notre documentation pour en savoir plus", "homegrade-theme__texte-fonctionnel") ?></p>
</div>
<ul id="brochures-rows" class="publications-grid">
<?php
$args = array(
'post_type' => 'brochures',
'posts_per_page' => 5,
'post_status' => 'publish',
'orderby' => 'rand',
'meta_key' => 'brochure_pdf',
'meta_value' => false,
'meta_compare' => '!=',
'tax_query' => array(
array(
'taxonomy' => 'thematiques',
'field' => 'term_id',
'terms' => $mainThematique->term_id,
)
)
);
$brochuresPosts = new WP_Query($args);
?>
<?php
get_template_part(
'template-components/archives/brochure-rows',
null,
array(
'brochuresPosts' => $brochuresPosts,
)
)
?>
</ul>
</div>
</section>
</div> </div>