get($themeslug.'_single_sidebar'); } elseif (is_archive()) { $sidebar = $options->get($themeslug.'_archive_sidebar'); } elseif (is_404()) { $sidebar = $options->get($themeslug.'_404_sidebar'); } elseif (is_search()) { $sidebar = $options->get($themeslug.'_search_sidebar'); } elseif (is_page()) { $sidebar = get_post_meta($post->ID, 'page_sidebar' , true); } else { $sidebar = $options->get($themeslug.'_blog_sidebar'); } if ($sidebar == 'two-right' OR $sidebar == 'right-left' OR $sidebar == "2" OR $sidebar == "3") { $content_grid = 'six columns'; } elseif ($sidebar == 'none' OR $sidebar == "4") { $content_grid = 'twelve columns'; } else { $content_grid = 'eight columns'; } } /** * Before entry sidebar * * @since 3.0 */ function business_before_content_sidebar_markup() { global $options, $themeslug, $post, $sidebar; // call globals ?>