balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

single.php (1690B)


      1 <?php
      2 /**
      3  * The template for displaying all single posts
      4  *
      5  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
      6  *
      7  * @package appside
      8  */
      9 
     10 get_header();
     11 $page_layout_meta = Appside_Group_Fields_Value::page_layout_options('blog_single');
     12 $full_width_class = $page_layout_meta['content_column_class'] == 'col-lg-12' ? ' full-width-content-area ' : '';
     13 ?>
     14 	<div id="primary" class="content-area blog-details-page padding-120 <?php echo esc_attr($full_width_class);?>">
     15 		<main id="main" class="site-main">
     16             <div class="container">
     17                 <div class="row">
     18                     <div class="<?php echo esc_attr($page_layout_meta['content_column_class']);?>">
     19 	                    <?php
     20 	                    while ( have_posts() ) :
     21 		                    the_post();
     22 		                    get_template_part( 'template-parts/content', 'single' );
     23 		                    // If comments are open or we have at least one comment, load up the comment template.
     24 		                    if ( comments_open() || get_comments_number() || get_option( 'thread_comments' )) :
     25 			                    comments_template();
     26 		                    endif;
     27 	                    endwhile; // End of the loop.
     28 	                    ?>
     29                     </div>
     30                     <?php if ($page_layout_meta['sidebar_enable']): ?>
     31                         <div class="<?php echo esc_attr($page_layout_meta['sidebar_column_class']);?>">
     32                             <?php get_sidebar();?>
     33                         </div>
     34                     <?php endif; ?>
     35                 </div>
     36             </div>
     37 		</main><!-- #main -->
     38 	</div><!-- #primary -->
     39 <?php
     40 get_footer();