88 lines
3.2 KiB
PHP
Executable file
88 lines
3.2 KiB
PHP
Executable file
<?php
|
|
/**
|
|
* The header for our theme
|
|
*
|
|
* This is the template that displays all of the <head> section and everything up until <div id="content">
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
|
*
|
|
* @package _s
|
|
*/
|
|
|
|
?>
|
|
<!doctype html>
|
|
<html <?php language_attributes(); ?>>
|
|
<head>
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="profile" href="https://gmpg.org/xfn/11">
|
|
|
|
<?php wp_head(); ?>
|
|
</head>
|
|
|
|
<body <?php body_class(); ?>>
|
|
<?php wp_body_open(); ?>
|
|
<div id="page" class="site">
|
|
<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'achille-press' ); ?></a>
|
|
|
|
<header id="masthead" class="site-header">
|
|
<div class="header-container">
|
|
<div class="site-branding">
|
|
<?php
|
|
the_custom_logo();
|
|
if ( is_front_page() && is_home() ) :
|
|
?>
|
|
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
|
<?php
|
|
else :
|
|
?>
|
|
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
|
<?php
|
|
endif;
|
|
$achille_press_description = get_bloginfo( 'description', 'display' );
|
|
if ( $achille_press_description || is_customize_preview() ) :
|
|
?>
|
|
<p class="site-description"><?php echo $achille_press_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
|
|
<?php endif; ?>
|
|
</div><!-- .site-branding -->
|
|
|
|
<div class="header-actions">
|
|
<nav id="site-navigation" class="main-navigation">
|
|
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false">
|
|
<span class="hamburger-icon">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
</span>
|
|
<span class="screen-reader-text"><?php esc_html_e( 'Menu', 'achille-press' ); ?></span>
|
|
</button>
|
|
<?php
|
|
wp_nav_menu(
|
|
array(
|
|
'theme_location' => 'menu-1',
|
|
'menu_id' => 'primary-menu',
|
|
'menu_class' => 'primary-menu',
|
|
)
|
|
);
|
|
?>
|
|
</nav><!-- #site-navigation -->
|
|
|
|
<button class="theme-toggle" aria-label="Toggle dark mode" type="button">
|
|
<svg class="sun-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="5"></circle>
|
|
<line x1="12" y1="1" x2="12" y2="3"></line>
|
|
<line x1="12" y1="21" x2="12" y2="23"></line>
|
|
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
|
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
|
<line x1="1" y1="12" x2="3" y2="12"></line>
|
|
<line x1="21" y1="12" x2="23" y2="12"></line>
|
|
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
|
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
|
</svg>
|
|
<svg class="moon-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
|
|
</svg>
|
|
</button>
|
|
</div><!-- .header-actions -->
|
|
</div><!-- .header-container -->
|
|
</header><!-- #masthead -->
|