cleaning and commenting page $thematique
This commit is contained in:
parent
62796a3617
commit
bb4373a0d4
30
header.php
30
header.php
|
|
@ -6,17 +6,24 @@
|
|||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
||||
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
|
||||
<?php get_template_part('template-components/header/og-image'); ?>
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<?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
|
||||
do_action('tailpress_site_before');
|
||||
global $post;
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<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') ?>">
|
||||
|
|
@ -33,27 +40,10 @@
|
|||
<?php get_template_part('template-components/header/menu-homegrade'); ?>
|
||||
|
||||
<!-- MENU RENOVATEUR -->
|
||||
<?php
|
||||
get_template_part('template-components/header/menu-renovateur');
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<?php get_template_part('template-components/header/menu-renovateur'); ?>
|
||||
</header>
|
||||
|
||||
|
||||
<?php if (is_front_page()) { ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?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">
|
||||
Loading…
Reference in New Issue
Block a user