/** * Create the below navigation * * Provides compatibility with WP-PageNavi plugin * * Override: childtheme_override_nav_below * * @link http://wordpress.org/extend/plugins/wp-pagenavi/ WP-PageNavi Plugin Page */ function thematic_nav_below() { if (is_single()) { ?> <div id="nav-below" class="navigation"> <div class="nav-previous"><?php thematic_previous_post_link(); ?> </div> <div class="nav-next"><?php thematic_next_post_link(); ?> </div> </div> <?php } else { ?> <div id="nav-below" class="navigation"> <?php if (function_exists('wp_pagenavi')) { ?> <?php wp_pagenavi(); ?> <?php } else { ?> <div class="nav-previous"><?php next_posts_link(sprintf('<span class="meta-nav">«</span> %s', __('Older posts', 'thematic'))); ?> </div> <div class="nav-next"><?php previous_posts_link(sprintf('%s <span class="meta-nav">»</span>', __('Newer posts', 'thematic'))); ?> </div> <?php } ?> </div> <?php } }
/** * Create the below navigation * * Provides compatibility with WP-PageNavi plugin * * Override: childtheme_override_nav_below * * @link http://wordpress.org/extend/plugins/wp-pagenavi/ WP-PageNavi Plugin Page */ function thematic_nav_below() { if (is_single()) { ?> <div id="nav-below" class="navigation"> <div class="nav-previous"><?php thematic_previous_post_link(); ?> </div> <div class="nav-next"><?php thematic_next_post_link(); ?> </div> </div> <?php } else { ?> <div id="nav-below" class="navigation"> <?php if (function_exists('wp_pagenavi')) { ?> <?php wp_pagenavi(); ?> <?php } else { ?> <div class="nav-next"><?php previous_posts_link('<span class="meta-nav">«</span> '); ?> </div> <div class="nav-previous"><?php next_posts_link(' <span class="meta-nav">»</span>'); ?> </div> <?php } ?> </div> <?php } }