Forum Replies Created

Viewing 1 replies (of 1 total)
  • webophir,

    I’m running the latest Tiga, and I just looked at sidebar.php. It doesn’t seem to have the exact structure you mention, but it does have the following.

    function has_dynamic_sidebar($name) {
    if (!function_exists(‘dynamic_sidebar’))
    return false;

    global $registered_sidebars, $registered_widgets;

    $index = sanitize_title($name);

    $sidebars_widgets = get_option(‘sidebars_widgets’);

    $sidebar = $registered_sidebars[$index];

    if ( empty($sidebar) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )
    return false;

    $did_one = false;
    foreach ( $sidebars_widgets[$index] as $name ) {
    $callback = $registered_widgets[$name][‘callback’];

    if ( is_callable($callback) ) {
    $did_one = true;
    }
    }

    return $did_one;
    }
    ?>

    This function is used to check for the existence of “Tiga Left Sidebar,” and “Tiga RIght Sidebar,” the two default sidebars.

    Any help or suggestions would be greatly appreciated.

Viewing 1 replies (of 1 total)