%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/higroup/wp-content/themes/evenex/
Upload File :
Create Path :
Current File : /var/www/html/higroup/wp-content/themes/evenex/single.php

<?php
/**
 * the template for displaying all posts.
 */
  get_header();

  get_template_part( 'template-parts/banner/content', 'banner-single' );

  $blog_sidebar = evenex_option('blog_sidebar',3);
  $column = ($blog_sidebar == 1 ) ? 'col-lg-10 mx-auto' : 'col-lg-8 col-md-12 mx-auto';

  $blog_sidebar_class = '';
  if ($blog_sidebar != '1') {
    $blog_sidebar_class = 'sidebar-active';
  } else {
    $blog_sidebar_class = 'sidebar-inactive';
  }
?>
<div id="main-content" class="main-container blog-single <?php echo esc_attr($blog_sidebar_class);?>"  role="main">
    <div class="container">
        <div class="row">
        <?php if($blog_sidebar == 2){
				get_sidebar();
			  }  ?>
            <div class="<?php echo esc_attr($column);?>">
				<?php while ( have_posts() ) : the_post(); ?>
					<article id="post-<?php the_ID(); ?>" <?php post_class(["post-content","post-single"]); ?>>
						<?php get_template_part( 'template-parts/blog/contents/content', 'single' ); ?>
              </article>

					<?php
						evenex_post_nav();
                 ?>
                <?php get_template_part( 'template-parts/blog/post-parts/part', 'author' ); ?>
               <?php
                comments_template();

               ?>
				<?php endwhile; ?>
            </div> <!-- .col-md-8 -->
            <?php if($blog_sidebar == 3){
				get_sidebar();
			  }  ?>

        </div> <!-- .row -->
        <?php get_template_part( 'template-parts/blog/post-parts/part', 'related-post' ); ?>
    </div> <!-- .container -->
</div> <!--#main-content -->
<?php get_footer(); ?>

Zerion Mini Shell 1.0