Webseite-Freund-des-Spessarts/theme/friends-spessart/header.php

36 lines
1.1 KiB
PHP

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<a class="skip-link" href="#inhalt">Zum Inhalt springen</a>
<header class="site-header">
<div class="site-header__inner">
<a class="site-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<?php
$fds_logo_id = get_theme_mod( 'custom_logo' );
if ( $fds_logo_id ) {
echo wp_get_attachment_image( $fds_logo_id, 'medium', false, array( 'class' => 'site-brand__logo', 'alt' => '' ) );
}
?>
<span class="site-brand__name">Freunde des<br>Spessarts</span>
</a>
<button class="menu-toggle" aria-label="Menü öffnen" aria-expanded="false" aria-controls="hauptnavigation">
<span></span><span></span><span></span>
</button>
<nav id="hauptnavigation" class="main-nav" aria-label="Hauptnavigation">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'container' => false,
'fallback_cb' => false,
) );
?>
</nav>
</div>
</header>