예제 #1
0
/**
 * This function/filter adds custom body class(es) to the
 * body class array.
 */
function calibrefx_layout_body_class($classes)
{
    $site_layout = calibrefx_site_layout();
    //add css class to the body class array
    if ($site_layout) {
        $classes[] = $site_layout;
    }
    if (!calibrefx_layout_is_static()) {
        return $classes;
    }
    if (calibrefx_layout_is_fixed_wrapper()) {
        $classes[] = 'layout-wrapper-fixed';
    } else {
        $classes[] = 'layout-wrapper-fluid';
    }
    return $classes;
}
예제 #2
0
/**
 * Get the container class for the html. will have post fix '-fluid' for responsive layout
 *
 * @return string
 */
function calibrefx_container_class()
{
    $containerClass = '';
    if (calibrefx_layout_is_fluid()) {
        $containerClass = 'container-fluid';
    }
    if (calibrefx_layout_is_static() && !calibrefx_layout_is_fixed_wrapper()) {
        $containerClass = 'container';
    }
    return apply_filters('calibrefx_container_class', $containerClass);
}