File manager - Edit - /home/verseaumee/middletvnew/wp-content/themes/theme/single.php
Back
<?php /** * The template for displaying all single posts * * @package Art Blog */ get_header(); ?> <div class="container"> <?php $art_blog_post_layout = get_theme_mod( 'art_blog_post_layout', 'layout-1' ); if ( $art_blog_post_layout == 'layout-1' ) { ?> <div class="main-wrapper"> <main id="primary" class="site-main lay-width"> <?php while ( have_posts() ) : the_post(); get_template_part( 'revolution/template-parts/content', get_post_format() ); the_post_navigation( array( 'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous:', 'art-blog' ) . '</span> <span class="nav-title">%title</span>', 'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next:', 'art-blog' ) . '</span> <span class="nav-title">%title</span>', ) ); ?> <?php do_action('art_blog_related_posts'); ?> <?php if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; ?> </main> <?php get_sidebar(); ?> </div> <?php } elseif ( $art_blog_post_layout == 'layout-2' ) { ?> <div class="main-wrapper"> <?php get_sidebar(); ?> <main id="primary" class="site-main lay-width"> <?php while ( have_posts() ) : the_post(); get_template_part( 'revolution/template-parts/content', get_post_format() ); the_post_navigation( array( 'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous:', 'art-blog' ) . '</span> <span class="nav-title">%title</span>', 'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next:', 'art-blog' ) . '</span> <span class="nav-title">%title</span>', ) ); ?> <?php do_action('art_blog_related_posts'); ?> <?php if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; ?> </main> </div> <?php } elseif ( $art_blog_post_layout == 'layout-3' ) { // No-sidebar layout ?> <div class="main-wrapper full-width"> <main id="primary" class="site-main lay-width"> <?php while ( have_posts() ) : the_post(); get_template_part( 'revolution/template-parts/content', get_post_format() ); the_post_navigation( array( 'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous:', 'art-blog' ) . '</span> <span class="nav-title">%title</span>', 'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next:', 'art-blog' ) . '</span> <span class="nav-title">%title</span>', ) ); ?> <?php do_action('art_blog_related_posts'); ?> <?php if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; ?> </main> </div> <?php } ?> </div> <?php get_footer(); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings