-
Notifications
You must be signed in to change notification settings - Fork 200
/
Copy pathheader.php
65 lines (64 loc) · 4.57 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE HTML>
<!--
____ _ __ __ __ __ __ ____
/ _// |/ // / / // //_// __ \
_/ / / // /_/ // ,< / /_/ /
/___//_/|_/ \____//_/|_| \____/
-->
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<meta name="format-detection" content="telphone=no,email=no">
<meta name="keywords" content="<?php kratos_keywords(); ?>">
<meta name="description" itemprop="description" content="<?php kratos_description(); ?>">
<link rel="icon" type="image/x-icon" href="<?php echo kratos_option('site_ico'); ?>">
<title><?php wp_title('-',true,'right'); ?></title>
<?php wp_head();wp_print_scripts('theme-jq'); ?>
<style><?php
echo '#offcanvas-menu{background:rgba('.kratos_option('mobi_color').')}';
if(kratos_option('head_mode')=='pic'){
echo '.affix{top:61px}.kratos-cover.kratos-cover_2{background-image:url('.kratos_option('background_image').')}';
if(kratos_option('background_image_mobi')) echo '@media(max-width:768px){.kratos-cover.kratos-cover_2{background-image:url('.kratos_option('background_image_mobi').')}}';
if(kratos_option('mobi_mode')=='side') echo '@media(max-width:768px){#kratos-header-section{display:none}nav#offcanvas-menu{top:0;padding-top:40px}.kratos-cover .desc.desc2{margin-top:-55px}}';
}
if(kratos_option('background_mode')=='image') echo '@media(min-width:768px){.pagination>li>a{background-color:rgba(255,255,255,.8)}.kratos-hentry,.navigation div,.comments-area .comment-list li,#kratos-widget-area .widget,.comment-respond{background-color:rgba(253,253,253,.85)!important}.comment-list .children li{background-color:rgba(255,253,232,.7)!important}body.custom-background{background-image:url('.kratos_option('background_index_image').');background-size:cover;background-attachment:fixed}}';
if(kratos_option('add_css')) echo kratos_option('add_css'); ?>
</style>
</head>
<?php flush(); ?>
<body <?php if(kratos_option('background_mode')=='image') echo 'class="custom-background"'; ?>>
<div id="kratos-wrapper">
<div id="kratos-page">
<div id="kratos-header">
<?php if(has_nav_menu('header_menu')&&(kratos_option('head_mode')!='pic'||kratos_option('mobi_mode')=='side')): ?>
<div class="nav-toggle"><a class="kratos-nav-toggle js-kratos-nav-toggle"><i></i></a></div>
<?php endif; ?>
<header id="kratos-header-section"<?php if(kratos_option('head_mode')!='pic') echo ' class="color-banner" style="background:rgba('.kratos_option('banner_color').')"'; ?>>
<div class="container">
<div class="nav-header">
<?php if(kratos_option('head_mode')!='pic'): ?>
<div class="color-logo"><a href="<?php echo get_option('home'); ?>"><?php if(!kratos_option('banner_logo')) echo bloginfo('name'); else echo '<img src="'.kratos_option('banner_logo').'">'; ?></a></div>
<?php endif; ?>
<?php $defaults = array('theme_location'=>'header_menu','container'=>'nav','container_id'=>'kratos-menu-wrap','menu_class'=>'sf-menu','menu_id'=>'kratos-primary-menu',);
wp_nav_menu($defaults); ?>
</div>
</div>
</header>
</div>
<?php if(kratos_option('head_mode')=='pic'){ ?>
<div class="kratos-start kratos-hero-2">
<div class="kratos-overlay"></div>
<div class="kratos-cover kratos-cover_2 text-center">
<div class="desc desc2 animate-box">
<a href="<?php echo get_bloginfo('url'); ?>"><h2><?php echo kratos_option('background_image_text1'); ?></h2><br><span><?php echo kratos_option('background_image_text2'); ?></span></a>
</div>
</div>
</div>
<?php }else{ ?>
<div class="kratos-start kratos-hero"></div>
<?php } ?>
<div id="kratos-blog-post" <?php if(kratos_option('background_mode')=='color') echo 'style="background:'.kratos_option('background_index_color').'"'; ?>>