Initial commit: Teilzeitladen WordPress Theme

- 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>
This commit is contained in:
Christoph Emsenhuber
2026-04-02 19:31:47 +02:00
commit 7adbad7e63
10 changed files with 711 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
<?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">