- Custom Theme mit WooCommerce Support - Responsive Design - Notice Banner (Admin-gesteuert) - Google Fonts Integration - Platz für Unikate-Präsentation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
66 lines
1.9 KiB
PHP
66 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* The header template
|
|
*
|
|
* @package Teilzeitladen
|
|
*/
|
|
|
|
?\>
|
|
<!DOCTYPE html>
|
|
<html <?php language_attributes(); ?\>>
|
|
<head>
|
|
<meta charset="<?php bloginfo( 'charset' ); ?\>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<?php wp_head(); ?\>
|
|
</head>
|
|
|
|
<body <?php body_class(); ?\>>
|
|
<?php wp_body_open(); ?\>
|
|
|
|
<?php teilzeitladen_notice_banner(); ?\>
|
|
|
|
<header class="site-header">
|
|
<div class="container">
|
|
<div class="site-branding">
|
|
<?php if ( has_custom_logo() ) : ?\>
|
|
<?php the_custom_logo(); ?\>
|
|
<?php else : ?\>
|
|
<h1 class="site-title">
|
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?\>">
|
|
<?php bloginfo( 'name' ); ?\>
|
|
</a>
|
|
</h1>
|
|
<?php if ( get_bloginfo( 'description' ) ) : ?\>
|
|
<p class="site-description">
|
|
<?php bloginfo( 'description' ); ?\>
|
|
</p>
|
|
<?php endif; ?\>
|
|
<?php endif; ?\>
|
|
</div>
|
|
|
|
<nav class="main-navigation">
|
|
<?php
|
|
wp_nav_menu( array(
|
|
'theme_location' => 'primary',
|
|
'menu_id' => 'primary-menu',
|
|
'container' => false,
|
|
'fallback_cb' => false,
|
|
) );
|
|
?\>
|
|
</nav>
|
|
|
|
<div class="header-actions">
|
|
<?php if ( class_exists( 'WooCommerce' ) ) : ?\>
|
|
<a href="<?php echo esc_url( wc_get_cart_url() ); ?\>" class="cart-link">
|
|
<span class="cart-icon">🛒</span>
|
|
<span class="cart-count">
|
|
<?php echo WC()->cart->get_cart_contents_count(); ?\>
|
|
</span>
|
|
</a>
|
|
<?php endif; ?\>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div id="content" class="site-content">
|