Initial theme commit

This commit is contained in:
2026-04-12 22:08:32 +02:00
commit 4d0189a7f2
27 changed files with 2503 additions and 0 deletions

26
page.php Executable file
View File

@@ -0,0 +1,26 @@
<?php
$show_page_date = (bool) get_theme_mod( 'kgv_show_page_date', 1 );
$hidden_page_ids = function_exists( 'kgv_get_hidden_page_date_ids' ) ? kgv_get_hidden_page_date_ids() : array();
$hide_date_on_this_page = in_array( get_the_ID(), $hidden_page_ids, true );
?>
<?php get_header(); ?>
<?php if ( is_front_page() ) : get_template_part( 'template-parts/slider' ); endif; ?>
<main class="site-main">
<div class="container content-grid">
<section class="content-area">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'page-content-card' ); ?>>
<div class="page-content-card">
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php if ( $show_page_date && ! $hide_date_on_this_page ) : ?>
<div class="entry-meta"><?php echo esc_html( get_the_date() ); ?></div>
<?php endif; ?>
<div class="entry-content"><?php the_content(); ?></div>
</div>
</article>
<?php endwhile; ?>
</section>
<?php get_sidebar(); ?>
</div>
</main>
<?php get_footer(); ?>