cleaning unecessary commented lines

This commit is contained in:
Antoine M 2024-06-11 10:25:17 +02:00
parent ee04445af0
commit 610f967480

View File

@ -18,14 +18,6 @@ $args = array(
'meta_compare' => '!=', 'meta_compare' => '!=',
); );
$brochuresPosts = new WP_Query($args); $brochuresPosts = new WP_Query($args);
// $sortedBrochuresPosts = sort_posts_per_thematiques_priority($brochuresPosts);
// $sortedBrochuresPosts->posts = array_slice($sortedBrochuresPosts->posts, 0, $posts_per_page);
// $sortedBrochuresPosts->found_posts = $posts_per_page;
// $sortedBrochuresPosts->posts_per_page = $posts_per_page;
// $sortedBrochuresPosts->query_vars['posts_per_page'] = $posts_per_page;
// $sortedBrochuresPosts->post_count = $posts_per_page;
// #### FICHES INFOS QUERY // #### FICHES INFOS QUERY
@ -41,13 +33,6 @@ $args = array(
); );
$fichesInfosPosts = new WP_Query($args); $fichesInfosPosts = new WP_Query($args);
// $sortedFichesInfosPosts = sort_posts_per_thematiques_priority($fichesInfosPosts);
// $sortedFichesInfosPosts->posts = array_slice($sortedBrochuresPosts->posts, 0, $posts_per_page);
// $sortedFichesInfosPosts->found_posts = $posts_per_page;
// $sortedFichesInfosPosts->posts_per_page = $posts_per_page;
// $sortedFichesInfosPosts->query_vars['posts_per_page'] = $posts_per_page;
// $sortedFichesInfosPosts->post_count = $posts_per_page;
// #### WEBINAIRES QUERY // #### WEBINAIRES QUERY
$args = array( $args = array(
@ -60,11 +45,7 @@ $args = array(
); );
$videosWebinairesPosts = new WP_Query($args); $videosWebinairesPosts = new WP_Query($args);
// #### VIDÉOS & WEBINAIRES QUERY
// $videosWebinairesDatas = get_field('videos_webinaires', $current_page_id)['videos_webinaires_datas'] ?? null;
$total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_posts + $videosWebinairesPosts->found_posts; $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_posts + $videosWebinairesPosts->found_posts;
// $total_posts_found = $sortedBrochuresPosts->found_posts + $fichesInfosPosts->found_posts + $videosWebinairesPosts->found_posts;
?> ?>
<div class="template-archives template-archives--publications"> <div class="template-archives template-archives--publications">
@ -96,7 +77,7 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
"description" => __("Découvrez toutes nos publications et outils en ligne", "homegrade-theme__texte-fonctionnel"), "description" => __("Découvrez toutes nos publications et outils en ligne", "homegrade-theme__texte-fonctionnel"),
"ctaSecondary" => array( "ctaSecondary" => array(
"title" => $receivePrintedPublicationsDatas['cta_title'] ?? null, "title" => $receivePrintedPublicationsDatas['cta_title'] ?? null,
"url" => $receivePrintedPublicationsDatas['cta_document']['url'] ?? null, "url" => $receivePrintedPublicationsDatas['order_form_url'] ?? null,
"target" => "_blank", "target" => "_blank",
"custom-class" => "paper-button", "custom-class" => "paper-button",
), ),