From 97bb3f4b76b51a827ec2cb24f70765e973926654 Mon Sep 17 00:00:00 2001 From: Nonimart Date: Mon, 1 Sep 2025 14:30:44 +0200 Subject: [PATCH] FEATURE Reversing site hierarchy --- front-page.php | 84 ++++++++++++++++++++------ template-about.php | 41 +++++++++++++ template-repertoire-des-metiers.php | 91 ----------------------------- 3 files changed, 108 insertions(+), 108 deletions(-) create mode 100644 template-about.php delete mode 100644 template-repertoire-des-metiers.php diff --git a/front-page.php b/front-page.php index 71dee94..e230ba5 100644 --- a/front-page.php +++ b/front-page.php @@ -1,41 +1,91 @@ + + + -
+ + $my_current_lang = apply_filters('wpml_current_language', NULL); + do_action('wpml_switch_language', 'fr'); + $pageIcon = get_field('page_icon', 8209) ?? null; + do_action('wpml_switch_language', $my_current_lang); + + $initialPosts = new WP_Query([ + "post_status" => "publish", + "post_type" => "artisans", + "posts_per_page" => -1, + // "paged" => 1, + "orderby" => "title", + "order" => "ASC", + // "suppress_filters" => false, + ]); + ?> + + +
+ $pageIcon, + "title" => $currentPage->post_title, + "description" => __("Cherchez une entreprise ou un artisan", "metiers-patrimoine-theme"), + )); ?> - - -
+
+ $initialPosts->found_posts)); ?> + +
+ have_posts()) : $initialPosts->the_post(); ?> + + ID) ?? null; + + get_template_part( + 'template-components/artisans/card-artisans-search', + null, + array( + 'card_variant' => 'activite', + 'post_ID' => get_the_ID(), + 'post_title' => get_the_title(), + 'current_taxonomy' => "elementsbatiments", + 'post_date' => $post_date, + ) + ); ?> + +
+ +
+ +
+ + +
+ + + + + + + + + +
+ + - - - - - "publish", - "post_type" => "artisans", - "posts_per_page" => -1, - // "paged" => 1, - "orderby" => "title", - "order" => "ASC", - // "suppress_filters" => false, - ]); - ?> - - -
- - - - $pageIcon, - "title" => $currentPage->post_title, - "description" => __("Cherchez une entreprise ou un artisan", "metiers-patrimoine-theme"), - )); - ?> - -
- $initialPosts->found_posts)); ?> - -
- have_posts()) : $initialPosts->the_post(); ?> - - ID) ?? null; - - get_template_part( - 'template-components/artisans/card-artisans-search', - null, - array( - 'card_variant' => 'activite', - 'post_ID' => get_the_ID(), - 'post_title' => get_the_title(), - 'current_taxonomy' => "elementsbatiments", - 'post_date' => $post_date, - ) - ); ?> - -
- -
- -
- - -