Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php $counter == 1; ?>
  2. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  3.  
  4. <?php if ($counter == 1) : get_template_part('content', 'lead');  {echo '<div class="ng-row">';}?>
  5. <div class="half">
  6.             <hr class="mh-separator"><?php
  7.  
  8.         else :
  9.             get_template_part('content');
  10.         endif;
  11.         $counter++;
  12.     endwhile;
  13. else :
  14.     get_template_part('content', 'none');
  15. endif;
  16. mh_newsdesk_lite_pagination(); ?>
  17. </div>
  18.  
  19.  
  20. <?php $counter++;
  21. if($counter == 3) {
  22. $counter = 1;
  23. echo '</div>';
  24. }?>
  25.  
  26. <?php
  27. if($counter > 3) {
  28.     echo '</div>';
  29. }
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement