Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section id="main">
- <div class="container">
- <div class="row">
- <div id="content" class="site-content col-sm-12" role="main">
- <?php
- $index = 1;
- $col = get_theme_mod( 'blog_column', 12 );
- if ( have_posts() ) : ?>
- <?php while ( have_posts() ) : the_post();
- if ( $index == '1' ) { ?>
- <div class="row">
- <?php }?>
- <div class="col-md-<?php echo esc_attr($col);?>">
- <?php get_template_part( 'post-format/content', get_post_format() ); ?>
- </div>
- <?php if ( $index == (12/esc_attr($col) )) { ?>
- </div><!--/row-->
- <?php $index = 1;
- }else{
- $index++;
- }
- endwhile; ?>
- <?php else: ?>
- <?php get_template_part( 'post-format/content', 'none' ); ?>
- <?php endif;
- if($index != 1 ){ ?>
- </div><!--/row-->
- <?php }?>
- <?php
- $page_numb = max( 1, get_query_var('paged') );
- $max_page = $wp_query->max_num_pages;
- echo wpeducon_pagination( $page_numb, $max_page );
- ?>
- </div> <!-- #content -->
- </div><!--/row-->
- </div><!--/container-->
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement