single.php (1316B)
1 <?php 2 3 /** 4 * The template for displaying all single posts 5 * 6 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post 7 * 8 * @package welbim 9 */ 10 get_header(); 11 12 if (is_active_sidebar('sidebar-1')) : 13 $blog_post_list_class = 'col-lg-8'; 14 else : 15 $blog_post_list_class = 'col-lg-12'; 16 endif; 17 $blog_single_breadcrumb_class = 'blog-single-breadcrumb-active'; 18 $blog_single_breadcrumb_switch = welbim_get_options('blog_single_breadcrumb_switch'); 19 if ($blog_single_breadcrumb_switch == 1) : 20 $blog_single_breadcrumb_class = ''; 21 endif; 22 ?> 23 <!-- sidebar-page-container --> 24 25 <div class="sidebar-page-container <?php echo esc_attr($blog_single_breadcrumb_class); ?>"> 26 <div class="auto-container"> 27 <div class="row"> 28 <div class="<?php echo esc_attr($blog_post_list_class); ?> col-md-12 col-sm-12 content-side"> 29 <div class="news-block-three blog-single-post"> 30 <?php 31 if (have_posts()) : 32 while (have_posts()) : 33 the_post(); 34 get_template_part('template-parts/single/content'); 35 endwhile; 36 endif; 37 ?> 38 </div> 39 </div> 40 <?php if (is_active_sidebar('sidebar-1')) { ?> 41 <div class="col-lg-4"> 42 <aside class="sidebar blog-sidebar"> 43 <?php get_sidebar(); ?> 44 </aside> 45 </div> 46 <?php } ?> 47 </div> 48 </div> 49 </div> 50 <?php 51 get_footer();