154 lines
4.5 KiB
PHP
154 lines
4.5 KiB
PHP
<!DOCTYPE html>
|
|
<html <?php language_attributes(); ?>>
|
|
|
|
<head>
|
|
<meta charset="<?php bloginfo('charset'); ?>">
|
|
<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 wp_head(); ?>
|
|
</head>
|
|
|
|
<body>
|
|
<?php
|
|
do_action('tailpress_site_before');
|
|
global $post;
|
|
?>
|
|
|
|
<div id="page-<?php echo $post->post_name ?>" class="min-h-screen flex flex-col">
|
|
|
|
<?php do_action('tailpress_header'); ?>
|
|
|
|
<!-- <header id="primary-header">
|
|
<div class="primary-menu-container">
|
|
<div class="lg:flex lg:justify-between lg:items-center py-6">
|
|
<div class="flex justify-between items-center">
|
|
<div>
|
|
<?php if (has_custom_logo()) { ?>
|
|
<?php the_custom_logo(); ?>
|
|
<?php } else { ?>
|
|
<a href="<?php echo get_bloginfo('url'); ?>" class="font-extrabold text-lg uppercase">
|
|
<?php echo get_bloginfo('name'); ?>
|
|
</a>
|
|
|
|
<p class="text-sm font-light text-gray-600">
|
|
<?php echo get_bloginfo('description'); ?>
|
|
</p>
|
|
|
|
<?php } ?>
|
|
</div>
|
|
|
|
<div class="lg:hidden">
|
|
<a href="#" aria-label="Toggle navigation" id="primary-menu-toggle">
|
|
<svg viewBox="0 0 20 20" class="inline-block w-6 h-6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<g stroke="none" stroke-width="1" fill="currentColor" fill-rule="evenodd">
|
|
<g id="icon-shape">
|
|
<path d="M0,3 L20,3 L20,5 L0,5 L0,3 Z M0,9 L20,9 L20,11 L0,11 L0,9 Z M0,15 L20,15 L20,17 L0,17 L0,15 Z" id="Combined-Shape"></path>
|
|
</g>
|
|
</g>
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
wp_nav_menu(
|
|
array(
|
|
'container_id' => 'primary-menu',
|
|
'container_class' => 'bg-primary mt-4 p-4 lg:mt-0 lg:p-0 lg:bg-transparent lg:block',
|
|
'menu_class' => 'lg:flex lg:-mx-4',
|
|
'theme_location' => 'primary',
|
|
'li_class' => 'lg:mx-4 menu-navlink',
|
|
'fallback_cb' => false,
|
|
)
|
|
);
|
|
?>
|
|
<img class="close_btn" src="<?php echo get_template_directory_uri() . '/resources/img/close_menu_icon.svg' ?>" />
|
|
</div>
|
|
</div>
|
|
</header> -->
|
|
|
|
<header id="primary-header">
|
|
<!-- <div class="primary-menu-container bg-red-500">
|
|
</div> -->
|
|
<div class="primary-menu-container lg:flex lg:justify-between lg:items-center">
|
|
<nav id="primary-menu-nav" class="flex justify-between items-center">
|
|
<!-- <div class="website_logo">
|
|
<?php if ($logo_gba) { ?>
|
|
<a href="<?php echo home_url() ?>">
|
|
<img class="logo" src=<?php echo $logo_gba ?> alt="">
|
|
</a>
|
|
<?php } else { ?>
|
|
<a href="<?php echo get_bloginfo('url'); ?>" class="font-extrabold text-lg uppercase">
|
|
<?php echo get_bloginfo('name'); ?>
|
|
</a>
|
|
|
|
<p class="text-sm font-light text-gray-600">
|
|
<?php echo get_bloginfo('description'); ?>
|
|
</p>
|
|
|
|
<?php } ?>
|
|
</div> -->
|
|
<div class="website_logo">
|
|
<?php if (has_custom_logo()) { ?>
|
|
<?php the_custom_logo(); ?>
|
|
<?php } else { ?>
|
|
<a href=" <?php echo get_bloginfo('url'); ?>" class="font-extrabold text-lg uppercase">
|
|
<?php echo get_bloginfo('name'); ?>
|
|
</a>
|
|
|
|
<p class="text-sm font-light text-gray-600">
|
|
<?php echo get_bloginfo('description'); ?>
|
|
</p>
|
|
|
|
<?php } ?>
|
|
</div>
|
|
|
|
<button id="burger-menu-toggle" aria-label="<?php echo esc_html_e("Ouvrir le menu", 'deligraph-theme') ?>">
|
|
<div class="menu-toggle-bar menu-toggle-bar--top"></div>
|
|
<div class="menu-toggle-bar menu-toggle-bar--middle"></div>
|
|
<div class="menu-toggle-bar menu-toggle-bar--bottom"></div>
|
|
<!-- <?php echo get_template_part('resources/svg/burger-menu-icon.svg'); ?> -->
|
|
</button>
|
|
<div id="primary-menu">
|
|
<!-- <button id="close-menu-btn" aria-label="<?php echo esc_html_e("Fermer le menu", 'deligraph-theme') ?>">
|
|
<?php echo get_template_part('resources/svg/close-menu-icon.svg'); ?>
|
|
</button> -->
|
|
<?php
|
|
wp_nav_menu(
|
|
array(
|
|
'container' => 'false',
|
|
// 'container_id' => 'primary-menu',
|
|
// 'container_class' => '',
|
|
'theme_location' => 'primary',
|
|
'li_class' => 'menu-navlink',
|
|
'fallback_cb' => false,
|
|
)
|
|
); ?>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<!-- qsdqds -->
|
|
</header>
|
|
|
|
|
|
|
|
<?php if (is_front_page()) { ?>
|
|
|
|
<?php } ?>
|
|
|
|
<?php do_action('tailpress_content_start'); ?>
|
|
|
|
<main id="content" class="site-content flex-grow">
|