This commit is contained in:
2026-04-26 04:06:01 +02:00
parent 787cdb31aa
commit 001390457b
63 changed files with 924 additions and 2152 deletions
+25 -21
View File
@@ -2,42 +2,46 @@
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package zeitfresser
*/
get_header();
?>
<?php $show_hide_related_posts = get_theme_mod( 'post_detail_hide_show_related_articles', zeitfresser_get_default_post_detail_related_articles() ); ?>
// CLEAN: no default function anymore
$show_hide_related_posts = get_theme_mod(
'post_detail_hide_show_related_articles',
true
);
?>
<div id="primary" class="inside-page content-area">
<div class="container">
<div class="main-wrapper">
<section class="page-section full-width-view">
<div class="detail-content">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', 'single' ); ?>
<?php endwhile; // End of the loop. ?>
<?php the_post_navigation(); ?>
<?php comments_template(); ?>
<section class="page-section full-width-view">
<div class="detail-content">
</div><!-- /.end of deatil-content -->
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', 'single' ); ?>
<?php endwhile; ?>
<?php
if( $show_hide_related_posts ) {
get_template_part('template-parts/related', 'articles');
}
?>
</section> <!-- /.end of section -->
<?php the_post_navigation(); ?>
<?php comments_template(); ?>
<div class="sidebar"><?php get_sidebar();?></div>
</div>
<?php if ( $show_hide_related_posts ) : ?>
<?php get_template_part( 'template-parts/related', 'articles' ); ?>
<?php endif; ?>
</section>
<div class="sidebar">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</div>
<?php
get_footer();
<?php get_footer(); ?>