コード例 #1
0
ファイル: config.php プロジェクト: oeuvrayjoris/grece
function kad_layout_body_class($classes)
{
    global $pinnacle;
    if (pinnacle_pagetitle_behind_header()) {
        $pagetitlebg = 'trans-header';
    } else {
        $pagetitlebg = 'none-trans-header';
    }
    $classes[] = 'wide';
    $classes[] = $pagetitlebg;
    return $classes;
}
コード例 #2
0
ファイル: header.php プロジェクト: oeuvrayjoris/grece
<?php

global $pinnacle, $post;
if (isset($pinnacle['header_height'])) {
    $header_height = $pinnacle['header_height'];
} else {
    $header_height = 90;
}
if (!pinnacle_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 = 'col-md-6 col-sm-3 col-ss-2';
    } elseif ($pinnacle['logo_container_width'] == '41') {
        $logocclass = 'col-md-5 col-sm-9 col-ss-10';
        $menulclass = 'col-md-7 col-sm-3 col-ss-2';
    } elseif ($pinnacle['logo_container_width'] == '33') {
        $logocclass = 'col-md-4 col-sm-8 col-ss-10';
        $menulclass = 'col-md-8 col-sm-4 col-ss-2';
    } elseif ($pinnacle['logo_container_width'] == '25') {
        $logocclass = 'col-md-3 col-sm-8 col-ss-9';
        $menulclass = 'col-md-9 col-sm-4 col-ss-3';
    } else {
        $logocclass = 'col-md-2 col-sm-8 col-ss-9';
        $menulclass = 'col-md-10 col-sm-4 col-ss-3';
    }
} else {