This repository has been archived by the owner on Mar 19, 2020. It is now read-only.
forked from seatonjiang/kratos
-
Notifications
You must be signed in to change notification settings - Fork 3
/
header.php
68 lines (64 loc) · 2.96 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
66
67
68
<?php
/**
* The template for displaying the header
*
* @author Vtrois <[email protected]>
* @license GPL-3.0
*/
?><!DOCTYPE HTML>
<html class="no-js">
<head>
<title><?php wp_title( '-', true, 'right' ); ?></title>
<meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php if(kratos_option('tab_theme_color')){ ?>
<meta name="theme-color" content="<?php echo kratos_option('tab_theme_color') ?>">
<meta name="msapplication-TileColor" content="<?php echo kratos_option('tab_theme_color') ?>">
<?php }?>
<?php if(kratos_option('dns_prefetch')){ ?>
<meta http-equiv="x-dns-prefetch-control" content="on">
<?php }?>
<?php if(!empty(kratos_option('dns_prefetch_list'))){
foreach(explode(";",kratos_option('dns_prefetch_list')) as $uri){
echo '<link rel="dns-prefetch" href="//'.$uri.'">';
}
}?>
<meta name="robots" content="index,follow">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telphone=no, email=no">
<meta name="description" content="<?php kratos_description(); ?>" />
<meta name="keywords" content="<?php kratos_keywords();?>" />
<meta itemprop="image" content="<?php echo kratos_thumbnail_url(); ?>"/>
<meta name="description" itemprop="description" content="<?php kratos_description(); ?>" />
<?php wp_head(); ?>
<?php wp_print_scripts('jquery'); ?>
<?php if ( kratos_option('site_bw')==1 ) : ?>
<style type="text/css">html{filter: grayscale(100%);-webkit-filter: grayscale(100%);-moz-filter: grayscale(100%);-ms-filter: grayscale(100%);-o-filter: grayscale(100%);filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);filter: gray;-webkit-filter: grayscale(1); }
</style>
<?php endif; ?>
</head>
<?php flush(); ?>
<body data-spy="scroll" data-target=".scrollspy">
<div id="kratos-wrapper">
<div id="kratos-page">
<div id="kratos-header">
<header id="kratos-header-section">
<div class="container">
<div class="nav-header">
<?php if ( has_nav_menu('header_menu') ) :?>
<a href="#" class="js-kratos-nav-toggle kratos-nav-toggle"><i></i></a>
<?php endif; ?>
<?php $site_logo = kratos_option('site_logo');?>
<?php if ( !empty( $site_logo ) ) {?>
<a href="<?php echo get_option('home'); ?>">
<h1 id="kratos-logo-img"><img src="<?php echo $site_logo; ?>"></h1>
</a>
<?php }else{?>
<h1 id="kratos-logo"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
<?php }?>
<?php $defaults = array('theme_location' => 'header_menu', 'container' => 'nav', 'container_id' => 'kratos-menu-wrap', 'menu_class' => 'sf-menu', 'menu_id' => 'kratos-primary-menu', ); ?>
<?php wp_nav_menu($defaults); ?>
</div>
</div>
</header>
</div>