-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader-horizontal_02.php
125 lines (71 loc) · 2.19 KB
/
header-horizontal_02.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
<?php
/**
* Template part: Header Horizontal 02
* horizontal template for header
*/
global $olea_woo_is_active;
?>
<header id="site-menu" class="horizontal header-template-02">
<div class="row clearfix topbar">
<div class="large-12 " style="text-align: center">
<?php get_template_part('topbar'); ?>
</div>
</div><!-- .topbar -->
<div class="row clearfix border-bottom" data-equalizer>
<div class="large-4 vertical-align" data-equalizer-watch>
<div class="vertical-middle">
<?php
if ( $olea_woo_is_active && defined( 'YITH_WCAS' ) ) {
echo as_yith_ajax_search();
}elseif( $olea_woo_is_active ) {
as_get_product_search_form();
}else{
get_template_part('searchform','menu');
}
?>
</div>
</div>
<div id="site-title" class="large-4 vertical-align" data-equalizer-watch>
<div class="vertical-middle">
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> | <?php bloginfo( 'description' );?>" rel="home" class="home-link">
<?php do_action( 'olea_logo' ); ?>
</div>
</div>
<div class="large-4 vertical-align" data-equalizer-watch>
<div class="vertical-middle">
<?php
get_template_part('secondary_menu');
if ( $olea_woo_is_active ) {
get_template_part("woocommerce/headercart");
}
?>
</div>
</div>
<div class="clearfix"></div>
</div><!-- .row -->
<div class="row">
<nav id="main-nav-wrapper" class="large-12">
<?php
$walker = new My_Walker;
wp_nav_menu( array(
'theme_location' => 'main-horizontal',
//'menu' => 'Main menu',
'walker' => $walker,
'link_before' => '',
'link_after' =>'',
'menu_id' => 'main-nav',
'menu_class' => 'navigation to-stick horizontal',
'container' => false
)
);
?>
</nav>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="large-12 breadcrumbs-holder"><?php get_template_part('breadcrumbs'); ?></div>
</div>
</header>
<div id="site-menu-mobile">
<?php get_template_part('header','mobile'); ?>
</div>