| Server IP : 178.63.100.251 / Your IP : 216.73.216.228 Web Server : LiteSpeed System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64 User : truewayi ( 1855) PHP Version : 7.4.33 Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/truewayi/public_html/wp-content/themes/omexo/ |
Upload File : |
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package omexo
*/
$omexo_option = get_option( 'omexo_opt' );
$blog_single_layout = omexo_array_get($omexo_option, 'blog-single-layout') ? $omexo_option['blog-single-layout'] : '';
if($blog_single_layout == 'full-width'){
$main_col_class = 'col-md-12';
}elseif(is_active_sidebar('sidebar-1')){
$main_col_class = 'col-md-8';
}else{
$main_col_class = 'col-md-12';
}
get_header();
?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<div class="container">
<div class="row">
<?php if($blog_single_layout == 'left-sidebar'){
get_sidebar();
}?>
<div class="<?php echo esc_attr($main_col_class)?> all-posts-wrap <?php echo esc_attr($blog_single_layout);?> <?php echo esc_attr($blog_single_layout .''. $blog_single_layout == '' ? 'right-sidebar' : '');?>">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', get_post_type() );
$single_post_nav = omexo_array_get($omexo_option, 'single-post-nav') ? $omexo_option['single-post-nav'] : '';
if($single_post_nav == true){
echo '<div class="single-blog-post-navigation">';
the_post_navigation(array(
'prev_text' => __( 'Previous Post', 'omexo' ),
'next_text' => __( 'Next Post', 'omexo' ),
));
echo '</div>';
}
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
</div>
<?php
if($blog_single_layout == 'right-sidebar'):
get_sidebar();
elseif($blog_single_layout == 'full-width'):
else:
get_sidebar();
endif;
?>
</div>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();