File: /home/dh_kieuhb/blwealthmanagement.com/wp-content/themes/univarsal/archive.php
<?php univarsal_bunch_global_variable();
$options = _WSH()->option();
get_header();
$settings = _WSH()->option();
if(univarsal_set($_GET, 'layout_style')) $layout = univarsal_set($_GET, 'layout_style'); else
$layout = univarsal_set( $settings, 'archive_page_layout', 'right' );
if( !$layout || $layout == 'full' || univarsal_set($_GET, 'layout_style')=='full' ) $sidebar = ''; else
$sidebar = univarsal_set( $settings, 'archive_page_sidebar', 'blog-sidebar' );
_WSH()->page_settings = array('layout'=>$layout, 'sidebar'=>$sidebar);
$classes = ( !$layout || $layout == 'full' || univarsal_set($_GET, 'layout_style')=='full' ) ? ' col-lg-12 col-md-12 col-sm-12 col-xs-12 ' : ' col-lg-8 col-md-8 col-sm-12 col-xs-12 ' ;
$bg = univarsal_set($settings, 'archive_page_header_img');
$title = univarsal_set($settings, 'archive_page_header_title');
?>
<!--Page Title-->
<div class="inner-banner has-base-color-overlay text-center" <?php if($bg):?>style="background-image:url('<?php echo esc_url($bg)?>');"<?php endif;?>>
<div class="container">
<div class="box">
<h3><?php if($title) echo wp_kses_post($title); else wp_title('');?></h3>
</div>
</div>
<div class="breadcumb-wrapper">
<div class="container">
<div class="pull-left">
<?php echo wp_kses_post(univarsal_get_the_breadcrumb()); ?>
</div>
</div>
</div>
</div>
<!--Sidebar Page-->
<div class="sidebar-page-container sec-padd">
<div class="container">
<div class="row">
<!-- sidebar area -->
<?php if( $layout == 'left' ): ?>
<?php if ( is_active_sidebar( $sidebar ) ) { ?>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="blog-sidebar">
<?php dynamic_sidebar( $sidebar ); ?>
</div>
</div>
<?php } ?>
<?php endif; ?>
<!--Content Side-->
<div class="<?php echo esc_attr($classes);?>">
<!--Default Section-->
<section class="blog-section">
<!--Blog Post-->
<div class="thm-unit-test">
<?php while( have_posts() ): the_post();?>
<!-- blog post item -->
<!-- Post -->
<div id="post-<?php the_ID(); ?>" <?php post_class();?>>
<?php get_template_part( 'blog' ); ?>
<!-- blog post item -->
</div><!-- End Post -->
<?php endwhile;?>
</div>
<!--Pagination-->
<div class="page_pagination center">
<?php univarsal_the_pagination(); ?>
</div>
</section>
</div>
<!--Content Side-->
<!--Sidebar-->
<!-- sidebar area -->
<?php if( $layout == 'right' ): ?>
<?php if ( is_active_sidebar( $sidebar ) ) { ?>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="blog-sidebar">
<?php dynamic_sidebar( $sidebar ); ?>
</div>
</div>
<?php } ?>
<?php endif; ?>
<!--Sidebar-->
</div>
</div>
</div>
<?php get_footer(); ?>