Keijo Salakari
Spectator
Post count: 8
Been thanked: 0 times
#12551 |

This is code from sidebar.php
—-
<?php /* Widgetized Area */

if (is_single() || is_page()) {
generated_dynamic_sidebar();
}
elseif(is_archive() || is_author()) {
$blog_archive_sidebar = evl_get_option(‘evl_blog_archive_sidebar’,’None’);
if ($blog_archive_sidebar != ‘0’ && function_exists(‘dynamic_sidebar’)) {
generated_dynamic_sidebar($blog_archive_sidebar);
}
}
elseif(is_home()) {
$name = get_post_meta(get_option(‘page_for_posts’), ‘sbg_selected_sidebar_replacement’, true);
if($name) {
generated_dynamic_sidebar($name[0]);
}
else {
if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-1’)):
endif;
}
}
elseif(is_front_page()) {
if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-1’)):
endif;
}
?>

<!–END #secondary .aside–>

</div>