* @copyright Copyright (c) 2013, Nicolas GUILLAUME
* @link http://themesandco.com/customizr
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
if ( ! class_exists( 'TC_post_navigation' ) ) :
class TC_post_navigation {
static $instance;
function __construct () {
self::$instance =& $this;
add_action ( '__after_loop' , array( $this , 'tc_post_nav' ), 20 );
}
/**
* The template part for displaying nav links
*
* @package Customizr
* @since Customizr 3.0
*/
function tc_post_nav() {
// When do we display navigation ?
//1) we don"t show post navigation for pages by default
//2) + filter conditions
$post_navigation_bool = is_page( tc__f ( '__ID' ) ) ? false : true ;
if( !apply_filters('tc_show_post_navigation', $post_navigation_bool ) )
return;
global $wp_query;
$html_id = 'nav-below';
ob_start();
?>
'); ?>
max_num_pages > 1 && !is_404() && !tc__f( '__is_home_empty') ) : ?>