Exemplo n.º 1
0
function layout_body_class($classes)
{
    global $pinnacle;
    if (isset($pinnacle['sticky_header']) && $pinnacle['sticky_header'] == '1') {
        $stickyheader = 'stickyheader';
    } else {
        $stickyheader = 'notsticky';
    }
    if (kadence_pagetitle_behind_header()) {
        $pagetitlebg = 'trans-header';
    } else {
        $pagetitlebg = 'none-trans-header';
    }
    $classes[] = 'wide';
    $classes[] = $pagetitlebg;
    $classes[] = $stickyheader;
    return $classes;
}
Exemplo n.º 2
0
} else {
    $header_height = 90;
}
if (isset($pinnacle['m_sticky_header']) && $pinnacle['m_sticky_header'] == '1') {
    $msticky = '1';
    $mstickyclass = 'mobile-stickyheader';
} else {
    $msticky = '0';
    $mstickyclass = '';
}
if (isset($pinnacle['shrink_header']) && $pinnacle['shrink_header'] == '1') {
    $shrinkh = '1';
} else {
    $shrinkh = '0';
}
if (!kadence_pagetitle_behind_header()) {
    $pageheaderbg = '0';
} else {
    $pageheaderbg = '1';
}
if (isset($pinnacle['logo_container_width'])) {
    if ($pinnacle['logo_container_width'] == '50') {
        $logocclass = 'col-md-6 col-sm-9 col-ss-10';
        $menulclass = 'kt-menu-left col-md-3 col-sm-3 col-ss-2';
        $menurclass = 'kt-menu-right col-md-3 col-sm-3 col-ss-2';
    } elseif ($pinnacle['logo_container_width'] == '41') {
        $logocclass = 'col-md-4 col-sm-8 col-ss-10';
        $menulclass = 'kt-menu-left col-md-4 col-sm-4 col-ss-2';
        $menurclass = 'kt-menu-right col-md-4 col-sm-4 col-ss-2';
    } elseif ($pinnacle['logo_container_width'] == '33') {
        $logocclass = 'col-md-4 col-sm-8 col-ss-10';