Guest User

Untitled

a guest
Oct 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. if ( have_posts() ) { $count = 0; $column_count_1 = 0; $column_count_2 = 0;
  2. ?>
  3.  
  4. <div class="fix"></div>
  5.  
  6.  
  7. <?php
  8. while ( have_posts() ) { the_post(); $count++;
  9. // Featured Starts
  10. if ( $count <= $woo_options['woo_magazine_feat_posts'] && ! is_paged() ) {
  11. woo_get_template_part( 'content', 'magazine-featured' );
  12.  
  13.  
  14. continue;
  15. }
  16.  
  17. $column_count_1++; $column_count_2++;
  18.  
  19. ?>
  20.  
  21. <?php echo adrotate_ad(1); ?>
  22.  
  23. <div class="block<?php if ( $column_count_1 > 1 ) { echo ' last'; $column_count_1 = 0; } ?>">
  24. <?php
  25. woo_get_template_part( 'content', 'magazine-grid' );
  26. ?>
  27. </div><!--/.block-->
  28. <?php
  29.  
  30. if ( $column_count_1 == 0 ) { ?><div class="fix"></div><?php } // End IF Statement
  31.  
  32. } // End WHILE Loop
  33. } else {
  34. get_template_part( 'content', 'noposts' );
  35. } // End IF Statement
  36.  
  37. woo_loop_after();
  38.  
  39. woo_pagenav();
  40.  
  41. add_action( 'woo_post_inside_before', 'woo_display_post_image', 10 );
  42. ?>
Add Comment
Please, Sign In to add comment