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,60 @@
<?php
/**
* The main template file
*
* @package Teilzeitladen
*/
get_header();
?>
<main id="primary" class="site-main">
<div class="container">
<?php if ( is_home() && ! is_front_page() ) : ?>
<header class="page-header">
<h1 class="page-title"><?php single_post_title(); ?></h1>
</header>
<?php endif; ?>
<?php if ( have_posts() ) : ?>
<div class="posts-grid">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-card' ); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" class="post-thumbnail">
<?php the_post_thumbnail( 'product-card' ); ?>
</a>
<?php endif; ?>
<div class="post-content">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<div class="entry-meta">
<?php echo get_the_date(); ?>
</div>
<div class="entry-excerpt">
<?php the_excerpt(); ?>
</div>
<a href="<?php the_permalink(); ?>" class="btn">
<?php _e( 'Weiterlesen', 'teilzeitladen' ); ?>
</a>
</div>
</article>
<?php endwhile; ?>
</div>
<?php the_posts_navigation(); ?>
<?php else : ?
<p><?php _e( 'Keine Beiträge gefunden.', 'teilzeitladen' ); ?></p>
<?php endif; ?>
</div>
</main>
<?php get_footer(); ?>