function mk_page_navi()
 {
     global $data, $post, $wp_query;
     $layout = strtolower(get_theme_mod('mk_blog_layout', 'classic'));
     $out = '';
     $out .= '<div class="clearfix"></div>' . "\n";
     $out .= '<div class="pagination-wrapper ' . $layout . '-pagination text-center">' . "\n";
     if (function_exists('wp_pagenavi')) {
         $out .= wp_pagenavi() . "\n";
     } else {
         $out .= '<div class="pagination-wrap">' . "\n";
         $out .= mk_pagenavi($wp_query) . "\n";
         $out .= '</div>' . "\n";
     }
     $out .= '</div>' . "\n";
     echo $out;
 }
Beispiel #2
0
				<div class="clearfix"></div>
				
						<?php 
    if (function_exists('wp_pagenavi')) {
        ?>
							
								<?php 
        wp_pagenavi();
        ?>
 
								<?php 
    } else {
        ?>
						<div class="pagination-wrap">
							<?php 
        echo mk_pagenavi($wp_query);
        ?>
									
						</div>
						
					<?php 
    }
    ?>
				
			<?php 
} else {
    ?>

				<?php 
    get_template_part('content', 'none');
    ?>