'; //sidebar on left if($princess_default_sidebar_position == 'left'){ print ''; } print '
'; //print page content if set if (have_posts()){ while(have_posts()){ the_post(); if($post->post_content != ""){ print '
'; the_content(); print '

'; } } } //posts print '
'; $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'post_type' => 'post', 'paged' => $paged ); $the_query = new WP_Query( $args ); if($the_query->have_posts()){ while($the_query->have_posts()){ $the_query->the_post(); get_template_part( 'content-blog-small' ); } } print '
'; //pagination if(function_exists('wp_paginate')) { print '
'; wp_paginate(); } else{ //display default next/prev links if($the_query->max_num_pages > 1 ){ print '
'; print '
'; previous_posts_link('
  '.__('Previous Page ','princess').'
'); print '
'; print '
- '; $page_curr = (get_query_var('paged')) ? get_query_var('paged') : 1; print sprintf(__('PAGE %d OF %d','princess'),$page_curr,$the_query->max_num_pages); print ' -
'; print '
'; next_posts_link('
'.__('Next Page','princess').'  
',$the_query->max_num_pages); print '
'; print '
'; } } wp_reset_query(); wp_reset_postdata(); print '
'; //sidebar on right if($princess_default_sidebar_position != 'left'){ print ''; } print ' '; }else{ //no sidebar print '
'; //print page content if set if (have_posts()){ while(have_posts()){ the_post(); if($post->post_content != ""){ print '
'; the_content(); print '

'; } } } //posts print '
'; $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'post_type' => 'post', 'paged' => $paged ); $the_query = new WP_Query( $args ); if($the_query->have_posts()){ while($the_query->have_posts()){ $the_query->the_post(); get_template_part( 'content-blog-small' ); } } print '
'; //pagination if(function_exists('wp_paginate')) { print '
'; wp_paginate(); } else{ //display default next/prev links if($the_query->max_num_pages > 1 ){ print '
'; print '
'; previous_posts_link('
  '.__('Previous Page ','princess').'
'); print '
'; print '
- '; $page_curr = (get_query_var('paged')) ? get_query_var('paged') : 1; print sprintf(__('PAGE %d OF %d','princess'),$page_curr,$the_query->max_num_pages); print ' -
'; print '
'; next_posts_link('
'.__('Next Page','princess').'  
',$the_query->max_num_pages); print '
'; print '
'; } } wp_reset_query(); wp_reset_postdata(); print '
'; } get_footer(); ?>