Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2015
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Highend
  5. */
  6. ?>
  7.  
  8. <?php get_header(); ?>
  9.  
  10. <div id="main-content">
  11. <div class="container">
  12.  
  13.  
  14. <?php
  15. $sidebar_layout = hb_options('hb_page_layout_sidebar');
  16. $sidebar_name = hb_options('hb_choose_sidebar');
  17. ?>
  18.  
  19. <div class="row <?php echo $sidebar_layout; ?> main-row">
  20.  
  21. <!-- BEGIN .hb-main-content -->
  22. <?php if ( $sidebar_layout ) { ?>
  23. <div class="col-9 hb-equal-col-height hb-main-content">
  24. <?php } else { ?>
  25. <div class="col-12 hb-main-content">
  26. <?php } ?>
  27.  
  28.  
  29. <?php
  30. $show_separator = false;
  31. if ( is_author() ){
  32. get_template_part('includes/post','author-info');
  33. $show_separator = true;
  34. } else if ( is_category() ) {
  35. if ( category_description() ) {
  36. echo category_description();
  37. $show_separator = true;
  38. }
  39. } else if ( is_tag() ) {
  40. if ( tag_description() ) {
  41. echo tag_description();
  42. $show_separator = true;
  43. }
  44. }
  45.  
  46. if ( $show_separator ) { ?>
  47. <div class="hb-separator extra-space"><div class="hb-fw-separator"></div></div>
  48. <?php } ?>
  49.  
  50. <?php
  51. if (have_posts()) :
  52. if ( get_query_var('paged') ) {
  53. $paged = get_query_var('paged');
  54.  
  55. if ($paged > 1){
  56. $search_counter = ($paged-1) * get_option('posts_per_page');
  57. } else {
  58. $search_counter = 0;
  59. }
  60. } elseif ( get_query_var('page') ) {
  61. $paged = get_query_var('page');
  62. if ($paged > 1){
  63. $search_counter = ($paged-1) * get_option('posts_per_page');
  64. } else {
  65. $search_counter = 0;
  66. }
  67. } else {
  68. $paged = 1;
  69. $search_counter = 0;
  70. }
  71.  
  72. ?>
  73. <div id="hb-blog-posts" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog">
  74. <?php
  75. get_template_part('loop','blog-small');
  76. ?>
  77. </div>
  78. <!-- END #hb-blog-posts -->
  79. </div>
  80. <?php
  81.  
  82. hb_pagination_standard();
  83.  
  84. else : ?>
  85. <h4 class="title-class semi-bold"><?php _e('No results found.', 'hbthemes'); ?></h4>
  86. <?php endif;
  87. ?>
  88.  
  89. </div>
  90. <!-- END .hb-main-content -->
  91. <?php if ( $sidebar_layout ) { ?>
  92. <!-- BEGIN .hb-sidebar -->
  93. <div class="col-3 hb-equal-col-height hb-sidebar">
  94. <?php
  95. if ( $sidebar_name && function_exists('dynamic_sidebar') )
  96. dynamic_sidebar($sidebar_name);
  97. ?>
  98. </div>
  99. <!-- END .hb-sidebar -->
  100. <?php } ?>
  101. </div>
  102. </div>
  103. </div>
  104.  
  105. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement