max_num_pages > 1) ? TRUE : FALSE; } /* Next/Previous PAGE Links (on multi post pages) in next_posts_link "next" means older posts Available parameters for $location: Top, Bottom. Default: Top */ function bfa_next_previous_page_links($location = "Top") { global $bfa_ata; $homeURL = get_home_url(); if ( !is_single() AND !is_page() AND strpos($bfa_ata['location_multi_next_prev'],$location) !== FALSE AND // don't display on WP Email pages intval(get_query_var('email')) != 1 AND // display only if next/prev links actually exist bfa_show_posts_nav() ) { if( function_exists('wp_pagenavi') ) { echo '
'; wp_pagenavi(); echo '
'; } else { if( $bfa_ata['home_multi_next_prev'] != '' ) { ob_start(); echo '
' . $bfa_ata['home_multi_next_prev'] . '
'; $nav_home_div_on = ob_get_contents(); ob_end_clean(); // make sure this is the real homepage and not a subsequent page if( is_front_page() AND !is_paged() ) { $nav_home_add = ""; $nav_home_div = ""; } else { $nav_home_add = '-home'; $nav_home_div = $nav_home_div_on; } } else { $nav_home_add = ''; $nav_home_div = ''; } echo ''; } } } /* Next/Previous POST Links (on single post pages) in next_post_link "next" means newer posts Available parameters for $location: Top, Middle, Bottom. Default: Top */ function bfa_next_previous_post_links($location = "Top") { global $bfa_ata; $homeURL = get_home_url(); if ( is_single() AND strpos($bfa_ata['location_single_next_prev'],$location) !== FALSE AND // don't display on WP Email pages intval(get_query_var('email')) != 1 ) { echo ''; } } /* Next/Previous Comments Links. In next_comments_link "next" means newer. If navigation above comments is set: */ function bfa_next_previous_comments_links($location = "Above") { global $bfa_ata; if ( strpos($bfa_ata['location_comments_next_prev'],$location) !== FALSE ) { // if any navigation links exist, paginated or next/previous: if ( get_comment_pages_count() > 1 ) { // Overall navigation container echo ''; } echo ''; } } } ?>