예제 #1
0
function enlightenment_remove_primary_sidebar_in_full_width($is_active_sidebar, $index)
{
    if (current_theme_supports('enlightenment-custom-layouts') && 'full-width' == enlightenment_current_layout() && 'primary' == enlightenment_current_sidebar_name()) {
        remove_filter('is_active_sidebar', 'enlightenment_remove_sidebar_in_full_width', 8);
        return false;
    }
    return $is_active_sidebar;
}
예제 #2
0
function enlightenment_sidebar_alt()
{
    if ('sidebar-content-sidebar' == enlightenment_current_layout()) {
        get_sidebar('alt');
    }
}
예제 #3
0
function enlightenment_set_layout_sidebar_class($args)
{
    $layout = enlightenment_get_layout(enlightenment_current_layout());
    if (!empty($layout['sidebar_class']) && 'primary' == enlightenment_current_sidebar_name()) {
        $args['class'] .= ' ' . $layout['sidebar_class'];
    }
    return $args;
}