-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
200 lines (187 loc) · 10.4 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<!--====== Required meta tags ======-->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<!--====== PRELOADER PART START ======-->
<div class="preloader">
<div class="loader_34">
<div class="ytp-spinner">
<div class="ytp-spinner-container">
<div class="ytp-spinner-rotator">
<div class="ytp-spinner-left">
<div class="ytp-spinner-circle"></div>
</div>
<div class="ytp-spinner-right">
<div class="ytp-spinner-circle"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--====== PRELOADER ENDS START ======-->
<!--====== HEADER PART START ======-->
<header id="home" class="header-area">
<div class="navigation">
<div class="container">
<div class="row">
<div class="col-lg-12">
<nav class="navbar navbar-expand-lg">
<?php
$custom_logo_id = get_theme_mod('custom_logo');
$logo = wp_get_attachment_image_src( $custom_logo_id, 'full');
?>
<a class="navbar-brand" href="<?php echo esc_url( home_url('/') ); ?>">
<?php
if( has_custom_logo() ){
?>
<img src="<?php echo esc_url( $logo[0] ) ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>">
<?php
}else{
?>
<span><?php echo esc_html(get_bloginfo('name')); ?></span>
<?php
}
?>
</a> <!-- Logo -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="toggler-icon"></span>
<span class="toggler-icon"></span>
<span class="toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<?php
wp_nav_menu(array(
'menu' => '',
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => '',
'menu_class' => 'navbar-nav ml-auto',
'menu_id' => '',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'before' => '',
'after' => '',
'depth' => 3,
'walker' => new WP_Bootstrap_Navwalker(),
'theme_location' => 'primary_menu'
));
?>
</div> <!-- navbar collapse -->
</nav> <!-- navbar -->
</div>
</div> <!-- row -->
</div> <!-- container -->
</div> <!-- navigation -->
<?php
if (is_page_template('template-home.php')) :
?>
<div id="parallax" class="header-content d-flex align-items-center">
<div class="header-shape shape-one layer" data-depth="0.10">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-1.png" alt="Shape">
</div> <!-- header shape -->
<div class="header-shape shape-tow layer" data-depth="0.30">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-2.png" alt="Shape">
</div> <!-- header shape -->
<div class="header-shape shape-three layer" data-depth="0.40">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-3.png" alt="Shape">
</div> <!-- header shape -->
<div class="header-shape shape-fore layer" data-depth="0.60">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-2.png" alt="Shape">
</div> <!-- header shape -->
<div class="header-shape shape-five layer" data-depth="0.20">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-1.png" alt="Shape">
</div> <!-- header shape -->
<div class="header-shape shape-six layer" data-depth="0.15">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-4.png" alt="Shape">
</div> <!-- header shape -->
<div class="header-shape shape-seven layer" data-depth="0.50">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-5.png" alt="Shape">
</div> <!-- header shape -->
<div class="header-shape shape-eight layer" data-depth="0.40">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-3.png" alt="Shape">
</div> <!-- header shape -->
<div class="header-shape shape-nine layer" data-depth="0.20">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-6.png" alt="Shape">
</div> <!-- header shape -->
<div class="header-shape shape-ten layer" data-depth="0.30">
<img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/banner/shape/shape-3.png" alt="Shape">
</div> <!-- header shape -->
<div class="container">
<div class="row align-items-center">
<div class="col-xl-5 col-lg-6">
<div class="header-content-right">
<h4 class="sub-title">
<?php
echo esc_html( get_theme_mod('hero_section_intro_title') );
?>
</h4>
<h1 class="title">
<?php
echo esc_html( get_theme_mod('hero_section_title') );
?>
</h1>
<p>
<?php
echo esc_html( get_theme_mod('hero_section_sub_title') );
?>
</p>
<a class="main-btn" href="<?php
$hero_section_cv = get_theme_mod('hero_section_cv');
echo esc_url($hero_section_cv);?>">
<?php
echo esc_html( get_theme_mod('hero_section_btn') );
?>
</a>
</div> <!-- header content right -->
</div>
<div class="col-lg-6 offset-xl-1">
<div class="header-image d-none d-lg-block">
<img src="<?php
$hero_section_photo = get_theme_mod('hero_section_photo');
echo esc_url($hero_section_photo);
?>" alt="hero">
</div> <!-- header image -->
</div>
</div> <!-- row -->
</div> <!-- container -->
<?php
$social_enable = get_theme_mod('hero_section_social_enable');
if( $social_enable ){
?>
<div class="header-social">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="header-social-icon">
<ul>
<?php
$hero_section_social = get_theme_mod('hero_section_social');
foreach($hero_section_social as $hss){
?>
<li><a href="<?php echo esc_url($hss['social_url']); ?>"><i class="<?php echo esc_attr($hss['social_icon']); ?>"></i></a></li>
<?php
}
?>
</ul>
</div> <!-- header social -->
</div>
</div> <!-- row -->
</div> <!-- container -->
</div> <!-- header social -->
<?php
}
?>
</div> <!-- header content -->
<?php
endif;
?>
</header>
<!--====== HEADER PART ENDS ======-->