cleaning and commenting page $thematique

This commit is contained in:
Antoine M 2024-01-17 16:41:54 +01:00
parent 62796a3617
commit bb4373a0d4

View File

@ -6,17 +6,24 @@
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php get_template_part('template-components/header/og-image'); ?>
<?php wp_head(); ?> <?php wp_head(); ?>
</head> </head>
<?php $currentLanguage = apply_filters('wpml_current_language', null); ?> <?php $currentLanguage = apply_filters('wpml_current_language', null); ?>
<body <?php body_class("homegrade-frontend-page"); ?> current-language="<?php echo $currentLanguage ?? "" ?>"> <?php
// $thematique = get_the_terms(get_the_ID(), 'thematiques')[0];
// $thematiqueParent = getParentThematique($thematique) ?? null;
// $thematiqueColorSlug = $thematiqueParent ? $thematiqueParent->slug : "";
?>
<body <?php body_class("homegrade-frontend-page ") ?> current-language="<?php echo $currentLanguage ?? "" ?>">
<?php <?php
do_action('tailpress_site_before'); do_action('tailpress_site_before');
global $post; global $post;
?> ?>
<div id="page-<?php echo $post->post_name ?>" class="min-h-screen flex flex-col "> <div id="page-<?php echo $post->post_name ?>" class="min-h-screen flex flex-col ">
<div class="skiplinks" aria-label="<?php echo __('Accès rapide', 'homegrade-theme__texte-fonctionnel') ?>"> <div class="skiplinks" aria-label="<?php echo __('Accès rapide', 'homegrade-theme__texte-fonctionnel') ?>">
@ -33,27 +40,10 @@
<?php get_template_part('template-components/header/menu-homegrade'); ?> <?php get_template_part('template-components/header/menu-homegrade'); ?>
<!-- MENU RENOVATEUR --> <!-- MENU RENOVATEUR -->
<?php <?php get_template_part('template-components/header/menu-renovateur'); ?>
get_template_part('template-components/header/menu-renovateur');
?>
</header> </header>
<?php if (is_front_page()) { ?>
<?php } ?>
<?php do_action('tailpress_content_start'); ?> <?php do_action('tailpress_content_start'); ?>
<?php
$thematique = get_the_terms(get_the_ID(), 'thematiques')[0];
$thematiqueParent = getParentThematique($thematique);
$thematiqueColorSlug = getThematiqueFamilySlug($thematiqueParent->slug);
?>
<main id="content" class="site-content flex-grow"> <main id="content" class="site-content flex-grow">