-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtemplate-about.php
364 lines (249 loc) · 14 KB
/
template-about.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<?php
/**
* The template for displaying about us page.
*
* Template Name: About us page
*
*/
get_header(); ?>
<!-- Wrapper start -->
<div class="main">
<!-- Header section start -->
<?php
$shop_isle_header_image = get_header_image();
if( !empty($shop_isle_header_image) ) {
echo '<section class="page-header-module module bg-dark" data-background="'.$shop_isle_header_image.'">';
} else {
echo '<section class="page-header-module module bg-dark">';
}
?>
<div class="container">
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<h1 class="module-title font-alt"><?php the_title(); ?></h1>
<?php
/* Header description */
$shop_isle_shop_id = get_the_ID();
if( !empty($shop_isle_shop_id) ) {
$shop_isle_page_description = get_post_meta($shop_isle_shop_id, 'shop_isle_page_description');
if( !empty($shop_isle_page_description[0]) ) {
echo '<div class="module-subtitle font-serif mb-0">'.$shop_isle_page_description[0].'</div>';
}
}
?>
</div>
</div><!-- .row -->
</div><!-- .container -->
</section><!-- .page-header-module -->
<!-- Header section end -->
<!-- About start -->
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
$shop_isle_content_aboutus = get_the_content();
}
}
if( trim($shop_isle_content_aboutus) != "" ) {
echo '<section class="module">';
echo '<div class="container">';
echo '<div class="row">';
echo '<div class="col-sm-12">';
the_content();
echo '</div>';
echo '</div>';
echo '</div>';
echo '</section>';
}
?>
<!-- About end -->
<!-- Divider -->
<hr class="divider-w">
<!-- Divider -->
<!-- Team start -->
<section class="module">
<div class="container">
<?php
$shop_isle_our_team_title = get_theme_mod('shop_isle_our_team_title', __( 'Meet our team', 'shop-isle' ));
$shop_isle_our_team_subtitle = get_theme_mod('shop_isle_our_team_subtitle',__( 'An awesome way to introduce the members of your team.', 'shop-isle' ));
if( !empty($shop_isle_our_team_title) || !empty($shop_isle_our_team_subtitle) ) {
echo '<div class="row">';
echo '<div class="col-sm-6 col-sm-offset-3">';
if( !empty($shop_isle_our_team_title) ) {
echo '<h2 class="module-title font-alt meet-out-team-title">'.$shop_isle_our_team_title.'</h2>';
}
if( !empty($shop_isle_our_team_subtitle) ) {
echo '<div class="module-subtitle font-serif meet-out-team-subtitle">';
echo $shop_isle_our_team_subtitle;
echo '</div>';
}
echo '</div>';
echo '</div><!-- .row -->';
}
$shop_isle_team_members = get_theme_mod('shop_isle_team_members',json_encode(array( array('image_url' => get_template_directory_uri().'/assets/images/team1.jpg' , 'text' => 'Eva Bean', 'subtext' => 'Developer', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.' ),array('image_url' => get_template_directory_uri().'/assets/images/team2.jpg' ,'text' => 'Maria Woods', 'subtext' => 'Designer', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.' ), array('image_url' => get_template_directory_uri().'/assets/images/team3.jpg' , 'text' => 'Booby Stone', 'subtext' => 'Director', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.'), array('image_url' => get_template_directory_uri().'/assets/images/team4.jpg' , 'text' => 'Anna Neaga', 'subtext' => 'Art Director', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.') )));
if( !empty( $shop_isle_team_members ) ) {
$shop_isle_team_members_decoded = json_decode($shop_isle_team_members);
if( !empty($shop_isle_team_members_decoded) ) {
echo '<div class="row">';
echo '<div class="hero-slider about-team-member">';
echo '<ul class="slides">';
foreach($shop_isle_team_members_decoded as $shop_isle_team_member) {
echo '<div class="col-sm-6 col-md-3 mb-sm-20 fadeInUp">';
echo '<div class="team-item">';
echo '<div class="team-image">';
if( !empty($shop_isle_team_member->image_url) ){
if( !empty($shop_isle_team_member->text) ) {
if (function_exists ( 'icl_t' ) && !empty($shop_isle_team_member->id)){
$shop_isle_team_member_image_url = icl_t( 'Team member '.$shop_isle_team_member->id, 'Team member image', $shop_isle_team_member->image_url );
$shop_isle_team_member_text = icl_t( 'Team member '.$shop_isle_team_member->id, 'Team member name', $shop_isle_team_member->text );
echo '<img src="'. esc_url( $shop_isle_team_member_image_url ).'" alt="'.esc_html($shop_isle_team_member_text).'">';
} else {
echo '<img src="'. esc_url( $shop_isle_team_member->image_url ).'" alt="'.esc_html($shop_isle_team_member->text).'">';
}
} else {
if (function_exists ( 'icl_t' ) && !empty($shop_isle_team_member->id)){
$shop_isle_team_member_image_url = icl_t( 'Team member '.$shop_isle_team_member->id, 'Team member image', $shop_isle_team_member->image_url );
echo '<img src="'. esc_url( $shop_isle_team_member_image_url ).'" alt="">';
} else {
echo '<img src="'. esc_url( $shop_isle_team_member_image_url ).'" alt="">';
}
}
}
if( !empty($shop_isle_team_member->description) ) {
echo '<div class="team-detail">';
if (function_exists ( 'icl_t' ) && !empty($shop_isle_team_member->id)){
$shop_isle_team_member_description = icl_t( 'Team member '.$shop_isle_team_member->id, 'Team member description', $shop_isle_team_member->description );
echo '<p class="font-serif">'.$shop_isle_team_member_description.'</p>';
} else {
echo '<p class="font-serif">'.$shop_isle_team_member->description.'</p>';
}
echo '</div><!-- .team-detail -->';
}
echo '</div><!-- .team-image -->';
echo '<div class="team-descr font-alt">';
if( !empty($shop_isle_team_member->text) ) {
if (function_exists ( 'icl_t' ) && !empty($shop_isle_team_member->id)){
$shop_isle_team_member_text = icl_t( 'Team member '.$shop_isle_team_member->id, 'Team member name', $shop_isle_team_member->text );
echo '<div class="team-name">'.$shop_isle_team_member_text.'</div>';
} else {
echo '<div class="team-name">'.$shop_isle_team_member->text.'</div>';
}
}
if( !empty($shop_isle_team_member->subtext) ) {
if (function_exists ( 'icl_t' ) && !empty($shop_isle_team_member->id)){
$shop_isle_team_member_subtext = icl_t( 'Team member '.$shop_isle_team_member->id, 'Team member job', $shop_isle_team_member->subtext );
echo '<div class="team-role">'.$shop_isle_team_member_subtext.'</div>';
} else {
echo '<div class="team-role">'.$shop_isle_team_member->subtext.'</div>';
}
}
echo '</div><!-- .team-descr -->';
echo '</div><!-- .team-item -->';
echo '</div><!-- .col-sm-6 col-md-3 mb-sm-20 fadeInUp -->';
}
echo '</ul>';
echo '</div>';
echo '</div>';
}
}
?>
</div>
</section>
<!-- Team end -->
<!-- Video start -->
<?php
$shop_isle_about_page_video_background = get_theme_mod('shop_isle_about_page_video_background',get_template_directory_uri().'/assets/images/background-video.jpg');
if( !empty($shop_isle_about_page_video_background) ):
echo '<section class="module bg-dark-60 about-page-video" data-background="'.$shop_isle_about_page_video_background.'">';
else:
echo '<section class="module bg-dark-60 about-page-video">';
endif;
?>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="video-box">
<?php
$shop_isle_about_page_video_link = get_theme_mod('shop_isle_about_page_video_link');
if( !empty($shop_isle_about_page_video_link) ):
echo '<div class="video-box-icon">';
echo '<a href="'.$shop_isle_about_page_video_link.'" class="video-pop-up"><span class="social_youtube_square"></span></a>';
echo '</div>';
endif;
if( empty($shop_isle_about_page_video_link) && isset( $wp_customize ) ):
echo '<div class="video-box-icon shop_isle_hidden_if_not_customizer">';
echo '<a href="'.$shop_isle_about_page_video_link.'" class="video-pop-up"><span class="social_youtube_square"></span></a>';
echo '</div>';
endif;
$shop_isle_about_page_video_title = get_theme_mod('shop_isle_about_page_video_title',__( 'Presentation', 'shop-isle' ));
$shop_isle_about_page_video_subtitle = get_theme_mod('shop_isle_about_page_video_subtitle',__( 'What the video about our new products', 'shop-isle' ));
if( !empty($shop_isle_about_page_video_title) ):
echo '<div class="video-title font-alt">'.$shop_isle_about_page_video_title.'</div>';
endif;
if( !empty($shop_isle_about_page_video_subtitle) ):
echo '<div class="video-subtitle font-alt">'.$shop_isle_about_page_video_subtitle.'</div>';
endif;
?>
</div>
</div>
</div><!-- .row -->
</div>
</section>
<!-- Video end -->
<!-- Features start -->
<section class="module module-advantages">
<div class="container">
<?php
$shop_isle_our_advantages_title = get_theme_mod('shop_isle_our_advantages_title',__( 'Our advantages', 'shop-isle' ));
if( !empty($shop_isle_our_advantages_title) ):
echo '<div class="row">';
echo '<div class="col-sm-6 col-sm-offset-3">';
echo '<h2 class="module-title font-alt our_advantages">'.$shop_isle_our_advantages_title.'</h2>';
echo '</div>';
echo '</div>';
endif;
$shop_isle_advantages = get_theme_mod('shop_isle_advantages',json_encode(array( array('icon_value' => 'icon_lightbulb' , 'text' => __('Ideas and concepts','shop-isle'), 'subtext' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','shop-isle')), array('icon_value' => 'icon_tools' , 'text' => __('Designs & interfaces','shop-isle'), 'subtext' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','shop-isle')), array('icon_value' => 'icon_cogs' , 'text' => __('Highly customizable','shop-isle'), 'subtext' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','shop-isle')), array('icon_value' => 'icon_like', 'text' => __('Easy to use','shop-isle'), 'subtext' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','shop-isle')))));
if( !empty( $shop_isle_advantages ) ):
$shop_isle_advantages_decoded = json_decode($shop_isle_advantages);
if( !empty($shop_isle_advantages_decoded) ):
echo '<div class="row multi-columns-row">';
foreach($shop_isle_advantages_decoded as $shop_isle_advantage):
echo '<div class="col-sm-6 col-md-3 col-lg-3">';
echo '<div class="features-item">';
if( !empty($shop_isle_advantage->icon_value) ):
echo '<div class="features-icon">';
if (function_exists ( 'icl_t' ) && !empty($shop_isle_advantage->id)){
$shop_isle_advantage_icon_value = icl_t( 'Advantage '.$shop_isle_advantage->id, 'Advantage icon',$shop_isle_advantage->icon_value );
echo '<span class="'.$shop_isle_advantage_icon_value.'"></span>';
} else {
echo '<span class="'.$shop_isle_advantage->icon_value.'"></span>';
}
echo '</div>';
endif;
if( !empty($shop_isle_advantage->text) ):
if (function_exists ( 'icl_t' ) && !empty($shop_isle_advantage->id)){
$shop_isle_advantage_text = icl_t( 'Advantage '.$shop_isle_advantage->id, 'Advantage text', $shop_isle_advantage->text );
echo '<h3 class="features-title font-alt">'.$shop_isle_advantage_text.'</h3>';
} else {
echo '<h3 class="features-title font-alt">'.$shop_isle_advantage->text.'</h3>';
}
endif;
if( !empty($shop_isle_advantage->subtext) ):
if (function_exists ( 'icl_t' ) && !empty($shop_isle_advantage->id)){
$shop_isle_advantage_subtext = icl_t( 'Advantage '.$shop_isle_advantage->id ,'Advantage subtext', $shop_isle_advantage->subtext );
echo $shop_isle_advantage_subtext;
} else {
echo $shop_isle_advantage->subtext;
}
endif;
echo '</div>';
echo '</div>';
endforeach;
echo '</div>';
endif;
endif;
?>
</div><!-- .container -->
</section>
<!-- Features end -->
<?php get_footer(); ?>