Files
T
Dome 05de6f2028 fix(toc): restore correct floating TOC positioning after layout refactor
Fix incorrect TOC alignment caused by outdated DOM selector in toc.js.
The content reference element changed during layout refactor, breaking
position calculations for the floating TOC.

Updated contentColumn selector to use .main-wrapper/.container fallback,
ensuring correct left offset and responsive positioning.

Also adds a more robust fallback chain to prevent future regressions
when layout structure changes.
2026-04-26 04:43:04 +02:00

50 lines
1.2 KiB
PHP

<?php
/**
* The template for displaying all single posts
*
* @package zeitfresser
*/
get_header();
// 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">
<?php zeitfresser_render_floating_toc(); ?>
<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; ?>
<?php the_post_navigation(); ?>
<?php comments_template(); ?>
</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(); ?>