Bump to 1.4.0, made some fixes for 8.2+
This commit is contained in:
24
single.php
24
single.php
@ -11,9 +11,9 @@
|
||||
get_header();
|
||||
?>
|
||||
<div class="mt-page-content-wrapper">
|
||||
<div itemscope id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
<?php
|
||||
<div id="primary" class="content-area" itemscope itemtype="https://schema.org/Article">
|
||||
<main id="main" class="site-main" role="main" aria-label="<?php esc_attr_e( 'Single Post Content', 'sophia-after-dark' ); ?>">
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
|
||||
@ -21,20 +21,24 @@ get_header();
|
||||
|
||||
the_post_navigation();
|
||||
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
// Load comments template if comments are open or exist.
|
||||
if ( comments_open() || get_comments_number() ) :
|
||||
comments_template();
|
||||
endif;
|
||||
endwhile; // End of the loop.
|
||||
endwhile;
|
||||
|
||||
// Load related posts section if enabled in theme settings.
|
||||
$related_posts_option = get_theme_mod( 'sophia_after_dark_enable_related_posts', true );
|
||||
if ( true === $related_posts_option && 'post' === get_post_type() ) {
|
||||
get_template_part( 'template-parts/related/related', 'posts' );
|
||||
}
|
||||
?>
|
||||
</main>
|
||||
</div>
|
||||
?>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
</div>
|
||||
</div><!-- .mt-page-content-wrapper -->
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
Reference in New Issue
Block a user