-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
171 lines (153 loc) · 7.87 KB
/
Copy pathheader.php
File metadata and controls
171 lines (153 loc) · 7.87 KB
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
/**
* The Header template for our theme
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Howes
* @since Howes 1.0
*/
global $howes;
$stickyHeaderClass = ($howes['stickyheader']=='y') ? 'masthead-header-stickyOnScroll' : '' ; // Check if sticky header enabled
$search_title = ( isset($howes['search_title']) && trim($howes['search_title'])!='' ) ? trim($howes['search_title']) : "Just type and press 'enter'" ;
$search_input = ( isset($howes['search_input']) && trim($howes['search_input'])!='' ) ? trim($howes['search_input']) : "WRITE SEARCH WORD..." ;
$search_close = ( isset($howes['search_close']) && trim($howes['search_close'])!='' ) ? trim($howes['search_close']) : "Close search" ;
$stickyLogo = 'no';
if( isset($howes['logoimg_sticky']["url"]) && trim($howes['logoimg_sticky']["url"])!='' ){
$stickyLogo = 'yes';
}
$headerContainer = 'container';
if( $howes['layout']=='fullwide' ){
if( isset($howes['full_wide_elements']['header']) && $howes['full_wide_elements']['header']=='1' )
$headerContainer = 'container-full';
}
?>
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<title>
<?php wp_title( '|', true, 'right' ); ?>
</title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!-- <div id="pageoverlay"></div> -->
<div class="main-holder animsition">
<div id="page" class="hfeed site">
<header id="masthead" class="site-header header-text-color-<?php echo $howes['header_text_color']; ?>" role="banner">
<div class="headerblock <?php echo thememount_headerclass(); ?>">
<?php thememount_floatingbar(); ?>
<?php thememount_topbar(); ?>
<div id="stickable-header" class="header-inner <?php echo sanitize_html_class($stickyHeaderClass); ?>">
<div class="<?php echo $headerContainer; ?>">
<div class="headercontent clearfix">
<div class="headerlogo thememount-logotype-<?php echo $howes['logotype']; ?> tm-stickylogo-<?php echo $stickyLogo; ?>">
<h1 class="site-title"> <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php if( $howes['logotype'] == 'image' ){ ?>
<?php /* ?>
<?php if( $thememount_retina_logo=='on' ){ ?>
<img class="thememount-logo-img retina" src="<?php echo $howes['logoimg_retina']["url"]; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" width="<?php echo round(($howes['logoimg']["width"])/2); ?>" height="<?php echo round(($howes['logoimg']["height"])/2); ?>">
<?php } else { ?>
<img class="thememount-logo-img standard" src="<?php echo $howes['logoimg']["url"]; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" width="<?php echo $howes['logoimg']["width"]; ?>" height="<?php echo $howes['logoimg']["height"]; ?>">
<?php }; ?>
<?php */ ?>
<img class="thememount-logo-img standardlogo" src="<?php echo $howes['logoimg']["url"]; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" width="<?php echo $howes['logoimg']["width"]; ?>" height="<?php echo $howes['logoimg']["height"]; ?>">
<?php if( isset($howes['logoimg_sticky']["url"]) && trim($howes['logoimg_sticky']["url"])!='' ): ?>
<img class="thememount-logo-img stickylogo" src="<?php echo $howes['logoimg_sticky']["url"]; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" width="<?php echo $howes['logoimg_sticky']["width"]; ?>" height="<?php echo $howes['logoimg_sticky']["height"]; ?>">
<?php endif; ?>
<?php } else { ?>
<?php if( trim($howes['logotext'])!='' ){ echo $howes['logotext']; } else { bloginfo( 'name' ); }?>
<?php } ?>
</a> </h1>
<h2 class="site-description">
<?php bloginfo( 'description' ); ?>
</h2>
</div>
<?php
/*
* Search is now optional. You can show/hide search button from "Theme Options" directly.
*/
$header_search = ( !isset($howes['header_search']) ) ? '1' : $howes['header_search'] ;
$navbarClass = ( $header_search=='1' ) ? ' class="k_searchbutton"' : '' ;
?>
<div id="navbar"<?php echo $navbarClass; ?>>
<nav id="site-navigation" class="navigation main-navigation" role="navigation">
<div class="header-controls">
<?php if( $header_search=='1'): ?>
<div class="search_box"> <a href="#"><i class="tmicon-fa-search"></i></a>
<div class="k_flying_searchform_wrapper">
<form method="get" id="flying_searchform" action="<?php echo home_url(); ?>" >
<div class="w-search-form-h">
<div class="w-search-form-row">
<div class="w-search-label">
<label for="searchval"><?php _e($search_title, 'howes'); ?></label>
</div>
<div class="w-search-input">
<input type="text" class="field searchform-s" name="s" id="searchval" placeholder="<?php _e($search_input, 'howes'); ?>" value="<?php echo get_search_query() ?>">
</div>
<a class="w-search-close" href="javascript:void(0)" title="<?php _e($search_close, 'howes'); ?>"><i class="tmicon-fa-times"></i></a> </div>
</div>
</form>
</div>
</div>
<?php endif; ?>
<?php
$wc_header_icon = ( isset($howes['wc-header-icon']) && trim($howes['wc-header-icon'])!='' ) ? trim($howes['wc-header-icon']) : '1' ;
if( function_exists('is_woocommerce') && $wc_header_icon=='1' ){
global $woocommerce;
?>
<div class="thememount-header-cart-link-wrapper">
<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" class="thememount-header-cart-link"><i class="tmicon-fa-shopping-cart"></i> <span class="thememount-cart-qty">
<span class="cart-contents"></span>
</a>
</div>
<?php } ?>
</div>
<h3 class="menu-toggle">
<?php _e( '<span>Toggle menu</span><i class="tmicon-fa-navicon"></i>', 'howes' ); ?>
</h3>
<a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'howes' ); ?>">
<?php _e( 'Skip to content', 'howes' ); ?>
</a>
<?php
//if ( has_nav_menu( 'primary' ) ){
//wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' , 'walker' => new thememount_custom_menus_walker ) );
//} else {
wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'container_class' => 'menu-main-menu-container nav-menu-wrapper' ) );
//}
?>
<?php /*?> <?php get_search_form(); ?><?php */?>
</nav>
<!-- #site-navigation -->
<script type="text/javascript">
tm_hide_togle_link();
</script>
</div>
<?php thememount_one_page_site(); ?>
<!-- #navbar -->
</div>
<!-- .row -->
</div>
</div>
</div>
<?php thememount_header_titlebar(); ?>
<?php thememount_header_slider(); ?>
</header>
<!-- #masthead -->
<div id="main" class="site-main">