-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
135 lines (111 loc) · 5.91 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
<?php
?>
<!DOCTYPE html>
<!--
█░░░█ ░▀░ █▀▀▄ █▀▀ █▀▀█ █░░░█ █▀▀ █▀▀ █▀▀█ █▀▄▀█ █▀▀ █▀▀▄ █▀▀ █▀▀ █▀▀
█▄█▄█ ▀█▀ █░░█ █▀▀ █▄▄█ █▄█▄█ █▀▀ ▀▀█ █░░█ █░▀░█ █▀▀ █░░█ █▀▀ ▀▀█ ▀▀█
░▀░▀░ ▀▀▀ ▀░░▀ ▀▀▀ ▀░░▀ ░▀░▀░ ▀▀▀ ▀▀▀ ▀▀▀▀ ▀░░░▀ ▀▀▀ ▀░░▀ ▀▀▀ ▀▀▀ ▀▀▀
-->
<!--[if lt IE 9]><html <?php language_attributes(); ?> class="oldie"><![endif]-->
<!--[if (gte IE 9) | !(IE)]><!--><html <?php language_attributes(); ?> class="modern"><!--<![endif]-->
<head>
<script async type="text/javascript" src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=f5JiY5"></script>
<script src="//cdn.optimizely.com/js/1766050544.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-30935805-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-30935805-3');
</script>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]-->
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php global $ti_option; ?>
<link rel="shortcut icon" href="<?php echo $ti_option['site_favicon']['url']; ?>" />
<link rel="apple-touch-icon-precomposed" href="<?php echo $ti_option['site_retina_favicon']['url']; ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
<div id="pageslide" class="st-menu st-effect">
<a href="#" id="close-pageslide"><i class="icomoon-remove-sign"></i></a>
</div><!-- Sidebar in Mobile View -->
<?php
// Check for a layout options: Full Width or Boxed
if ( $ti_option['site_layout'] == '2' ) { $site_layout = ' class="layout-boxed"'; } else { $site_layout = ' class="layout-full"'; } ?>
<section id="site"<?php echo isset( $site_layout ) ? $site_layout : ''; ?>>
<div class="site-content">
<header id="masthead" role="banner" class="clearfix<?php if ( $ti_option['site_main_menu'] == true ) { echo ' with-menu'; } ti_top_strip_class(); ?>" itemscope itemtype="http://schema.org/WPHeader">
<div class="no-print top-strip">
<div class="wrapper clearfix">
<?php
// Hide Search and Social Icons if header variation with search is selected
if ( $ti_option['site_header'] != 'header_search' ) {
// Search Form
get_search_form();
// Social Profiles
if( $ti_option['top_social_profiles'] == 1 ) {
get_template_part ( 'inc/social', 'profiles' );
}
}
?>
<a href="#" id="open-pageslide" data-effect="st-effect"><i class="icomoon-menu"></i></a>
<?php
// Pages Menu
if ( has_nav_menu( 'secondary_menu' ) ) :
echo '<nav class="secondary-menu" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">';
wp_nav_menu( array(
'theme_location' => 'secondary_menu',
'container' => false,
));
echo '</nav>';
endif;
?>
</div><!-- .wrapper -->
</div><!-- .top-strip -->
<div id="branding" class="animated">
<div class="wrapper">
<?php
/**
* Header Variations
**/
// Logo, Social Icons and Search
if ( $ti_option['site_header'] == 'header_search' ) {
get_template_part( 'inc/header', 'search' );
// Logo and Ad unit
} elseif ( $ti_option['site_header'] == 'header_banner' ) {
get_template_part( 'inc/header', 'banner' );
// Default - Centered Logo and Tagline
} else {
get_template_part( 'inc/header', 'default' );
}
?>
</div><!-- .wrapper -->
</div><!-- #branding -->
<?php
// Main Menu
if ( $ti_option['site_main_menu'] == true ):
if ( has_nav_menu( 'main_menu' ) ) :
echo '<div class="no-print animated main-menu-container">';
if ( $ti_option['site_fixed_menu'] == '3' && $ti_option['site_main_menu'] == true ):
echo '<div class="main-menu-fixed">';
endif;
echo '<nav class="wrapper main-menu" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">';
wp_nav_menu( array(
'theme_location' => 'main_menu',
'container' => false,
'walker' => new TI_Menu()
));
echo '</nav>';
if ( $ti_option['site_fixed_menu'] == '3' && $ti_option['site_main_menu'] == true ):
echo '</div>';
endif;
echo '</div>';
else:
echo '<div class="message warning"><i class="icomoon-warning-sign"></i>' . __( 'Define your site main menu', 'themetext' ) . '</div>';
endif;
endif;
?>
</header><!-- #masthead -->