Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package WordPress
- * @subpackage Highend
- */
- ?>
- <?php get_header(); ?>
- <div id="main-content">
- <div class="container">
- <?php
- $sidebar_layout = hb_options('hb_page_layout_sidebar');
- $sidebar_name = hb_options('hb_choose_sidebar');
- ?>
- <div class="row <?php echo $sidebar_layout; ?> main-row">
- <!-- BEGIN .hb-main-content -->
- <?php if ( $sidebar_layout ) { ?>
- <div class="col-9 hb-equal-col-height hb-main-content">
- <?php } else { ?>
- <div class="col-12 hb-main-content">
- <?php } ?>
- <?php
- $show_separator = false;
- if ( is_author() ){
- get_template_part('includes/post','author-info');
- $show_separator = true;
- } else if ( is_category() ) {
- if ( category_description() ) {
- echo category_description();
- $show_separator = true;
- }
- } else if ( is_tag() ) {
- if ( tag_description() ) {
- echo tag_description();
- $show_separator = true;
- }
- }
- if ( $show_separator ) { ?>
- <div class="hb-separator extra-space"><div class="hb-fw-separator"></div></div>
- <?php } ?>
- <?php
- if (have_posts()) :
- if ( get_query_var('paged') ) {
- $paged = get_query_var('paged');
- if ($paged > 1){
- $search_counter = ($paged-1) * get_option('posts_per_page');
- } else {
- $search_counter = 0;
- }
- } elseif ( get_query_var('page') ) {
- $paged = get_query_var('page');
- if ($paged > 1){
- $search_counter = ($paged-1) * get_option('posts_per_page');
- } else {
- $search_counter = 0;
- }
- } else {
- $paged = 1;
- $search_counter = 0;
- }
- ?>
- <div id="hb-blog-posts" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog">
- <?php
- get_template_part('loop','blog-small');
- ?>
- </div>
- <!-- END #hb-blog-posts -->
- </div>
- <?php
- hb_pagination_standard();
- else : ?>
- <h4 class="title-class semi-bold"><?php _e('No results found.', 'hbthemes'); ?></h4>
- <?php endif;
- ?>
- </div>
- <!-- END .hb-main-content -->
- <?php if ( $sidebar_layout ) { ?>
- <!-- BEGIN .hb-sidebar -->
- <div class="col-3 hb-equal-col-height hb-sidebar">
- <?php
- if ( $sidebar_name && function_exists('dynamic_sidebar') )
- dynamic_sidebar($sidebar_name);
- ?>
- </div>
- <!-- END .hb-sidebar -->
- <?php } ?>
- </div>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement