> ' . $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"; } } ?> >
Appearance/Presentation -> Widgets -> Select \"Left Sidebar\" -> Click \"Show\" -> Click on \"Add\" on one of the widgets on the left side -> Click \"Save changes\" -> Done"; endif; ?>