/** * 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; }
function calibrefx_content_sidebar_span() { // get the layout $site_layout = calibrefx_site_layout(); // don't load sidebar on pages that don't need it if ('full-width-content' == $site_layout) { return; } if (calibrefx_is_responsive_enabled()) { return apply_filters('calibrefx_sidebar_span', 'col-lg-9 col-md-9 col-sm-12 col-xs-12'); } else { return apply_filters('calibrefx_sidebar_span', 'col-xs-9'); } }