-
Notifications
You must be signed in to change notification settings - Fork 11
/
header.php
executable file
·147 lines (138 loc) · 5.93 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package OneEngine
*/
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]><html class="ie ie9" lang="en"> <![endif]-->
<!--[if (gte IE 10)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Title
================================================== -->
<title><?php bloginfo('name'); ?><?php if(is_front_page()){ echo ' - ' .get_bloginfo('description');} else echo wp_title(); ?>
</title>
<!-- Title / End -->
<!-- Meta
================================================== -->
<meta name="description" content="<?php echo oneengine_option( 'meta_description' );?>">
<meta name="keywords" content="<?php echo oneengine_option( 'meta_keyword' ); ?>">
<meta name="author" content="<?php echo oneengine_option( 'meta_author' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Meta / End -->
<!-- Favicons
================================================== -->
<link rel="shortcut icon" href="<?php echo oneengine_option('favicon', false, 'url'); ?>">
<link rel="icon" type="image/png" href="<?php echo oneengine_option('favicon', false, 'url'); ?>" />
<link rel="apple-touch-icon" href="<?php echo oneengine_option('touch_icon', false, 'url'); ?>">
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo oneengine_option('touch_icon_72', false, 'url'); ?>">
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo oneengine_option('touch_icon_144', false, 'url'); ?>">
<!-- Favicons / End -->
<noscript>
<style>
#portfolio_list div.item a div.hover {
top: 0px;
left: -100%;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
#portfolio_list div.item a:hover div.hover{
left: 0px;
}
</style>
</noscript>
<?php
//loads comment reply JS on single posts and pages
if ( is_single()) wp_enqueue_script( 'comment-reply' );
?>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!-- Preloading
======================================================================== -->
<div class="mask-color">
<div id="preview-area">
<div class="spinner">
<div class="dot1"></div>
<div class="dot2"></div>
</div>
</div>
</div>
<!-- Preloading / End -->
<?php if( is_front_page() ){ ?>
<!-- Slider
======================================================================== -->
<div class="slider-wrapper">
<?php oe_main_slider(); ?>
</div>
<!-- Slider / End -->
<?php } ?>
<!-- Header
======================================================================== -->
<header id="header">
<div class="container" >
<div class="row">
<div class="col-md-3 col-xs-3">
<!-- Logo
======================================================================== -->
<div class="logo-wrapper">
<div class="logo">
<a href="<?php echo home_url(); ?>">
<?php
$top = '' ;
$left = '' ;
$width = '' ;
if( oneengine_option('logo_top') != '' )$top = 'top:'.oneengine_option('logo_top').'px;' ;
if( oneengine_option('logo_left') != '' )$left = 'left:'.oneengine_option('logo_left').'px;';
if( oneengine_option('logo_width') != '' )$width = 'width:'.oneengine_option('logo_width').'px;';
if( oneengine_option('custom_logo', false, 'url') !== '' ){
echo '<div class="logo-wrapper" style="'.$width.$left.$top.'"><img src="'. oneengine_option('custom_logo', false, 'url') .'" alt="'.get_bloginfo( 'name' ).'" /></div>';
}else{
?>
<div class="logo-img"><span>E</span></div>
<?php } ?>
</a>
</div>
</div>
<!-- Logo / End -->
</div>
<div class="col-md-9 col-xs-9">
<!-- Menu
======================================================================== -->
<nav id="main-menu-top">
<?php
wp_nav_menu(array(
'container' => false,
'container_class' => 'menu',
'menu_class' => 'main-menu',
'menu_id' => 'menu-res',
'theme_location' => 'main_nav',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'fallback_cb' => false,
));
?>
</nav>
<!-- Menu / End -->
<nav class="menu-responsive">
</nav>
</div>
</div>
</div>
</header>
<!-- Header / End -->