/
index.php
46 lines (39 loc) · 1.48 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* @package WordPress
* @subpackage basejump-core
*/
?>
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php
global $wp_query;
if ($wp_query->max_num_pages > 1) :
?>
<nav id="nav-above">
<?php core_functions::breadcrumbs(); ?>
<!-- <h1 class="section-heading"><?php _e('Post navigation', 'basejump'); ?></h1>-->
<!-- <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">←</span> Older posts', 'basejump')); ?></div>
<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">→</span>', 'basejump')); ?></div>-->
</nav><!-- #nav-above -->
<?php endif; ?>
<?php /* Start the Loop */ ?>
<?php while (have_posts()) : the_post(); ?>
<?php cwp_layout::tpl_part('base', (get_post_format() ? get_post_format() : 'general')) ?>
<?php endwhile; ?>
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ($wp_query->max_num_pages > 1) : ?>
<nav id="nav-below">
<div class="wp-pagination">
<?php
$big = 999999999;
echo paginate_links(array(
'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
'format' => '?paged=%#%',
'current' => max(1, get_query_var('paged')),
'total' => $wp_query->max_num_pages
));
?>
</div>
<!-- ###### -->
</nav><!-- #nav-below -->
<?php endif; ?>