' . $bfa_ata_home_multi_next_prev . ''; // for WP 2.5 and newer if ( function_exists('is_front_page') ) { // make sure this is the real homepage and not a subsequent page if (is_front_page() && !is_paged() ) { $nav_home_add = ""; $nav_home_div = ""; } else { $nav_home_add = '-home'; $nav_home_div = $nav_home_div_on; } } // for WP 2.3 and older // make sure this is the real homepage and not a subsequent page elseif ( is_home() && !is_paged() ) { $nav_home_add = ""; $nav_home_div = ""; } else { $nav_home_add = '-home'; $nav_home_div = $nav_home_div_on; } } // Home link for next/prev on single pages if ( is_single() ) { if ($bfa_ata_home_single_next_prev != '') { $nav_home_div_on_single = '
' . $bfa_ata_home_single_next_prev . '
'; $nav_home_add_single = '-home'; } else { $nav_home_div_on_single = ""; $nav_home_add_single = ""; } } // figure out sidebars global $cols; $cols = 1; if ( is_page() ) { #$current_page_id = $wp_query->get('page_id'); $current_page_id = $wp_query->get_queried_object_id(); if ($bfa_ata_left_col_pages_exclude != "") { $pages_exlude_left = explode(",", str_replace(" ", "", $bfa_ata_left_col_pages_exclude)); if ( $bfa_ata_leftcol_on['page'] && !in_array($current_page_id, $pages_exlude_left) ) { $cols++; $left_col = "on"; } } else { if ( $bfa_ata_leftcol_on['page'] ) { $cols++; $left_col = "on"; } } if ($bfa_ata_right_col_pages_exclude != "") { $pages_exlude_right = explode(",", str_replace(" ", "", $bfa_ata_right_col_pages_exclude)); if ( $bfa_ata_rightcol_on['page'] && !in_array($current_page_id, $pages_exlude_right) ) { $cols++; $right_col = "on"; } } else { if ( $bfa_ata_rightcol_on['page'] ) { $cols++; $right_col = "on"; } } } elseif ( is_category() ) { $current_cat_id = get_query_var('cat'); if ($bfa_ata_left_col_cats_exclude != "") { $cats_exlude_left = explode(",", str_replace(" ", "", $bfa_ata_left_col_cats_exclude)); if ( $bfa_ata_leftcol_on['category'] && !in_array($current_cat_id, $cats_exlude_left) ) { $cols++; $left_col = "on"; } } else { if ( $bfa_ata_leftcol_on['category'] ) { $cols++; $left_col = "on"; } } if ($bfa_ata_right_col_cats_exclude != "") { $cats_exlude_right = explode(",", str_replace(" ", "", $bfa_ata_right_col_cats_exclude)); if ( $bfa_ata_rightcol_on['category'] && !in_array($current_cat_id, $cats_exlude_right) ) { $cols++; $right_col = "on"; } } else { if ( $bfa_ata_rightcol_on['category'] ) { $cols++; $right_col = "on"; } } } else { if ( (is_home() && $bfa_ata_leftcol_on['homepage']) || ( is_front_page() && $bfa_ata_leftcol_on['frontpage']) || ( is_single() && $bfa_ata_leftcol_on['single']) || ( is_date() && $bfa_ata_leftcol_on['date']) || ( is_tag() && $bfa_ata_leftcol_on['tag']) || ( is_search() && $bfa_ata_leftcol_on['search']) || ( is_author() && $bfa_ata_leftcol_on['author']) || ( is_404() && $bfa_ata_leftcol_on['404']) || ( is_attachment() && $bfa_ata_leftcol_on['attachment']) ) { $cols++; $left_col = "on"; } if ( (is_home() && $bfa_ata_rightcol_on['homepage']) || ( is_front_page() && $bfa_ata_rightcol_on['frontpage']) || ( is_single() && $bfa_ata_rightcol_on['single']) || ( is_date() && $bfa_ata_rightcol_on['date']) || ( is_tag() && $bfa_ata_rightcol_on['tag']) || ( is_search() && $bfa_ata_rightcol_on['search']) || ( is_author() && $bfa_ata_rightcol_on['author']) || ( is_404() && $bfa_ata_rightcol_on['404']) || ( is_attachment() && $bfa_ata_rightcol_on['attachment']) ) { $cols++; $right_col = "on"; } } ?> >
'; $bfa_ata_next_prev_orientation == 'Older Left, Newer Right' ? previous_post_link(bfa_escape($bfa_ata_single_next_prev_older)) : next_post_link(bfa_escape($bfa_ata_single_next_prev_newer)); echo '  
' . $nav_home_div_on_single . '
  '; $bfa_ata_next_prev_orientation == 'Older Left, Newer Right' ? next_post_link(bfa_escape($bfa_ata_single_next_prev_newer)) : previous_post_link(bfa_escape($bfa_ata_single_next_prev_older)); echo '
'; } ?> '; wp_pagenavi(); echo ''; } else { echo ' '; } } ?>
"> '; if ( is_home() ) { echo postinfo("$bfa_ata_post_kicker_home"); } elseif ( is_page() ) { echo postinfo("$bfa_ata_post_kicker_page"); } elseif ( is_single() ) { echo postinfo("$bfa_ata_post_kicker_single"); } else { echo postinfo("$bfa_ata_post_kicker_multi"); } echo '
'; } ?>

'; if ( is_home() ) { echo postinfo("$bfa_ata_post_byline_home"); } elseif ( is_page() ) { echo postinfo("$bfa_ata_post_byline_page"); } elseif ( is_single() ) { echo postinfo("$bfa_ata_post_byline_single"); } else { echo postinfo("$bfa_ata_post_byline_multi"); } echo ''; } ?>
' . __('Pages:','atahualpa') . ' &after=

&next_or_number=number'); } ?>

'; if ( is_home() ) { echo postinfo("$bfa_ata_post_footer_home"); } elseif ( is_page() ) { echo postinfo("$bfa_ata_post_footer_page"); } elseif ( is_single() ) { echo postinfo("$bfa_ata_post_footer_single"); } else { echo postinfo("$bfa_ata_post_footer_multi"); } echo ''; } ?>
'; $bfa_ata_next_prev_orientation == 'Older Left, Newer Right' ? previous_post_link(bfa_escape($bfa_ata_single_next_prev_older)) : next_post_link(bfa_escape($bfa_ata_single_next_prev_newer)); echo '  
' . ($bfa_ata_home_single_next_prev!= '' ? '' : '') . '
  '; $bfa_ata_next_prev_orientation == 'Older Left, Newer Right' ? next_post_link(bfa_escape($bfa_ata_single_next_prev_newer)) : previous_post_link(bfa_escape($bfa_ata_single_next_prev_older)); echo '
'; } ?>

'; $bfa_ata_next_prev_orientation == 'Older Left, Newer Right' ? previous_post_link(bfa_escape($bfa_ata_single_next_prev_older)) : next_post_link(bfa_escape($bfa_ata_single_next_prev_newer)); echo '  
' . ($bfa_ata_home_single_next_prev!= '' ? '' : '') . '
  '; $bfa_ata_next_prev_orientation == 'Older Left, Newer Right' ? next_post_link(bfa_escape($bfa_ata_single_next_prev_newer)) : previous_post_link(bfa_escape($bfa_ata_single_next_prev_older)); echo '
'; } ?> '; wp_pagenavi(); echo ''; } else { echo ' '; } } ?>