ThemeHunk Customizer - Version 2.5.7

Version Description

  • shopline - th advance product search plugin added.
  • oneline-lite - add new section text issue fixed.
Download this release

Release Info

Developer themehunk
Plugin Icon 128x128 ThemeHunk Customizer
Version 2.5.7
Comparing to
See all releases

Code changes from version 2.5.6 to 2.5.7

readme.txt CHANGED
@@ -4,7 +4,7 @@ Author URI: : https://www.themehunk.com/
4
  Tags: themehunk, customizer, oneline-lite,Testimonial,Team, service
5
  Requires at least: 5.5
6
  Tested up to: 5.8.1
7
- Stable tag: 2.5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,6 +29,11 @@ Just upload the `themehunk-customizer.zip` to the `/wp-content/plugins/` directo
29
  == Screenshots ==
30
 
31
  == Changelog ==
 
 
 
 
 
32
  = 2.5.6 =
33
  * Jotshop - Banner Add.
34
 
4
  Tags: themehunk, customizer, oneline-lite,Testimonial,Team, service
5
  Requires at least: 5.5
6
  Tested up to: 5.8.1
7
+ Stable tag: 2.5.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
  == Screenshots ==
30
 
31
  == Changelog ==
32
+
33
+ = 2.5.7 =
34
+ * shopline - th advance product search plugin added.
35
+ * oneline-lite - add new section text issue fixed.
36
+
37
  = 2.5.6 =
38
  * Jotshop - Banner Add.
39
 
shopline/inc/image-crop.php CHANGED
@@ -220,7 +220,7 @@ if ((function_exists('is_multisite') && is_multisite()) || ($single_site = true)
220
  * @return type
221
  */
222
 
223
- function th_thumbnail_resize($attach_id = null, $img_url = null, $width, $height, $crop = false, $jpeg_quality = 90) {
224
  // this is an attachment, so we have the ID
225
  if ($attach_id) {
226
  $image_src = wp_get_attachment_image_src($attach_id, 'full');
@@ -302,6 +302,6 @@ function th_thumbnail_resize($attach_id = null, $img_url = null, $width, $height
302
  'height' => $image_src[2]
303
  );
304
  return $vt_image;
305
- }
306
 
307
  ?>
220
  * @return type
221
  */
222
 
223
+ /*function th_thumbnail_resize($attach_id = null, $img_url = null, $width, $height, $crop = false, $jpeg_quality = 90) {
224
  // this is an attachment, so we have the ID
225
  if ($attach_id) {
226
  $image_src = wp_get_attachment_image_src($attach_id, 'full');
302
  'height' => $image_src[2]
303
  );
304
  return $vt_image;
305
+ } */
306
 
307
  ?>
shopline/inc/shortcode.php CHANGED
@@ -1,1010 +1,986 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
- function themehunk_customizer_add_shotcode($section=''){
4
- $return =''; ?>
5
- <?php $prlx = get_theme_mod('parallax_opt','on');
6
- $prlx_class = '';
7
- $prlx_data_center = '';
8
- $prlx_top_bottom ='';
9
- if($prlx=='on'){
10
- $prlx_class = 'parallax';
11
- $prlx_data_center = 'background-position: 50% 0px';
12
- $prlx_top_bottom = 'background-position: 50% -100px;';
13
- }else{
14
- $prlx_class = '';
15
- $prlx_data_center = '';
16
- $prlx_top_bottom ='';
17
- } ?>
18
- <?php if($section=='aboutus'):
19
- $heading = get_theme_mod('aboutus_heading','');
20
- $subheading = get_theme_mod('aboutus_subheading','');
21
- $shortdesc = get_theme_mod('aboutus_shortdesc','');
22
- $longdesc = get_theme_mod('aboutus_longdesc','');
23
- $aboutusimg = get_theme_mod('aboutus_image','');
24
- $buttontext = get_theme_mod('aboutus_btn_text','');
25
- $buttonlink = get_theme_mod('aboutus_btn_link','');
26
- $aboutus_parallax = get_theme_mod('aboutus_parallax','on');
27
- $buttontext = ($buttontext!='')?$buttontext:"Get Link Page";
28
- ?>
29
- <!-- Start amazing story -->
30
- <div class="about-wrapper">
31
- <?php
32
- $svg_class = '';
33
- $svgbg = shopline_svg_enable('aboutus_options','about_svg_style','aboutus_overly');
34
- if($svgbg!=''){
35
- echo $svgbg;
36
- $svg_class = 'svg_enable';
37
- }
38
- ?>
39
- <?php if($aboutus_parallax =='on'){?>
40
- <section id="aboutus_section" class="amazing-story parallax <?php echo $svg_class;?>"
41
- data-center="background-position: 50% 0px;"
42
- data-top-bottom="background-position: 50% -100px;">
43
- <?php } else { ?>
44
- <section id="aboutus_section" class="amazing-story <?php echo $svg_class;?>">
45
- <?php } ?>
46
- <div class="container">
47
- <div class="amazing-block">
48
- <ul class="amazing-list">
49
- <li class="one wow thmkfadeIn" data-wow-duration="3s">
50
- <?php if($aboutusimg!=''){ ?>
51
- <img src="<?php echo $aboutusimg; ?>"/>
52
- <?php } else { ?>
53
- <?php if(shopline_show_dummy_data()): ?>
54
- <img src="<?php echo SHOPLINE_LARGE; ?>"/>
55
- <?php endif; ?>
56
- <?php } ?>
57
- </li>
58
- <li class="two wow thmkfadeIn" data-wow-duration="3s">
59
- <div class="flex-abt">
60
- <?php if($heading!=''){ ?>
61
- <h2 class="aboutus-heading"><?php echo $heading; ?></h2>
62
- <?php } else { ?>
63
- <?php if(shopline_show_dummy_data()): ?>
64
- <h2 class="aboutus-heading"><?php _e('Nulla sollicitudin euismod felis','oneline'); ?></h2>
65
- <?php endif; ?>
66
- <?php } ?>
67
- <?php if($shortdesc!=''){ ?>
68
- <h3><?php echo $shortdesc; ?></h3>
69
- <?php } else { ?>
70
- <?php if(shopline_show_dummy_data()): ?>
71
- <h3>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis!</h3>
72
- <?php endif; ?>
73
- <?php } ?>
74
- <?php if($longdesc!=''){ ?>
75
- <p><?php echo $longdesc; ?></p>
76
- <?php } else { ?>
77
- <?php if(shopline_show_dummy_data()): ?>
78
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum. Donec lacinia, nunc sit amet luctus aliquet, ante augue dapibus metus, nec dictum sapien velit vitae neque.</p>
79
- <?php endif; ?>
80
- <?php } ?>
81
- <?php if($buttonlink !='' || $buttontext !=''): ?>
82
- <a class="amazing-btn" href="<?php echo $buttonlink; ?>"><?php echo $buttontext ; ?></a>
83
- <?php else: ?>
84
- <?php if(shopline_show_dummy_data()): ?>
85
- <a class="amazing-btn" href="''">Get Link Page</a>
86
- <?php endif; ?>
87
- <?php endif; ?>
88
- </li>
89
- </div>
90
- </ul>
91
-
92
- </div>
93
- </div>
94
- </section>
95
- <div class="clearfix"></div>
96
- <?php
97
- elseif($section=='blog'):
98
- $blog_slidr_spd = get_theme_mod('blog_slider_speed','');
99
- $heading = esc_html(get_theme_mod('blog_heading',''));
100
- $subheading = esc_html(get_theme_mod('blog_subheading',''));
101
- if(get_theme_mod('blog_play','')=='on'){
102
- $blogply='true';
103
- }else{
104
- $blogply='false';
105
- };
106
- $oneline_plx = get_theme_mod('parallax_opt');
107
- if($oneline_plx =='' || $oneline_plx =='0'){
108
- $prlx_class = 'parallax';
109
- $prlx_data_center = 'background-position: 50% 0px';
110
- $prlx_top_bottom = 'background-position: 50% -100px;';
111
- }else{
112
- $prlx_class = '';
113
- $prlx_data_center = '';
114
- $prlx_top_bottom ='';
115
- }
116
- ?>
117
- <div class="blog-wrapper">
118
- <input type="hidden" id="blog_slidr_spd" value="<?php echo $blog_slidr_spd; ?>">
119
- <input type="hidden" id="blog_ply" value="<?php echo esc_html($blogply); ?>">
120
- <?php
121
- $svg_class = '';
122
- $svgbg = shopline_svg_enable('blog_options','blog_svg_style','blog_overly');
123
- if($svgbg!=''){
124
- echo $svgbg;
125
- $svg_class = 'svg_enable';
126
- }
127
- ?>
128
- <section id="post_section" class="lst-post <?php echo esc_html($prlx_class);?> <?php echo esc_html($svg_class);?>"
129
- data-center="<?php echo $prlx_data_center;?>"
130
- data-top-bottom="<?php echo $prlx_top_bottom;?>">
131
- <div class="container">
132
- <div class="block-heading wow thmkfadeIn" data-wow-duration="3s">
133
- <?php if($heading!=''){ ?>
134
- <h2 class="blog-heading"><?php echo $heading; ?></h2>
135
- <?php } else { ?>
136
- <?php if(shopline_show_dummy_data()): ?>
137
- <h2 class="blog-heading"><?php _e('THE BLOG','shopline'); ?></h2>
138
- <?php endif; ?>
139
- <?php } ?>
140
- <div class="heading-border"></div>
141
- <?php if($subheading!=''){ ?>
142
- <p class="blog-sub-heading"><?php echo $subheading; ?></p>
143
- <?php } else { ?>
144
- <?php if(shopline_show_dummy_data()): ?>
145
- <p class="blog-sub-heading"><?php _e('fitness quality backpacks, bags, travel goods and accessories','shopline'); ?> </p>
146
- <?php endif; ?>
147
- <?php } ?>
148
- </div>
149
- <div id="owl-blog" class="owl-carousel owl-theme wow thmkfadeInDown" data-wow-duration="2s">
150
- <?php
151
- $stickies = get_option('sticky_posts');
152
- $loop = new WP_Query(array('posts_per_page' => intval(get_theme_mod('slider_cate_count',4)),
153
- 'cat' => get_theme_mod('slider_cate'),
154
- 'order' => 'DESC',
155
- 'ignore_sticky_posts' => 1, 'post__not_in' => $stickies,
156
- ));
157
- if ($loop->have_posts()):
158
- $i = 0;
159
- while ($loop->have_posts()) :
160
- $loop->the_post();
161
- $archive_year = get_the_time('Y');
162
- $archive_month = get_the_time('m');
163
- $archive_day = get_the_time('d');
164
- ?>
165
- <!-- post one -->
166
- <div class="item">
167
- <figure class="blog-list">
168
- <?php
169
- if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
170
- <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail('shopline-custom-blog'); ?></a>
171
- <?php } ?>
172
- <figcaption>
173
- <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
174
- <?php echo shopline_get_custom_excerpt(); ?>
175
- <div class="bottom-icon">
176
- <div class="blog-date">
177
- <a href="<?php echo get_day_link($archive_year,$archive_month, $archive_day); ?>"><b><?php the_time('d'); ?></b><span><?php the_time('M Y'); ?></span></a>
178
- </div>
179
- <div class="blog-cmt">
180
- <?php echo shopline_comment_number_thnk();?>
181
- </div>
182
- </div>
183
- </figcaption>
184
- </figure>
185
- </div>
186
- <?php
187
- endwhile;
188
- wp_reset_postdata();
189
- else:
190
- echo '<p class="not_found">'.__('Sorry, The post you are looking is unavailable!','shopline').'</p>';
191
- endif;
192
- wp_reset_query();
193
- ?>
194
- </div>
195
- </div>
196
- </section>
197
- </div>
198
- <?php elseif($section=='adsecond'): ?>
199
- <?php
200
- $three_image_first = get_theme_mod('three_column_adds_first_image','');
201
- $three_url_first = get_theme_mod('three_column_adds_first_url','');
202
- $three_image_second = get_theme_mod('three_column_adds_second_image','');
203
- $three_url_second = get_theme_mod('three_column_adds_second_url','');
204
- $three_image_third = get_theme_mod('three_column_adds_third_image','');
205
- $three_url_third = get_theme_mod('three_column_adds_third_url','');
206
- ?>
207
- <?php if(shopline_show_dummy_data()): ?>
208
- <ul class="sell">
209
- <?php if($three_image_first!=''): ?>
210
- <li class="one wow thmkfadeIn" data-wow-duration="3s">
211
- <a class="fst-img" href="<?php echo $three_url_first; ?>"><img src="<?php echo $three_image_first; ?>">
212
- </a>
213
- </li>
214
- <?php else: ?>
215
- <li class="one wow thmkfadeIn" data-wow-duration="3s">
216
- <a href="#"><img src="<?php echo SHOPLINE_SMALL; ?>" >
217
- </a>
218
- </li>
219
- <?php endif; ?>
220
- <?php if($three_image_second!=''):?>
221
- <li class="two wow thmkfadeIn" data-wow-duration="3s">
222
- <a href="<?php echo $three_url_second; ?>"><img src="<?php echo $three_image_second; ?>"></a>
223
- </li>
224
- <?php else: ?>
225
- <li class="two wow thmkfadeIn" data-wow-duration="3s">
226
- <a href="#"><img src="<?php echo SHOPLINE_SMALL; ?>" ></a>
227
- </li>
228
- <?php endif; ?>
229
- <?php if($three_image_third!=''):?>
230
- <li class="three wow thmkfadeIn" data-wow-duration="3s">
231
- <a href="<?php echo $three_url_third; ?>"><img src="<?php echo $three_image_third; ?>"></a>
232
- </li>
233
- <?php else: ?>
234
- <li class="three wow thmkfadeIn" data-wow-duration="3s">
235
- <a href="#"><img src="<?php echo SHOPLINE_SMALL; ?>"></a>
236
- </li>
237
- <?php endif; ?>
238
- </ul>
239
- <?php endif;?>
240
- <?php elseif($section=='slider'):?>
241
- <?php
242
- $shopline_front_page_set = get_theme_mod('shopline_front_page_set','slide');
243
- if($shopline_front_page_set =='slide'): $i=0; ?>
244
- <div id="slider-div" class="slider">
245
- <div class="flexslider carousel">
246
- <input type="hidden" id="nor_slidespeed" value="<?php if (get_theme_mod('normal_slider_speed','') != '') { echo stripslashes(get_theme_mod('normal_slider_speed')); } else { ?>3000<?php } ?>"/>
247
- <ul class="slides">
248
- <?php if (get_theme_mod('first_slider_image','') != '') { $i++; ?>
249
-
250
- <li class="<?php echo $prlx_class;?>" style="background:url('<?php echo get_theme_mod('first_slider_image'); ?>')" data-center="<?php echo $prlx_data_center;?>"
251
- data-top-bottom="<?php echo $prlx_top_bottom;?>">
252
-
253
- <?php } else { ?>
254
- <?php if(get_theme_mod('norl_prlx_set','on') == 'on'){?>
255
- <li class="<?php echo $prlx_class;?>" style="background:url('<?php echo SHOPLINE_SLIDER; ?>')" data-center="<?php echo $prlx_data_center;?>"
256
- data-top-bottom="<?php echo $prlx_top_bottom;?>">
257
- <?php } else { ?>
258
- <li style="background:url('<?php echo SHOPLINE_SLIDER; ?>')">
259
- <?php } ?>
260
- <?php } ?>
261
-
262
- <div class="container_caption">
263
- <div class="container">
264
- <?php if (get_theme_mod('first_slider_heading','') != '') { ?>
265
- <h2 class="thmkfadeInDown"><a href="<?php
266
- if (get_theme_mod('first_slider_link','') != '') {
267
- echo get_theme_mod('first_slider_link');
268
- }
269
- ?>"><?php echo get_theme_mod('first_slider_heading'); ?></a></h2>
270
- <?php } else { ?>
271
- <h2><a href="#">Shopping theme</a></h2>
272
- <?php } ?>
273
- <?php if (get_theme_mod('first_slider_desc') != '') { ?>
274
- <p>
275
- <?php echo get_theme_mod('first_slider_desc'); ?>
276
- </p>
277
- <?php } else { ?>
278
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
279
- <?php } ?>
280
- <?php if (get_theme_mod('first_button_text','') != '') { ?>
281
- <a href="<?php if (get_theme_mod('first_button_link','') != '') {
282
- echo stripslashes(get_theme_mod('first_button_link'));
283
- } else {
284
- echo "#";
285
- }
286
- ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('first_button_text')); ?></a>
287
- <?php } else { ?>
288
- <a href="#" class="slider-button">Buy Now!</a>
289
- <?php } ?>
290
- </div>
291
- </div>
292
- </li>
293
-
294
- <?php if (get_theme_mod('second_slider_image','')) { $i++; ?>
295
-
296
- <li class="<?php echo $prlx_class;?>" style="background:url('<?php echo get_theme_mod('second_slider_image'); ?>')" data-center="<?php echo $prlx_data_center;?>" data-top-bottom="<?php echo $prlx_top_bottom;?>">
297
- <div class="container_caption">
298
- <div class="container">
299
- <h2><a href="<?php
300
- if (get_theme_mod('second_slider_link','') != '') {
301
- echo get_theme_mod('second_slider_link');
302
- }
303
- ?>"><?php echo stripslashes(get_theme_mod('second_slider_heading')); ?></a></h2>
304
- <p><?php echo stripslashes(get_theme_mod('second_slider_desc')); ?></p>
305
- <?php if (get_theme_mod('second_button_text','') != '') { ?>
306
- <a href="<?php if (get_theme_mod('second_button_link','') != '') {
307
- echo stripslashes(get_theme_mod('second_button_link'));
308
- } else { echo "#"; }
309
- ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('second_button_text')); ?></a>
310
- <?php } ?>
311
- </div>
312
- </div>
313
- </li>
314
- <?php } ?>
315
- <?php if (get_theme_mod('third_slider_image','')) { $i++; ?>
316
- <li class="<?php echo $prlx_class;?>" style="background:url('<?php echo get_theme_mod('third_slider_image'); ?>')" data-center="<?php echo $prlx_data_center;?>" data-top-bottom="<?php echo $prlx_top_bottom;?>" >
317
-
318
- <div class="container_caption">
319
- <div class="container">
320
- <h2><a href="<?php
321
- if (get_theme_mod('third_slider_link','') != '') {
322
- echo get_theme_mod('third_slider_link');
323
- }
324
- ?>"><?php echo stripslashes(get_theme_mod('third_slider_heading')); ?></a></h2>
325
- <p><?php echo stripslashes(get_theme_mod('third_slider_desc')); ?></p>
326
- <?php if (get_theme_mod('third_button_text','') != '') { ?>
327
- <a href="<?php if (get_theme_mod('third_button_link','') != '') {
328
- echo stripslashes(get_theme_mod('third_button_link'));
329
- } else { echo "#"; }
330
- ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('third_button_text')); ?></a>
331
- <?php } ?>
332
- </div>
333
- </div>
334
- </li>
335
- <?php } ?>
336
- </ul>
337
- </div></div>
338
- <?php endif;
339
- if($shopline_front_page_set=='color'):?>
340
- <div id="hero-color" class="top-hero hero-color" style="background:<?php echo get_theme_mod('front_hero_bg_color','#7D7D7D')?>">
341
- <div class="container_caption">
342
- <div class="container">
343
- <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
344
- <div class="align-wrap">
345
- <?php if(get_theme_mod('_content_front_align_set')=='txt-media-left'){?>
346
- <div class="image-align">
347
- <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
348
- </div>
349
- <?php } ?>
350
- <div class="content-align">
351
- <?php endif; ?>
352
- <?php if (get_theme_mod('front_hero_video_heading','') != '') { ?>
353
- <h2 class="thmkfadeInDown"><a href="<?php
354
- if (get_theme_mod('front_hero_video_link','') != '') {
355
- echo get_theme_mod('front_hero_video_link');
356
- }
357
- ?>"><?php echo get_theme_mod('front_hero_video_heading'); ?></a></h2>
358
- <?php } else { ?>
359
- <h2><a href="#">Shopping theme</a></h2>
360
- <?php } ?>
361
- <?php if (get_theme_mod('front_hero_video_desc') != '') { ?>
362
- <p>
363
- <?php echo get_theme_mod('front_hero_video_desc'); ?>
364
- </p>
365
- <?php } else { ?>
366
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
367
- <?php } ?>
368
- <?php if (get_theme_mod('front_hero_video_button_text','') != '') { ?>
369
- <a href="<?php if (get_theme_mod('front_hero_video_button_link','') != '') {
370
- echo stripslashes(get_theme_mod('front_hero_video_button_link'));
371
- } else {
372
- echo "#";
373
- }
374
- ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('front_hero_video_button_text')); ?></a>
375
- <?php } else { ?>
376
- <a href="#" class="slider-button">Buy Now!</a>
377
- <?php } ?>
378
- <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
379
- </div>
380
- <?php if(get_theme_mod('_content_front_align_set')=='txt-media-right'){?>
381
- <div class="image-align">
382
- <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
383
- </div>
384
- <?php } ?>
385
- </div>
386
- <?php endif; ?>
387
- </div>
388
- </div>
389
- <?php endif;?>
390
- <!-- hero-image -->
391
- <?php if($shopline_front_page_set=='image'):?>
392
- <div class="<?php echo $prlx_class;?>" data-center="<?php echo $prlx_data_center;?>"
393
- data-top-bottom="<?php echo $prlx_top_bottom;?>" id="hero-image" class="top-hero hero-image" style="background-image: url(<?php echo get_theme_mod('front_hero_img');?>);">
394
- <div class="container_caption">
395
- <div class="container">
396
- <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
397
- <div class="align-wrap">
398
- <?php if(get_theme_mod('_content_front_align_set')=='txt-media-left'){?>
399
- <div class="image-align">
400
- <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
401
- </div>
402
- <?php } ?>
403
- <div class="content-align">
404
- <?php endif; ?>
405
- <?php if (get_theme_mod('front_hero_video_heading','') != '') { ?>
406
- <h2 class="thmkfadeInDown"><a href="<?php
407
- if (get_theme_mod('front_hero_video_link','') != '') {
408
- echo get_theme_mod('front_hero_video_link');
409
- }
410
- ?>"><?php echo get_theme_mod('front_hero_video_heading'); ?></a></h2>
411
- <?php } else { ?>
412
- <h2><a href="#">Shopping theme</a></h2>
413
- <?php } ?>
414
- <?php if (get_theme_mod('front_hero_video_desc') != '') { ?>
415
- <p>
416
- <?php echo get_theme_mod('front_hero_video_desc'); ?>
417
- </p>
418
- <?php } else { ?>
419
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
420
- <?php } ?>
421
- <?php if (get_theme_mod('front_hero_video_button_text','') != '') { ?>
422
- <a href="<?php if (get_theme_mod('front_hero_video_button_link','') != '') {
423
- echo stripslashes(get_theme_mod('front_hero_video_button_link'));
424
- } else {
425
- echo "#";
426
- }
427
- ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('front_hero_video_button_text')); ?></a>
428
- <?php } else { ?>
429
- <a href="#" class="slider-button">Buy Now!</a>
430
- <?php } ?>
431
- <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
432
- </div>
433
- <?php if(get_theme_mod('_content_front_align_set')=='txt-media-right'){?>
434
- <div class="image-align">
435
- <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
436
- </div>
437
- <?php } ?>
438
- </div>
439
- <?php endif; ?>
440
- </div>
441
- </div>
442
- </div>
443
- <?php endif;?>
444
- <!-- hero-image -->
445
- <?php if($shopline_front_page_set=='video'):?>
446
- <div id="hero-video" class="hero-video">
447
- <?php $video_poster = get_theme_mod( 'front_hero_video_poster','');
448
- $video_muted = get_theme_mod( 'front_hero_video_muted');
449
- if($video_muted =='1'){
450
- $mutedvd = "muted";
451
- } else{
452
- $mutedvd = "";
453
- } ?>
454
- <?php if(shopline_mobile_user_agent_switch()==false): ?>
455
- <video id="video" <?php echo $mutedvd; ?> autoplay="autoplay" loop="loop" poster="<?php echo $video_poster; ?>" id="hdvid" >
456
- <source src="<?php echo get_theme_mod('front_hero_video'); ?>" type="video/mp4">
457
- </video>
458
- <?php endif; ?>
459
- <?php if(shopline_mobile_user_agent_switch()):?>
460
- <video id="video" <?php echo $mutedvd; ?> autoplay="autoplay" loop="loop" poster="<?php echo $video_poster; ?>" id="bgvid">
461
- <source src="#" type="video/mp4">
462
- </video>
463
- <?php endif; ?>
464
- <div class="container_caption">
465
- <div class="container">
466
- <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
467
- <div class="align-wrap">
468
- <?php if(get_theme_mod('_content_front_align_set')=='txt-media-left'){?>
469
- <div class="image-align">
470
- <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
471
- </div>
472
- <?php } ?>
473
- <div class="content-align">
474
- <?php endif; ?>
475
- <?php if (get_theme_mod('front_hero_video_heading','') != '') { ?>
476
- <h2 class="thmkfadeInDown"><a href="<?php
477
- if (get_theme_mod('front_hero_video_link','') != '') {
478
- echo get_theme_mod('front_hero_video_link');
479
- }
480
- ?>"><?php echo get_theme_mod('front_hero_video_heading'); ?></a></h2>
481
- <?php } else { ?>
482
- <h2><a href="#">Shopping theme</a></h2>
483
- <?php } ?>
484
- <?php if (get_theme_mod('front_hero_video_desc') != '') { ?>
485
- <p>
486
- <?php echo get_theme_mod('front_hero_video_desc'); ?>
487
- </p>
488
- <?php } else { ?>
489
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
490
- <?php } ?>
491
- <?php if (get_theme_mod('front_hero_video_button_text','') != '') { ?>
492
- <a href="<?php if (get_theme_mod('front_hero_video_button_link','') != '') {
493
- echo stripslashes(get_theme_mod('front_hero_video_button_link'));
494
- } else {
495
- echo "#";
496
- }
497
- ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('front_hero_video_button_text')); ?></a>
498
- <?php } else { ?>
499
- <a href="#" class="slider-button">Buy Now!</a>
500
- <?php } ?>
501
- <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
502
- </div>
503
- <?php if(get_theme_mod('_content_front_align_set')=='txt-media-right'){?>
504
- <div class="image-align">
505
- <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
506
- </div>
507
- <?php } ?>
508
- </div>
509
- <?php endif; ?>
510
- </div>
511
- </div>
512
- </div>
513
- <?php endif;
514
- if($shopline_front_page_set=='gradient'):?>
515
- <div id="hero-gradient" class="top-hero hero-gradient">
516
- <div class="container_caption">
517
- <div class="container">
518
- <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
519
- <div class="align-wrap">
520
- <?php if(get_theme_mod('_content_front_align_set')=='txt-media-left'){?>
521
- <div class="image-align">
522
- <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
523
- </div>
524
- <?php } ?>
525
- <div class="content-align">
526
- <?php endif; ?>
527
- <?php if (get_theme_mod('front_hero_video_heading','') != '') { ?>
528
- <h2 class="thmkfadeInDown"><a href="<?php
529
- if (get_theme_mod('front_hero_video_link','') != '') {
530
- echo get_theme_mod('front_hero_video_link');
531
- }
532
- ?>"><?php echo get_theme_mod('front_hero_video_heading'); ?></a></h2>
533
- <?php } else { ?>
534
- <h2><a href="#">Shopping theme</a></h2>
535
- <?php } ?>
536
- <?php if (get_theme_mod('front_hero_video_desc') != '') { ?>
537
- <p>
538
- <?php echo get_theme_mod('front_hero_video_desc'); ?>
539
- </p>
540
- <?php } else { ?>
541
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
542
- <?php } ?>
543
- <?php if (get_theme_mod('front_hero_video_button_text','') != '') { ?>
544
- <a href="<?php if (get_theme_mod('front_hero_video_button_link','') != '') {
545
- echo stripslashes(get_theme_mod('front_hero_video_button_link'));
546
- } else {
547
- echo "#";
548
- }
549
- ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('front_hero_video_button_text')); ?></a>
550
- <?php } else { ?>
551
- <a href="#" class="slider-button">Buy Now!</a>
552
- <?php } ?>
553
- <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
554
- </div>
555
- <?php if(get_theme_mod('_content_front_align_set')=='txt-media-right'){?>
556
- <div class="image-align">
557
- <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
558
- </div>
559
- <?php } ?>
560
- </div>
561
- <?php endif; ?>
562
- </div>
563
- </div>
564
- </div>
565
- <?php endif;
566
- if($shopline_front_page_set=='external'):?>
567
- <div id="hero-slide-plugin" class="top-hero hero-slide-plugin">
568
- <?php $front_extrnl_shrcd = get_theme_mod('front_extrnl_shrcd');
569
- echo do_shortcode($front_extrnl_shrcd); ?>
570
- </div>
571
- <?php endif;?>
572
- <?php elseif($section=='ribbon'):?>
573
- <?php
574
- $heading = get_theme_mod('ribbon_heading','');
575
- $subheading = get_theme_mod('ribbon_subheading','');
576
- $video_option = get_theme_mod('ribbon_bg_options','');
577
- $ribbon_video_bg_image = get_theme_mod( 'ribbon_video_bg_image','');
578
- if (get_theme_mod('video_muted')=='1'){
579
- $muted = "muted";
580
- } else{
581
- $muted = "";
582
- }
583
- ?>
584
- <div class="ribbon-wrpapper">
585
- <?php
586
- $svg_class = '';
587
- $svgbg = shopline_svg_enable('ribbon_bg_options','ribbon_svg_style','ribbn_img_overly_color');
588
- if($svgbg!=''){
589
- echo $svgbg;
590
- $svg_class = 'svg_enable';
591
- }
592
- ?>
593
- <section id="ribbon_section" class="vedio-ribbon <?php echo $prlx_class;?> <?php echo $svg_class;?>"
594
- data-center="<?php echo $prlx_data_center;?>"
595
- data-top-bottom="<?php echo $prlx_top_bottom;?>">
596
- <?php if($video_option =='video'):?>
597
- <?php if(shopline_mobile_user_agent_switch()==false): ?>
598
- <video id="video" autoplay="autoplay" loop="loop" poster="<?php echo $ribbon_video_bg_image; ?>" <?php echo $muted; ?> id="bgvid" >
599
- <source src="<?php echo get_theme_mod('ribbon_bg_video'); ?>" type="video/mp4">
600
- </video>
601
- <?php endif; ?>
602
- <?php if(shopline_mobile_user_agent_switch()):?>
603
- <video id="video" autoplay="autoplay" loop="loop" poster="<?php echo $ribbon_video_bg_image; ?>" <?php echo $muted; ?> id="bgvid">
604
- <source src="#" type="video/mp4">
605
- </video>
606
- <?php endif;?>
607
- <?php endif; ?>
608
- <div class="title-wrap wow thmkfadeIn" data-wow-duration="3s">
609
- <div class="video-title">
610
- <?php if($heading!=''){ ?>
611
- <h2 class="ribbon-heading"><?php echo $heading; ?></h2>
612
- <?php } else { ?>
613
- <?php if(shopline_show_dummy_data()): ?>
614
- <h2 class="ribbon-heading"><?php _e('Video Background Show Your Website Visually','oneline'); ?></h2>
615
- <?php endif; ?>
616
- <?php } ?>
617
- <div class="heading-border"></div>
618
- <?php if($subheading!=''){ ?>
619
- <p class="ribbon-sub-heading"><?php echo $subheading; ?></p>
620
- <?php } else { ?>
621
- <?php if(shopline_show_dummy_data()): ?>
622
- <p class="ribbon-sub-heading"><?php _e('fitness quality backpacks, bags, travel goods and accessoriesus ut venenatis. Maecenas mattis mattisIn','oneline'); ?> </p>
623
- <?php endif; ?>
624
- <?php } ?>
625
- </div>
626
- </div>
627
- </section>
628
- </div>
629
- <div class="clearfix"></div>
630
- <?php elseif($section=='testimonial'): ?>
631
- <?php
632
- $testm_slidr_spd = get_theme_mod('testm_slider_speed','');
633
- $heading = get_theme_mod('our_testm_heading','');
634
- $subheading = get_theme_mod('our_testm_subheading','');
635
- $testimonial_parallax = get_theme_mod('testimonial_parallax','on');
636
- if(get_theme_mod('testm_play','')=='on'){
637
- $testmply='true';
638
- }else{
639
- $testmply='false';
640
- };
641
- ?>
642
- <div class="testimonial_wrapper">
643
- <input type="hidden" id="testm_ply" value="<?php echo $testmply; ?>"/>
644
- <input type="hidden" id="testm_slidr_spd" value="<?php echo $testm_slidr_spd; ?>"/>
645
- <?php
646
- $svg_class = '';
647
- $svgbg = shopline_svg_enable('testimonial_options','testim_svg_style','tst_img_overly_color');
648
- if($svgbg!=''){
649
- echo $svgbg;
650
- $svg_class = 'svg_enable';
651
- }
652
- ?>
653
- <!-- start testimonial -->
654
- <section id="testimonial_section" class="testimonial <?php echo $prlx_class;?> <?php echo $svg_class;?>"
655
- data-center="<?php echo $prlx_data_center;?>"
656
- data-top-bottom="<?php echo $prlx_top_bottom;?>">
657
- <div class="container">
658
- <div class="block-heading wow thmkfadeIn" data-wow-duration="3s">
659
- <?php if($heading!=''){ ?>
660
- <h2 class="testimonial-heading"><?php echo $heading; ?></h2>
661
- <?php } else { ?>
662
- <?php if(shopline_show_dummy_data()): ?>
663
- <h2 class="testimonial-heading"><?php _e('Watch Client Say?','oneline'); ?></h2>
664
- <?php endif; ?>
665
- <?php } ?>
666
- <div class="heading-border"></div>
667
- <?php if($subheading!=''){ ?>
668
- <p class="testimonial-woocatesub-heading"><?php echo $subheading; ?></p>
669
- <?php } else { ?>
670
- <?php if(shopline_show_dummy_data()): ?>
671
- <p class="testimonial-sub-heading" ><?php _e('fitness quality backpacks, bags, travel goods and accessories','oneline'); ?> </p>
672
- <?php endif; ?>
673
- <?php } ?>
674
- </div>
675
- <div class="testimonial-block wow thmkfadeInDown" data-wow-duration="2s">
676
- <div class="testimonial-wrap owl-carousel">
677
- <?php
678
- if ( is_active_sidebar( 'testimonial-widget' ) ):
679
- dynamic_sidebar( 'testimonial-widget' );
680
- else:
681
- ?>
682
- <?php if(shopline_show_dummy_data()): ?>
683
- <div class="testimonial-content item">
684
- <div class="figure-testimonial">
685
- <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
686
- <a class="web-link" href="#">www.themehunk.com</a>
687
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
688
- <h4>one Lery Page.</h4>
689
-
690
- </div>
691
- </div>
692
- <div class="testimonial-content item">
693
- <div class="figure-testimonial">
694
- <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
695
- <a class="web-link" href="#">www.themehunk.com</a>
696
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
697
- <h4>one Lery Page.</h4>
698
- </div>
699
- </div>
700
- <div class="testimonial-content item">
701
- <div class="figure-testimonial">
702
- <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
703
- <a class="web-link" href="#">www.themehunk.com</a>
704
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
705
- <h4>one Lery Page.</h4>
706
- </div>
707
- </div>
708
- <div class="testimonial-content item">
709
- <div class="figure-testimonial">
710
- <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
711
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
712
- <h4>one Lery Page.</h4>
713
- </div>
714
- </div>
715
- <div class="testimonial-content item">
716
- <div class="figure-testimonial">
717
- <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
718
- <a class="web-link" href="#">www.themehunk.com</a>
719
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
720
- <h4>one Lery Page.</h4>
721
- </div>
722
- </div>
723
- <?php endif; ?>
724
- <?php endif; ?>
725
- </div>
726
- </div>
727
- </div>
728
- </section>
729
- </div>
730
- <div class="clearfix"></div>
731
- <!-- service section -->
732
- <?php elseif($section=='service'):
733
- ?>
734
- <section id="services">
735
- <div class="container">
736
- <div class="block-services">
737
- <ul class="services-list owl-carousel">
738
- <?php
739
- if ( is_active_sidebar( 'shopservice-widget' ) ):
740
- dynamic_sidebar( 'shopservice-widget' );
741
- endif;
742
- ?>
743
- </ul>
744
- </div>
745
- </div>
746
- </section>
747
-
748
- <div class="clearfix"></div>
749
- <?php elseif($section=='woocate'): ?>
750
- <!-- cat-home start -->
751
- <?php
752
- $cat_slidr_spd = get_theme_mod('woo_cate_slider_speed','');
753
- $heading = get_theme_mod('woo_cate_slider_heading','');
754
- $subheading = get_theme_mod('woo_cate_slider_subheading','');
755
- $cat_prallax = get_theme_mod('woo_cate_parallax','on');
756
- if(get_theme_mod('cat_play','')=='on'){
757
- $catply='true';
758
- }else{
759
- $catply='false';
760
- };
761
- ?>
762
- <div class="woo_cat_wrapper">
763
- <input type="hidden" id="cat_ply" value="<?php echo $catply; ?>"/>
764
- <input type="hidden" id="cat_slidr_spd" value="<?php echo $cat_slidr_spd; ?>"/>
765
- <?php
766
- $svg_class = '';
767
- $svgbg = shopline_svg_enable('woo_cate_image_bg','woo_cat_svg_style','woo_cate_slider_overly');
768
- if($svgbg!=''){
769
- echo $svgbg;
770
- $svg_class = 'svg_enable';
771
- }
772
- ?>
773
- <section id="category_section" class="home-imagecat <?php echo $prlx_class;?> <?php echo $svg_class;?>"
774
- data-center="<?php echo $prlx_data_center;?>"
775
- data-top-bottom="<?php echo $prlx_top_bottom;?>">
776
- <div class="container">
777
- <div class="imagecat-block">
778
- <div class="block-heading wow thmkfadeIn" data-wow-duration="3s">
779
- <?php if($heading!=''){ ?>
780
- <h2 class="woocate-heading"><?php echo $heading; ?></h2>
781
- <?php } else { ?>
782
- <?php if(shopline_show_dummy_data()): ?>
783
- <h2 class="woocate-heading"><?php _e('enjoy your shopping'); ?></h2>
784
- <?php endif; ?>
785
- <?php } ?>
786
-
787
- <div class="heading-border"></div>
788
- <?php if($subheading!=''){ ?>
789
- <p class="woocate-sub-heading"><?php echo $subheading; ?></p>
790
- <?php } else { ?>
791
- <?php if(shopline_show_dummy_data()): ?>
792
- <p class="woocate-sub-heading"><?php _e('fitness quality backpacks, bags, travel goods and accessoriesus ut venenatis. Maecenas mattis mattisIn','shopline'); ?> </p>
793
- <?php endif; ?>
794
- <?php } ?>
795
- </div>
796
- <!-- grid-slider-layout -->
797
- <div class="cat-grid owl-carousel wow thmkfadeInDown" data-wow-duration="2s">
798
- <?php do_action('shopline_cate_image'); ?>
799
- </div>
800
- </div>
801
- </div>
802
- </section>
803
- </div>
804
- <div class="clearfix"></div>
805
- <?php elseif($section=='wooproduct'): ?>
806
- <!-- start featured product -->
807
- <div class="woo_product_wrapper">
808
- <?php
809
- $svg_class = '';
810
- $svgbg = shopline_svg_enable('woo_cate_product_options','woo_prd_svg_style','woo_cate_product_overly');
811
- if($svgbg!=''){
812
- echo $svgbg;
813
- $svg_class = 'svg_enable';
814
- }
815
- ?>
816
- <section id="featured_product_section" class="featured-prd <?php echo $prlx_class;?> <?php echo $svg_class;?>" data-center="<?php echo $prlx_data_center;?>"
817
- data-top-bottom="<?php echo $prlx_top_bottom;?>">
818
- <div class="container" data-aos="fade-up">
819
- <?php do_action( 'shopline_product' ); ?>
820
- </div>
821
- </section>
822
- </div>
823
- <div class="clearfix"></div>
824
- <?php elseif($section=='cart_menu'): ?>
825
- <ul class="hdr-icon-list">
826
- <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
827
- if(is_plugin_active('yith-woocommerce-wishlist/init.php')){?>
828
- <li class="top-list wishlist">
829
- <a class="tooltip" href="<?php echo esc_url( shopline_whishlist_url() ); ?>"><i class="fa fa-heart icon-space" aria-hidden="true"></i>
830
- <span class="tooltiptext"><?php _e('Wishlist','shopline'); ?></span></a>
831
- </li>
832
- <?php } ?>
833
- <li class="top-list accnt"><?php do_action('shopline_myaccount'); ?></li>
834
- <li class="top-list cart">
835
- <div class="cart-widget tooltip">
836
- <span class="tooltiptext"><?php _e('Cart','shopline'); ?></span>
837
- <div onmouseover="openNav()" onmouseout="closeNav()">
838
- <?php do_action( 'shopline_header' ); ?>
839
- </div>
840
- <!-- side menu -->
841
- <!-- onmouseover="openNav()" -->
842
- <div onmouseover="openNav()" onmouseout="closeNav()" id="mySidenav" class="sidenav">
843
- <div id="accordion" class="woocommerce">
844
- <?php do_action( 'shopline_cart' ); ?>
845
- </div>
846
- </div>
847
- </div>
848
- </li>
849
- <li class="top-list search-icon"><i id="search-btn" class="fa fa-search"></i></li>
850
- <!-- serach box overlay -->
851
- <div id="search-overlay" class="block">
852
- <div class="centered">
853
- <i id="close-btn" class="fa fa-times fa-2x"></i>
854
- <div id='search-box' class="wow thmkfadeInDown" data-wow-duration="1s">
855
- <form action='<?php echo esc_url( home_url( '/' ) ); ?>' id='search-form' class="woocommerce-product-search" method='get' target='_top'>
856
- <?php
857
- if ( class_exists( 'WooCommerce' ) ):
858
- $args = array(
859
- 'taxonomy' => 'product_cat',
860
- 'name' => 'product_cat',
861
- 'value_field' => 'slug',
862
- 'class' => 'something'
863
- );
864
- wp_dropdown_categories( $args );
865
- endif;
866
- ?>
867
- <input id='search-text' name='s' placeholder='<?php echo get_theme_mod('search_box_text',esc_attr_x( 'Search&hellip;', 'placeholder', 'woocommerce' )); ?>' value='<?php echo get_search_query(); ?>' type='text' title='<?php echo esc_attr_x( 'Search for:', 'label', 'woocommerce' ); ?>' />
868
- <button id='search-button' value="<?php echo esc_attr_x( '', 'submit button', 'woocommerce' ); ?>" type='submit'>
869
- <i id="search-btn1" class="fa fa-search"></i>
870
- </button>
871
- <input type="hidden" name="post_type" value="product" />
872
-
873
- </form>
874
- </div>
875
- </div>
876
- </div>
877
- <!-- serach box overlay -->
878
- </ul>
879
- <?php elseif($section=='slideproduct'): ?>
880
- <?php
881
- $_woo_slide_heading = get_theme_mod('_woo_slide_heading','');
882
- $_woo_slide_subheading = get_theme_mod('_woo_slide_subheading','');
883
- $product_slider_speed = get_theme_mod('product_slider_speed',3000);
884
- if(get_theme_mod('slide_product_play','')=='on'){
885
- $ply='true';
886
- }else{
887
- $ply='false';
888
- };
889
- ?>
890
- <div class="woo_slide_product_wrapper">
891
- <?php
892
- $svg_class = '';
893
- $svgbg = shopline_svg_enable('product_slider_options','woo_slide_svg_style','product_slider_img_overly_color');
894
- if($svgbg!=''){
895
- echo $svgbg;
896
- $svg_class = 'svg_enable';
897
- }
898
- ?>
899
- <input type="hidden" id="_ply" value="<?php echo $ply; ?>"/>
900
- <input type="hidden" id="_slidr_spd" value="<?php echo $product_slider_speed; ?>"/>
901
- <section id="featured_product_section1" class="<?php echo esc_html($prlx_class);?> <?php echo esc_html($svg_class);?>"
902
- data-center="<?php echo $prlx_data_center;?>"
903
- data-top-bottom="<?php echo $prlx_top_bottom;?>">
904
- <div class="container">
905
- <div class="block-heading wow thmkfadeIn">
906
- <?php if($_woo_slide_heading!==''){ ?>
907
- <h2 class="slide-woocate-heading"><?php echo $_woo_slide_heading ;?></h2>
908
- <?php } else { ?>
909
- <?php if(shopline_show_dummy_data()): ?>
910
- <h2 class="slide-woocate-heading"><?php _e('enjoy your shopping'); ?></h2>
911
-
912
- <?php endif;} ?>
913
- <div class="heading-border"></div>
914
- <?php if($_woo_slide_subheading!=''){ ?>
915
- <p class="slide-woocate-sub-heading"><?php echo $_woo_slide_subheading; ?></p>
916
- <?php } else { ?>
917
- <?php if(shopline_show_dummy_data()): ?>
918
- <p class="slide-woocate-sub-heading"><?php _e('fitness quality backpacks, bags, travel goods and accessoriesus ut venenatis. Maecenas mattis mattisIn','shopline'); ?> </p>
919
- <?php endif; ?>
920
- <?php } ?>
921
- </div>
922
- <div class="product-block featured-grid wow thmkfadeInDown" data-wow-duration="2s">
923
- <div class="product-one owl-carousel">
924
- <?php do_action( 'shopline_product_slide' ); ?>
925
- </div>
926
- </div>
927
- </div>
928
- </section>
929
- </div>
930
- <?php elseif($section=='woocommerce'): ?>
931
- <?php if( shortcode_exists( 'recent_products' ) ): ?>
932
- <?php $woo_product = get_theme_mod('woo_shortcode','[recent_products]'); ?>
933
- <div class="container">
934
- <?php if(get_theme_mod( 'woo_head_')!=''){?>
935
- <h2 class="head-text wow thmkfadeIn" data-wow-duration="1s"><?php echo get_theme_mod( 'woo_head_'); ?></h2>
936
- <?php } else { ?>
937
- <h2 class="head-text wow thmkfadeIn" data-wow-duration="1s"> <?php _e('Woocommerce ','featuredlite'); ?></h2>
938
- <?php } ?>
939
- <?php if(get_theme_mod( 'woo_desc_')!=''){?>
940
- <h3 class="subhead-text wow thmkfadeIn" data-wow-duration="1s"><?php echo get_theme_mod( 'woo_desc_'); ?></h3>
941
- <?php } else { ?>
942
- <h3 class="subhead-text wow thmkfadeIn" data-wow-duration="1s"><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry','featuredlite'); ?></h3>
943
- <?php } ?>
944
- <div class="wow thmkfadeIn" data-wow-duration="1s">
945
- <?php echo do_shortcode($woo_product); ?>
946
- </div>
947
- </div>
948
- <?php endif; ?>
949
- <?php endif;
950
- }
951
-
952
- function themehunk_customizer_shortcode($atts) {
953
- $output = '';
954
- $pull_quote_atts = shortcode_atts(array(
955
- 'section' => 1
956
- ), $atts);
957
- $did = wp_kses_post($pull_quote_atts['section']);
958
-
959
- $output = themehunk_customizer_add_shotcode($did);
960
- return $output;
961
- }
962
- add_shortcode('themehunk-customizer', 'themehunk_customizer_shortcode');
963
-
964
- //social icon shortocdes
965
- function themehunk_customizer_social(){
966
- $social ='<ul>
967
- <span style="font-style:italic;font-size:12px;">Share</span>
968
- <li><a target="_blank" href="https://twitter.com/home?status='.get_the_title().'-'.get_permalink().'"><i class="fa fa-twitter"></i></a></li>
969
- <li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.get_permalink().'"><i class="fa fa-facebook"></i></a></li>
970
- <li><a target="_blank" href="https://plus.google.com/share?url='.get_permalink().'"><i class="fa fa-google-plus"></i></a></li>
971
- <li><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url='.get_permalink().'&title='.get_the_title().'&source=LinkedIn"><i class="fa fa-linkedin"></i></a></li>
972
- </ul>';
973
- return $social;
974
- }
975
-
976
- function themehunk_customizer_social_shortcode($atts) {
977
- $output = '';
978
- $pull_quote_atts = shortcode_atts(array(
979
- 'did' => 1
980
- ), $atts);
981
- $did = wp_kses_post($pull_quote_atts['did']);
982
-
983
- $output = themehunk_customizer_social($did);
984
- return $output;
985
- }
986
- add_shortcode('themehunk-customizer-social', 'themehunk_customizer_social_shortcode');
987
-
988
-
989
- // woocommerce plugin
990
- function themehunk_customizer_woo($did=''){
991
- $woo_product = get_theme_mod('woo_shortcode','[recent_products]');
992
-
993
- echo do_shortcode( $woo_product );
994
-
995
- }
996
-
997
- function themehunk_customizer_shopline_woo($atts) {
998
- $output = '';
999
- $pull_quote_atts = shortcode_atts(array(
1000
- 'did' => 1
1001
- ), $atts);
1002
- $did = wp_kses_post($pull_quote_atts['did']);
1003
-
1004
- $output = themehunk_customizer_woo($did);
1005
- return $output;
1006
- }
1007
- add_shortcode('themehunk-customizer-woo', 'themehunk_customizer_shopline_woo');
1008
-
1009
-
1010
- ?>
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+ function themehunk_customizer_add_shotcode($section=''){
4
+ $return =''; ?>
5
+ <?php $prlx = get_theme_mod('parallax_opt','on');
6
+ $prlx_class = '';
7
+ $prlx_data_center = '';
8
+ $prlx_top_bottom ='';
9
+ if($prlx=='on'){
10
+ $prlx_class = 'parallax';
11
+ $prlx_data_center = 'background-position: 50% 0px';
12
+ $prlx_top_bottom = 'background-position: 50% -100px;';
13
+ }else{
14
+ $prlx_class = '';
15
+ $prlx_data_center = '';
16
+ $prlx_top_bottom ='';
17
+ } ?>
18
+ <?php if($section=='aboutus'):
19
+ $heading = get_theme_mod('aboutus_heading','');
20
+ $subheading = get_theme_mod('aboutus_subheading','');
21
+ $shortdesc = get_theme_mod('aboutus_shortdesc','');
22
+ $longdesc = get_theme_mod('aboutus_longdesc','');
23
+ $aboutusimg = get_theme_mod('aboutus_image','');
24
+ $buttontext = get_theme_mod('aboutus_btn_text','');
25
+ $buttonlink = get_theme_mod('aboutus_btn_link','');
26
+ $aboutus_parallax = get_theme_mod('aboutus_parallax','on');
27
+ $buttontext = ($buttontext!='')?$buttontext:"Get Link Page";
28
+ ?>
29
+ <!-- Start amazing story -->
30
+ <div class="about-wrapper">
31
+ <?php
32
+ $svg_class = '';
33
+ $svgbg = shopline_svg_enable('aboutus_options','about_svg_style','aboutus_overly');
34
+ if($svgbg!=''){
35
+ echo $svgbg;
36
+ $svg_class = 'svg_enable';
37
+ }
38
+ ?>
39
+ <?php if($aboutus_parallax =='on'){?>
40
+ <section id="aboutus_section" class="amazing-story parallax <?php echo $svg_class;?>"
41
+ data-center="background-position: 50% 0px;"
42
+ data-top-bottom="background-position: 50% -100px;">
43
+ <?php } else { ?>
44
+ <section id="aboutus_section" class="amazing-story <?php echo $svg_class;?>">
45
+ <?php } ?>
46
+ <div class="container">
47
+ <div class="amazing-block">
48
+ <ul class="amazing-list">
49
+ <li class="one wow thmkfadeIn" data-wow-duration="3s">
50
+ <?php if($aboutusimg!=''){ ?>
51
+ <img src="<?php echo $aboutusimg; ?>"/>
52
+ <?php } else { ?>
53
+ <?php if(shopline_show_dummy_data()): ?>
54
+ <img src="<?php echo SHOPLINE_LARGE; ?>"/>
55
+ <?php endif; ?>
56
+ <?php } ?>
57
+ </li>
58
+ <li class="two wow thmkfadeIn" data-wow-duration="3s">
59
+ <div class="flex-abt">
60
+ <?php if($heading!=''){ ?>
61
+ <h2 class="aboutus-heading"><?php echo $heading; ?></h2>
62
+ <?php } else { ?>
63
+ <?php if(shopline_show_dummy_data()): ?>
64
+ <h2 class="aboutus-heading"><?php _e('Nulla sollicitudin euismod felis','oneline'); ?></h2>
65
+ <?php endif; ?>
66
+ <?php } ?>
67
+ <?php if($shortdesc!=''){ ?>
68
+ <h3><?php echo $shortdesc; ?></h3>
69
+ <?php } else { ?>
70
+ <?php if(shopline_show_dummy_data()): ?>
71
+ <h3>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis!</h3>
72
+ <?php endif; ?>
73
+ <?php } ?>
74
+ <?php if($longdesc!=''){ ?>
75
+ <p><?php echo $longdesc; ?></p>
76
+ <?php } else { ?>
77
+ <?php if(shopline_show_dummy_data()): ?>
78
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum. Donec lacinia, nunc sit amet luctus aliquet, ante augue dapibus metus, nec dictum sapien velit vitae neque.</p>
79
+ <?php endif; ?>
80
+ <?php } ?>
81
+ <?php if($buttonlink !='' || $buttontext !=''): ?>
82
+ <a class="amazing-btn" href="<?php echo $buttonlink; ?>"><?php echo $buttontext ; ?></a>
83
+ <?php else: ?>
84
+ <?php if(shopline_show_dummy_data()): ?>
85
+ <a class="amazing-btn" href="''">Get Link Page</a>
86
+ <?php endif; ?>
87
+ <?php endif; ?>
88
+ </li>
89
+ </div>
90
+ </ul>
91
+
92
+ </div>
93
+ </div>
94
+ </section>
95
+ <div class="clearfix"></div>
96
+ <?php
97
+ elseif($section=='blog'):
98
+ $blog_slidr_spd = get_theme_mod('blog_slider_speed','');
99
+ $heading = esc_html(get_theme_mod('blog_heading',''));
100
+ $subheading = esc_html(get_theme_mod('blog_subheading',''));
101
+ if(get_theme_mod('blog_play','')=='on'){
102
+ $blogply='true';
103
+ }else{
104
+ $blogply='false';
105
+ };
106
+ $oneline_plx = get_theme_mod('parallax_opt');
107
+ if($oneline_plx =='' || $oneline_plx =='0'){
108
+ $prlx_class = 'parallax';
109
+ $prlx_data_center = 'background-position: 50% 0px';
110
+ $prlx_top_bottom = 'background-position: 50% -100px;';
111
+ }else{
112
+ $prlx_class = '';
113
+ $prlx_data_center = '';
114
+ $prlx_top_bottom ='';
115
+ }
116
+ ?>
117
+ <div class="blog-wrapper">
118
+ <input type="hidden" id="blog_slidr_spd" value="<?php echo $blog_slidr_spd; ?>">
119
+ <input type="hidden" id="blog_ply" value="<?php echo esc_html($blogply); ?>">
120
+ <?php
121
+ $svg_class = '';
122
+ $svgbg = shopline_svg_enable('blog_options','blog_svg_style','blog_overly');
123
+ if($svgbg!=''){
124
+ echo $svgbg;
125
+ $svg_class = 'svg_enable';
126
+ }
127
+ ?>
128
+ <section id="post_section" class="lst-post <?php echo esc_html($prlx_class);?> <?php echo esc_html($svg_class);?>"
129
+ data-center="<?php echo $prlx_data_center;?>"
130
+ data-top-bottom="<?php echo $prlx_top_bottom;?>">
131
+ <div class="container">
132
+ <div class="block-heading wow thmkfadeIn" data-wow-duration="3s">
133
+ <?php if($heading!=''){ ?>
134
+ <h2 class="blog-heading"><?php echo $heading; ?></h2>
135
+ <?php } else { ?>
136
+ <?php if(shopline_show_dummy_data()): ?>
137
+ <h2 class="blog-heading"><?php _e('THE BLOG','shopline'); ?></h2>
138
+ <?php endif; ?>
139
+ <?php } ?>
140
+ <div class="heading-border"></div>
141
+ <?php if($subheading!=''){ ?>
142
+ <p class="blog-sub-heading"><?php echo $subheading; ?></p>
143
+ <?php } else { ?>
144
+ <?php if(shopline_show_dummy_data()): ?>
145
+ <p class="blog-sub-heading"><?php _e('fitness quality backpacks, bags, travel goods and accessories','shopline'); ?> </p>
146
+ <?php endif; ?>
147
+ <?php } ?>
148
+ </div>
149
+ <div id="owl-blog" class="owl-carousel owl-theme wow thmkfadeInDown" data-wow-duration="2s">
150
+ <?php
151
+ $stickies = get_option('sticky_posts');
152
+ $loop = new WP_Query(array('posts_per_page' => intval(get_theme_mod('slider_cate_count',4)),
153
+ 'cat' => get_theme_mod('slider_cate'),
154
+ 'order' => 'DESC',
155
+ 'ignore_sticky_posts' => 1, 'post__not_in' => $stickies,
156
+ ));
157
+ if ($loop->have_posts()):
158
+ $i = 0;
159
+ while ($loop->have_posts()) :
160
+ $loop->the_post();
161
+ $archive_year = get_the_time('Y');
162
+ $archive_month = get_the_time('m');
163
+ $archive_day = get_the_time('d');
164
+ ?>
165
+ <!-- post one -->
166
+ <div class="item">
167
+ <figure class="blog-list">
168
+ <?php
169
+ if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
170
+ <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail('shopline-custom-blog'); ?></a>
171
+ <?php } ?>
172
+ <figcaption>
173
+ <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
174
+ <?php echo shopline_get_custom_excerpt(); ?>
175
+ <div class="bottom-icon">
176
+ <div class="blog-date">
177
+ <a href="<?php echo get_day_link($archive_year,$archive_month, $archive_day); ?>"><b><?php the_time('d'); ?></b><span><?php the_time('M Y'); ?></span></a>
178
+ </div>
179
+ <div class="blog-cmt">
180
+ <?php echo shopline_comment_number_thnk();?>
181
+ </div>
182
+ </div>
183
+ </figcaption>
184
+ </figure>
185
+ </div>
186
+ <?php
187
+ endwhile;
188
+ wp_reset_postdata();
189
+ else:
190
+ echo '<p class="not_found">'.__('Sorry, The post you are looking is unavailable!','shopline').'</p>';
191
+ endif;
192
+ wp_reset_query();
193
+ ?>
194
+ </div>
195
+ </div>
196
+ </section>
197
+ </div>
198
+ <?php elseif($section=='adsecond'): ?>
199
+ <?php
200
+ $three_image_first = get_theme_mod('three_column_adds_first_image','');
201
+ $three_url_first = get_theme_mod('three_column_adds_first_url','');
202
+ $three_image_second = get_theme_mod('three_column_adds_second_image','');
203
+ $three_url_second = get_theme_mod('three_column_adds_second_url','');
204
+ $three_image_third = get_theme_mod('three_column_adds_third_image','');
205
+ $three_url_third = get_theme_mod('three_column_adds_third_url','');
206
+ ?>
207
+ <?php if(shopline_show_dummy_data()): ?>
208
+ <ul class="sell">
209
+ <?php if($three_image_first!=''): ?>
210
+ <li class="one wow thmkfadeIn" data-wow-duration="3s">
211
+ <a class="fst-img" href="<?php echo $three_url_first; ?>"><img src="<?php echo $three_image_first; ?>">
212
+ </a>
213
+ </li>
214
+ <?php else: ?>
215
+ <li class="one wow thmkfadeIn" data-wow-duration="3s">
216
+ <a href="#"><img src="<?php echo SHOPLINE_SMALL; ?>" >
217
+ </a>
218
+ </li>
219
+ <?php endif; ?>
220
+ <?php if($three_image_second!=''):?>
221
+ <li class="two wow thmkfadeIn" data-wow-duration="3s">
222
+ <a href="<?php echo $three_url_second; ?>"><img src="<?php echo $three_image_second; ?>"></a>
223
+ </li>
224
+ <?php else: ?>
225
+ <li class="two wow thmkfadeIn" data-wow-duration="3s">
226
+ <a href="#"><img src="<?php echo SHOPLINE_SMALL; ?>" ></a>
227
+ </li>
228
+ <?php endif; ?>
229
+ <?php if($three_image_third!=''):?>
230
+ <li class="three wow thmkfadeIn" data-wow-duration="3s">
231
+ <a href="<?php echo $three_url_third; ?>"><img src="<?php echo $three_image_third; ?>"></a>
232
+ </li>
233
+ <?php else: ?>
234
+ <li class="three wow thmkfadeIn" data-wow-duration="3s">
235
+ <a href="#"><img src="<?php echo SHOPLINE_SMALL; ?>"></a>
236
+ </li>
237
+ <?php endif; ?>
238
+ </ul>
239
+ <?php endif;?>
240
+ <?php elseif($section=='slider'):?>
241
+ <?php
242
+ $shopline_front_page_set = get_theme_mod('shopline_front_page_set','slide');
243
+ if($shopline_front_page_set =='slide'): $i=0; ?>
244
+ <div id="slider-div" class="slider">
245
+ <div class="flexslider carousel">
246
+ <input type="hidden" id="nor_slidespeed" value="<?php if (get_theme_mod('normal_slider_speed','') != '') { echo stripslashes(get_theme_mod('normal_slider_speed')); } else { ?>3000<?php } ?>"/>
247
+ <ul class="slides">
248
+ <?php if (get_theme_mod('first_slider_image','') != '') { $i++; ?>
249
+
250
+ <li class="<?php echo $prlx_class;?>" style="background:url('<?php echo get_theme_mod('first_slider_image'); ?>')" data-center="<?php echo $prlx_data_center;?>"
251
+ data-top-bottom="<?php echo $prlx_top_bottom;?>">
252
+
253
+ <?php } else { ?>
254
+ <?php if(get_theme_mod('norl_prlx_set','on') == 'on'){?>
255
+ <li class="<?php echo $prlx_class;?>" style="background:url('<?php echo SHOPLINE_SLIDER; ?>')" data-center="<?php echo $prlx_data_center;?>"
256
+ data-top-bottom="<?php echo $prlx_top_bottom;?>">
257
+ <?php } else { ?>
258
+ <li style="background:url('<?php echo SHOPLINE_SLIDER; ?>')">
259
+ <?php } ?>
260
+ <?php } ?>
261
+
262
+ <div class="container_caption">
263
+ <div class="container">
264
+ <?php if (get_theme_mod('first_slider_heading','') != '') { ?>
265
+ <h2 class="thmkfadeInDown"><a href="<?php
266
+ if (get_theme_mod('first_slider_link','') != '') {
267
+ echo get_theme_mod('first_slider_link');
268
+ }
269
+ ?>"><?php echo get_theme_mod('first_slider_heading'); ?></a></h2>
270
+ <?php } else { ?>
271
+ <h2><a href="#">Shopping theme</a></h2>
272
+ <?php } ?>
273
+ <?php if (get_theme_mod('first_slider_desc') != '') { ?>
274
+ <p>
275
+ <?php echo get_theme_mod('first_slider_desc'); ?>
276
+ </p>
277
+ <?php } else { ?>
278
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
279
+ <?php } ?>
280
+ <?php if (get_theme_mod('first_button_text','') != '') { ?>
281
+ <a href="<?php if (get_theme_mod('first_button_link','') != '') {
282
+ echo stripslashes(get_theme_mod('first_button_link'));
283
+ } else {
284
+ echo "#";
285
+ }
286
+ ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('first_button_text')); ?></a>
287
+ <?php } else { ?>
288
+ <a href="#" class="slider-button">Buy Now!</a>
289
+ <?php } ?>
290
+ </div>
291
+ </div>
292
+ </li>
293
+
294
+ <?php if (get_theme_mod('second_slider_image','')) { $i++; ?>
295
+
296
+ <li class="<?php echo $prlx_class;?>" style="background:url('<?php echo get_theme_mod('second_slider_image'); ?>')" data-center="<?php echo $prlx_data_center;?>" data-top-bottom="<?php echo $prlx_top_bottom;?>">
297
+ <div class="container_caption">
298
+ <div class="container">
299
+ <h2><a href="<?php
300
+ if (get_theme_mod('second_slider_link','') != '') {
301
+ echo get_theme_mod('second_slider_link');
302
+ }
303
+ ?>"><?php echo stripslashes(get_theme_mod('second_slider_heading')); ?></a></h2>
304
+ <p><?php echo stripslashes(get_theme_mod('second_slider_desc')); ?></p>
305
+ <?php if (get_theme_mod('second_button_text','') != '') { ?>
306
+ <a href="<?php if (get_theme_mod('second_button_link','') != '') {
307
+ echo stripslashes(get_theme_mod('second_button_link'));
308
+ } else { echo "#"; }
309
+ ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('second_button_text')); ?></a>
310
+ <?php } ?>
311
+ </div>
312
+ </div>
313
+ </li>
314
+ <?php } ?>
315
+ <?php if (get_theme_mod('third_slider_image','')) { $i++; ?>
316
+ <li class="<?php echo $prlx_class;?>" style="background:url('<?php echo get_theme_mod('third_slider_image'); ?>')" data-center="<?php echo $prlx_data_center;?>" data-top-bottom="<?php echo $prlx_top_bottom;?>" >
317
+
318
+ <div class="container_caption">
319
+ <div class="container">
320
+ <h2><a href="<?php
321
+ if (get_theme_mod('third_slider_link','') != '') {
322
+ echo get_theme_mod('third_slider_link');
323
+ }
324
+ ?>"><?php echo stripslashes(get_theme_mod('third_slider_heading')); ?></a></h2>
325
+ <p><?php echo stripslashes(get_theme_mod('third_slider_desc')); ?></p>
326
+ <?php if (get_theme_mod('third_button_text','') != '') { ?>
327
+ <a href="<?php if (get_theme_mod('third_button_link','') != '') {
328
+ echo stripslashes(get_theme_mod('third_button_link'));
329
+ } else { echo "#"; }
330
+ ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('third_button_text')); ?></a>
331
+ <?php } ?>
332
+ </div>
333
+ </div>
334
+ </li>
335
+ <?php } ?>
336
+ </ul>
337
+ </div></div>
338
+ <?php endif;
339
+ if($shopline_front_page_set=='color'):?>
340
+ <div id="hero-color" class="top-hero hero-color" style="background:<?php echo get_theme_mod('front_hero_bg_color','#7D7D7D')?>">
341
+ <div class="container_caption">
342
+ <div class="container">
343
+ <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
344
+ <div class="align-wrap">
345
+ <?php if(get_theme_mod('_content_front_align_set')=='txt-media-left'){?>
346
+ <div class="image-align">
347
+ <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
348
+ </div>
349
+ <?php } ?>
350
+ <div class="content-align">
351
+ <?php endif; ?>
352
+ <?php if (get_theme_mod('front_hero_video_heading','') != '') { ?>
353
+ <h2 class="thmkfadeInDown"><a href="<?php
354
+ if (get_theme_mod('front_hero_video_link','') != '') {
355
+ echo get_theme_mod('front_hero_video_link');
356
+ }
357
+ ?>"><?php echo get_theme_mod('front_hero_video_heading'); ?></a></h2>
358
+ <?php } else { ?>
359
+ <h2><a href="#">Shopping theme</a></h2>
360
+ <?php } ?>
361
+ <?php if (get_theme_mod('front_hero_video_desc') != '') { ?>
362
+ <p>
363
+ <?php echo get_theme_mod('front_hero_video_desc'); ?>
364
+ </p>
365
+ <?php } else { ?>
366
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
367
+ <?php } ?>
368
+ <?php if (get_theme_mod('front_hero_video_button_text','') != '') { ?>
369
+ <a href="<?php if (get_theme_mod('front_hero_video_button_link','') != '') {
370
+ echo stripslashes(get_theme_mod('front_hero_video_button_link'));
371
+ } else {
372
+ echo "#";
373
+ }
374
+ ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('front_hero_video_button_text')); ?></a>
375
+ <?php } else { ?>
376
+ <a href="#" class="slider-button">Buy Now!</a>
377
+ <?php } ?>
378
+ <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
379
+ </div>
380
+ <?php if(get_theme_mod('_content_front_align_set')=='txt-media-right'){?>
381
+ <div class="image-align">
382
+ <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
383
+ </div>
384
+ <?php } ?>
385
+ </div>
386
+ <?php endif; ?>
387
+ </div>
388
+ </div>
389
+ <?php endif;?>
390
+ <!-- hero-image -->
391
+ <?php if($shopline_front_page_set=='image'):?>
392
+ <div class="<?php echo $prlx_class;?>" data-center="<?php echo $prlx_data_center;?>"
393
+ data-top-bottom="<?php echo $prlx_top_bottom;?>" id="hero-image" class="top-hero hero-image" style="background-image: url(<?php echo get_theme_mod('front_hero_img');?>);">
394
+ <div class="container_caption">
395
+ <div class="container">
396
+ <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
397
+ <div class="align-wrap">
398
+ <?php if(get_theme_mod('_content_front_align_set')=='txt-media-left'){?>
399
+ <div class="image-align">
400
+ <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
401
+ </div>
402
+ <?php } ?>
403
+ <div class="content-align">
404
+ <?php endif; ?>
405
+ <?php if (get_theme_mod('front_hero_video_heading','') != '') { ?>
406
+ <h2 class="thmkfadeInDown"><a href="<?php
407
+ if (get_theme_mod('front_hero_video_link','') != '') {
408
+ echo get_theme_mod('front_hero_video_link');
409
+ }
410
+ ?>"><?php echo get_theme_mod('front_hero_video_heading'); ?></a></h2>
411
+ <?php } else { ?>
412
+ <h2><a href="#">Shopping theme</a></h2>
413
+ <?php } ?>
414
+ <?php if (get_theme_mod('front_hero_video_desc') != '') { ?>
415
+ <p>
416
+ <?php echo get_theme_mod('front_hero_video_desc'); ?>
417
+ </p>
418
+ <?php } else { ?>
419
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
420
+ <?php } ?>
421
+ <?php if (get_theme_mod('front_hero_video_button_text','') != '') { ?>
422
+ <a href="<?php if (get_theme_mod('front_hero_video_button_link','') != '') {
423
+ echo stripslashes(get_theme_mod('front_hero_video_button_link'));
424
+ } else {
425
+ echo "#";
426
+ }
427
+ ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('front_hero_video_button_text')); ?></a>
428
+ <?php } else { ?>
429
+ <a href="#" class="slider-button">Buy Now!</a>
430
+ <?php } ?>
431
+ <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
432
+ </div>
433
+ <?php if(get_theme_mod('_content_front_align_set')=='txt-media-right'){?>
434
+ <div class="image-align">
435
+ <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
436
+ </div>
437
+ <?php } ?>
438
+ </div>
439
+ <?php endif; ?>
440
+ </div>
441
+ </div>
442
+ </div>
443
+ <?php endif;?>
444
+ <!-- hero-image -->
445
+ <?php if($shopline_front_page_set=='video'):?>
446
+ <div id="hero-video" class="hero-video">
447
+ <?php $video_poster = get_theme_mod( 'front_hero_video_poster','');
448
+ $video_muted = get_theme_mod( 'front_hero_video_muted');
449
+ if($video_muted =='1'){
450
+ $mutedvd = "muted";
451
+ } else{
452
+ $mutedvd = "";
453
+ } ?>
454
+ <?php if(shopline_mobile_user_agent_switch()==false): ?>
455
+ <video id="video" <?php echo $mutedvd; ?> autoplay="autoplay" loop="loop" poster="<?php echo $video_poster; ?>" id="hdvid" >
456
+ <source src="<?php echo get_theme_mod('front_hero_video'); ?>" type="video/mp4">
457
+ </video>
458
+ <?php endif; ?>
459
+ <?php if(shopline_mobile_user_agent_switch()):?>
460
+ <video id="video" <?php echo $mutedvd; ?> autoplay="autoplay" loop="loop" poster="<?php echo $video_poster; ?>" id="bgvid">
461
+ <source src="#" type="video/mp4">
462
+ </video>
463
+ <?php endif; ?>
464
+ <div class="container_caption">
465
+ <div class="container">
466
+ <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
467
+ <div class="align-wrap">
468
+ <?php if(get_theme_mod('_content_front_align_set')=='txt-media-left'){?>
469
+ <div class="image-align">
470
+ <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
471
+ </div>
472
+ <?php } ?>
473
+ <div class="content-align">
474
+ <?php endif; ?>
475
+ <?php if (get_theme_mod('front_hero_video_heading','') != '') { ?>
476
+ <h2 class="thmkfadeInDown"><a href="<?php
477
+ if (get_theme_mod('front_hero_video_link','') != '') {
478
+ echo get_theme_mod('front_hero_video_link');
479
+ }
480
+ ?>"><?php echo get_theme_mod('front_hero_video_heading'); ?></a></h2>
481
+ <?php } else { ?>
482
+ <h2><a href="#">Shopping theme</a></h2>
483
+ <?php } ?>
484
+ <?php if (get_theme_mod('front_hero_video_desc') != '') { ?>
485
+ <p>
486
+ <?php echo get_theme_mod('front_hero_video_desc'); ?>
487
+ </p>
488
+ <?php } else { ?>
489
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
490
+ <?php } ?>
491
+ <?php if (get_theme_mod('front_hero_video_button_text','') != '') { ?>
492
+ <a href="<?php if (get_theme_mod('front_hero_video_button_link','') != '') {
493
+ echo stripslashes(get_theme_mod('front_hero_video_button_link'));
494
+ } else {
495
+ echo "#";
496
+ }
497
+ ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('front_hero_video_button_text')); ?></a>
498
+ <?php } else { ?>
499
+ <a href="#" class="slider-button">Buy Now!</a>
500
+ <?php } ?>
501
+ <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
502
+ </div>
503
+ <?php if(get_theme_mod('_content_front_align_set')=='txt-media-right'){?>
504
+ <div class="image-align">
505
+ <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
506
+ </div>
507
+ <?php } ?>
508
+ </div>
509
+ <?php endif; ?>
510
+ </div>
511
+ </div>
512
+ </div>
513
+ <?php endif;
514
+ if($shopline_front_page_set=='gradient'):?>
515
+ <div id="hero-gradient" class="top-hero hero-gradient">
516
+ <div class="container_caption">
517
+ <div class="container">
518
+ <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
519
+ <div class="align-wrap">
520
+ <?php if(get_theme_mod('_content_front_align_set')=='txt-media-left'){?>
521
+ <div class="image-align">
522
+ <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
523
+ </div>
524
+ <?php } ?>
525
+ <div class="content-align">
526
+ <?php endif; ?>
527
+ <?php if (get_theme_mod('front_hero_video_heading','') != '') { ?>
528
+ <h2 class="thmkfadeInDown"><a href="<?php
529
+ if (get_theme_mod('front_hero_video_link','') != '') {
530
+ echo get_theme_mod('front_hero_video_link');
531
+ }
532
+ ?>"><?php echo get_theme_mod('front_hero_video_heading'); ?></a></h2>
533
+ <?php } else { ?>
534
+ <h2><a href="#">Shopping theme</a></h2>
535
+ <?php } ?>
536
+ <?php if (get_theme_mod('front_hero_video_desc') != '') { ?>
537
+ <p>
538
+ <?php echo get_theme_mod('front_hero_video_desc'); ?>
539
+ </p>
540
+ <?php } else { ?>
541
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
542
+ <?php } ?>
543
+ <?php if (get_theme_mod('front_hero_video_button_text','') != '') { ?>
544
+ <a href="<?php if (get_theme_mod('front_hero_video_button_link','') != '') {
545
+ echo stripslashes(get_theme_mod('front_hero_video_button_link'));
546
+ } else {
547
+ echo "#";
548
+ }
549
+ ?>" class="slider-button"><?php echo stripslashes(get_theme_mod('front_hero_video_button_text')); ?></a>
550
+ <?php } else { ?>
551
+ <a href="#" class="slider-button">Buy Now!</a>
552
+ <?php } ?>
553
+ <?php if(get_theme_mod('_content_front_align_set','')=='txt-media-left' || get_theme_mod('_content_front_align_set','')=='txt-media-right'):?>
554
+ </div>
555
+ <?php if(get_theme_mod('_content_front_align_set')=='txt-media-right'){?>
556
+ <div class="image-align">
557
+ <img src="<?php echo get_theme_mod('align_image',''); ?>"/>
558
+ </div>
559
+ <?php } ?>
560
+ </div>
561
+ <?php endif; ?>
562
+ </div>
563
+ </div>
564
+ </div>
565
+ <?php endif;
566
+ if($shopline_front_page_set=='external'):?>
567
+ <div id="hero-slide-plugin" class="top-hero hero-slide-plugin">
568
+ <?php $front_extrnl_shrcd = get_theme_mod('front_extrnl_shrcd');
569
+ echo do_shortcode($front_extrnl_shrcd); ?>
570
+ </div>
571
+ <?php endif;?>
572
+ <?php elseif($section=='ribbon'):?>
573
+ <?php
574
+ $heading = get_theme_mod('ribbon_heading','');
575
+ $subheading = get_theme_mod('ribbon_subheading','');
576
+ $video_option = get_theme_mod('ribbon_bg_options','');
577
+ $ribbon_video_bg_image = get_theme_mod( 'ribbon_video_bg_image','');
578
+ if (get_theme_mod('video_muted')=='1'){
579
+ $muted = "muted";
580
+ } else{
581
+ $muted = "";
582
+ }
583
+ ?>
584
+ <div class="ribbon-wrpapper">
585
+ <?php
586
+ $svg_class = '';
587
+ $svgbg = shopline_svg_enable('ribbon_bg_options','ribbon_svg_style','ribbn_img_overly_color');
588
+ if($svgbg!=''){
589
+ echo $svgbg;
590
+ $svg_class = 'svg_enable';
591
+ }
592
+ ?>
593
+ <section id="ribbon_section" class="vedio-ribbon <?php echo $prlx_class;?> <?php echo $svg_class;?>"
594
+ data-center="<?php echo $prlx_data_center;?>"
595
+ data-top-bottom="<?php echo $prlx_top_bottom;?>">
596
+ <?php if($video_option =='video'):?>
597
+ <?php if(shopline_mobile_user_agent_switch()==false): ?>
598
+ <video id="video" autoplay="autoplay" loop="loop" poster="<?php echo $ribbon_video_bg_image; ?>" <?php echo $muted; ?> id="bgvid" >
599
+ <source src="<?php echo get_theme_mod('ribbon_bg_video'); ?>" type="video/mp4">
600
+ </video>
601
+ <?php endif; ?>
602
+ <?php if(shopline_mobile_user_agent_switch()):?>
603
+ <video id="video" autoplay="autoplay" loop="loop" poster="<?php echo $ribbon_video_bg_image; ?>" <?php echo $muted; ?> id="bgvid">
604
+ <source src="#" type="video/mp4">
605
+ </video>
606
+ <?php endif;?>
607
+ <?php endif; ?>
608
+ <div class="title-wrap wow thmkfadeIn" data-wow-duration="3s">
609
+ <div class="video-title">
610
+ <?php if($heading!=''){ ?>
611
+ <h2 class="ribbon-heading"><?php echo $heading; ?></h2>
612
+ <?php } else { ?>
613
+ <?php if(shopline_show_dummy_data()): ?>
614
+ <h2 class="ribbon-heading"><?php _e('Video Background Show Your Website Visually','oneline'); ?></h2>
615
+ <?php endif; ?>
616
+ <?php } ?>
617
+ <div class="heading-border"></div>
618
+ <?php if($subheading!=''){ ?>
619
+ <p class="ribbon-sub-heading"><?php echo $subheading; ?></p>
620
+ <?php } else { ?>
621
+ <?php if(shopline_show_dummy_data()): ?>
622
+ <p class="ribbon-sub-heading"><?php _e('fitness quality backpacks, bags, travel goods and accessoriesus ut venenatis. Maecenas mattis mattisIn','oneline'); ?> </p>
623
+ <?php endif; ?>
624
+ <?php } ?>
625
+ </div>
626
+ </div>
627
+ </section>
628
+ </div>
629
+ <div class="clearfix"></div>
630
+ <?php elseif($section=='testimonial'): ?>
631
+ <?php
632
+ $testm_slidr_spd = get_theme_mod('testm_slider_speed','');
633
+ $heading = get_theme_mod('our_testm_heading','');
634
+ $subheading = get_theme_mod('our_testm_subheading','');
635
+ $testimonial_parallax = get_theme_mod('testimonial_parallax','on');
636
+ if(get_theme_mod('testm_play','')=='on'){
637
+ $testmply='true';
638
+ }else{
639
+ $testmply='false';
640
+ };
641
+ ?>
642
+ <div class="testimonial_wrapper">
643
+ <input type="hidden" id="testm_ply" value="<?php echo $testmply; ?>"/>
644
+ <input type="hidden" id="testm_slidr_spd" value="<?php echo $testm_slidr_spd; ?>"/>
645
+ <?php
646
+ $svg_class = '';
647
+ $svgbg = shopline_svg_enable('testimonial_options','testim_svg_style','tst_img_overly_color');
648
+ if($svgbg!=''){
649
+ echo $svgbg;
650
+ $svg_class = 'svg_enable';
651
+ }
652
+ ?>
653
+ <!-- start testimonial -->
654
+ <section id="testimonial_section" class="testimonial <?php echo $prlx_class;?> <?php echo $svg_class;?>"
655
+ data-center="<?php echo $prlx_data_center;?>"
656
+ data-top-bottom="<?php echo $prlx_top_bottom;?>">
657
+ <div class="container">
658
+ <div class="block-heading wow thmkfadeIn" data-wow-duration="3s">
659
+ <?php if($heading!=''){ ?>
660
+ <h2 class="testimonial-heading"><?php echo $heading; ?></h2>
661
+ <?php } else { ?>
662
+ <?php if(shopline_show_dummy_data()): ?>
663
+ <h2 class="testimonial-heading"><?php _e('Watch Client Say?','oneline'); ?></h2>
664
+ <?php endif; ?>
665
+ <?php } ?>
666
+ <div class="heading-border"></div>
667
+ <?php if($subheading!=''){ ?>
668
+ <p class="testimonial-woocatesub-heading"><?php echo $subheading; ?></p>
669
+ <?php } else { ?>
670
+ <?php if(shopline_show_dummy_data()): ?>
671
+ <p class="testimonial-sub-heading" ><?php _e('fitness quality backpacks, bags, travel goods and accessories','oneline'); ?> </p>
672
+ <?php endif; ?>
673
+ <?php } ?>
674
+ </div>
675
+ <div class="testimonial-block wow thmkfadeInDown" data-wow-duration="2s">
676
+ <div class="testimonial-wrap owl-carousel">
677
+ <?php
678
+ if ( is_active_sidebar( 'testimonial-widget' ) ):
679
+ dynamic_sidebar( 'testimonial-widget' );
680
+ else:
681
+ ?>
682
+ <?php if(shopline_show_dummy_data()): ?>
683
+ <div class="testimonial-content item">
684
+ <div class="figure-testimonial">
685
+ <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
686
+ <a class="web-link" href="#">www.themehunk.com</a>
687
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
688
+ <h4>one Lery Page.</h4>
689
+ </div>
690
+ </div>
691
+ <div class="testimonial-content item">
692
+ <div class="figure-testimonial">
693
+ <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
694
+ <a class="web-link" href="#">www.themehunk.com</a>
695
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
696
+ <h4>one Lery Page.</h4>
697
+ </div>
698
+ </div>
699
+ <div class="testimonial-content item">
700
+ <div class="figure-testimonial">
701
+ <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
702
+ <a class="web-link" href="#">www.themehunk.com</a>
703
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
704
+ <h4>one Lery Page.</h4>
705
+ </div>
706
+ </div>
707
+ <div class="testimonial-content item">
708
+ <div class="figure-testimonial">
709
+ <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
710
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
711
+ <h4>one Lery Page.</h4>
712
+ </div>
713
+ </div>
714
+ <div class="testimonial-content item">
715
+ <div class="figure-testimonial">
716
+ <img src="<?php echo SHOPLINE_TESTIMONIAL; ?>">
717
+ <a class="web-link" href="#">www.themehunk.com</a>
718
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sollicitudin euismod felis. Curabitur lacinia metus non hendrerit imperdiet. Vestibulum condimentum enim facilisis sollicitudin bibendum.</p>
719
+ <h4>one Lery Page.</h4>
720
+ </div>
721
+ </div>
722
+ <?php endif; ?>
723
+ <?php endif; ?>
724
+ </div>
725
+ </div>
726
+ </div>
727
+ </section>
728
+ </div>
729
+ <div class="clearfix"></div>
730
+ <!-- service section -->
731
+ <?php elseif($section=='service'):
732
+ ?>
733
+ <section id="services">
734
+ <div class="container">
735
+ <div class="block-services">
736
+ <ul class="services-list owl-carousel">
737
+ <?php
738
+ if ( is_active_sidebar( 'shopservice-widget' ) ):
739
+ dynamic_sidebar( 'shopservice-widget' );
740
+ endif;
741
+ ?>
742
+ </ul>
743
+ </div>
744
+ </div>
745
+ </section>
746
+ <div class="clearfix"></div>
747
+ <?php elseif($section=='woocate'): ?>
748
+ <!-- cat-home start -->
749
+ <?php
750
+ $cat_slidr_spd = get_theme_mod('woo_cate_slider_speed','');
751
+ $heading = get_theme_mod('woo_cate_slider_heading','');
752
+ $subheading = get_theme_mod('woo_cate_slider_subheading','');
753
+ $cat_prallax = get_theme_mod('woo_cate_parallax','on');
754
+ if(get_theme_mod('cat_play','')=='on'){
755
+ $catply='true';
756
+ }else{
757
+ $catply='false';
758
+ };
759
+ ?>
760
+ <div class="woo_cat_wrapper">
761
+ <input type="hidden" id="cat_ply" value="<?php echo $catply; ?>"/>
762
+ <input type="hidden" id="cat_slidr_spd" value="<?php echo $cat_slidr_spd; ?>"/>
763
+ <?php
764
+ $svg_class = '';
765
+ $svgbg = shopline_svg_enable('woo_cate_image_bg','woo_cat_svg_style','woo_cate_slider_overly');
766
+ if($svgbg!=''){
767
+ echo $svgbg;
768
+ $svg_class = 'svg_enable';
769
+ }
770
+ ?>
771
+ <section id="category_section" class="home-imagecat <?php echo $prlx_class;?> <?php echo $svg_class;?>"
772
+ data-center="<?php echo $prlx_data_center;?>"
773
+ data-top-bottom="<?php echo $prlx_top_bottom;?>">
774
+ <div class="container">
775
+ <div class="imagecat-block">
776
+ <div class="block-heading wow thmkfadeIn" data-wow-duration="3s">
777
+ <?php if($heading!=''){ ?>
778
+ <h2 class="woocate-heading"><?php echo $heading; ?></h2>
779
+ <?php } else { ?>
780
+ <?php if(shopline_show_dummy_data()): ?>
781
+ <h2 class="woocate-heading"><?php _e('enjoy your shopping'); ?></h2>
782
+ <?php endif; ?>
783
+ <?php } ?>
784
+
785
+ <div class="heading-border"></div>
786
+ <?php if($subheading!=''){ ?>
787
+ <p class="woocate-sub-heading"><?php echo $subheading; ?></p>
788
+ <?php } else { ?>
789
+ <?php if(shopline_show_dummy_data()): ?>
790
+ <p class="woocate-sub-heading"><?php _e('fitness quality backpacks, bags, travel goods and accessoriesus ut venenatis. Maecenas mattis mattisIn','shopline'); ?> </p>
791
+ <?php endif; ?>
792
+ <?php } ?>
793
+ </div>
794
+ <!-- grid-slider-layout -->
795
+ <div class="cat-grid owl-carousel wow thmkfadeInDown" data-wow-duration="2s">
796
+ <?php do_action('shopline_cate_image'); ?>
797
+ </div>
798
+ </div>
799
+ </div>
800
+ </section>
801
+ </div>
802
+ <div class="clearfix"></div>
803
+ <?php elseif($section=='wooproduct'): ?>
804
+ <!-- start featured product -->
805
+ <div class="woo_product_wrapper">
806
+ <?php
807
+ $svg_class = '';
808
+ $svgbg = shopline_svg_enable('woo_cate_product_options','woo_prd_svg_style','woo_cate_product_overly');
809
+ if($svgbg!=''){
810
+ echo $svgbg;
811
+ $svg_class = 'svg_enable';
812
+ }
813
+ ?>
814
+ <section id="featured_product_section" class="featured-prd <?php echo $prlx_class;?> <?php echo $svg_class;?>" data-center="<?php echo $prlx_data_center;?>"
815
+ data-top-bottom="<?php echo $prlx_top_bottom;?>">
816
+ <div class="container" data-aos="fade-up">
817
+ <?php do_action( 'shopline_product' ); ?>
818
+ </div>
819
+ </section>
820
+ </div>
821
+ <div class="clearfix"></div>
822
+ <?php elseif($section=='cart_menu'): ?>
823
+ <ul class="hdr-icon-list">
824
+ <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
825
+ if(is_plugin_active('yith-woocommerce-wishlist/init.php')){?>
826
+ <li class="top-list wishlist">
827
+ <a class="tooltip" href="<?php echo esc_url( shopline_whishlist_url() ); ?>"><i class="fa fa-heart icon-space" aria-hidden="true"></i>
828
+ <span class="tooltiptext"><?php _e('Wishlist','shopline'); ?></span></a>
829
+ </li>
830
+ <?php } ?>
831
+ <li class="top-list accnt"><?php do_action('shopline_myaccount'); ?></li>
832
+ <li class="top-list cart">
833
+ <div class="cart-widget tooltip">
834
+ <span class="tooltiptext"><?php _e('Cart','shopline'); ?></span>
835
+ <div onmouseover="openNav()" onmouseout="closeNav()">
836
+ <?php do_action( 'shopline_header' ); ?>
837
+ </div>
838
+ <!-- side menu -->
839
+ <!-- onmouseover="openNav()" -->
840
+ <div onmouseover="openNav()" onmouseout="closeNav()" id="mySidenav" class="sidenav">
841
+ <div id="accordion" class="woocommerce">
842
+ <?php do_action( 'shopline_cart' ); ?>
843
+ </div>
844
+ </div>
845
+ </div>
846
+ </li>
847
+ <li class="top-list search-icon"><i id="search-btn" class="fa fa-search"></i></li>
848
+ <!-- serach box overlay -->
849
+ <div id="search-overlay" class="block">
850
+ <div class="centered">
851
+ <i id="close-btn" class="fa fa-times fa-2x"></i>
852
+ <div id='search-box' class="wow thmkfadeInDown" data-wow-duration="1s">
853
+ <?php
854
+ if(class_exists('TH_Advance_Product_Search')){
855
+ echo do_shortcode('[th-aps]');
856
+ } else {
857
+ $url = admin_url('themes.php?page=th_shopline&tab=actions_required');
858
+ echo '<a href="'.$url.'" target="_blank" class="plugin-active-msg">'.__('Please activate "th advance product search plugin"','shopline').'</a>';
859
+ } ?>
860
+
861
+ </div>
862
+ </div>
863
+ </div>
864
+ <!-- serach box overlay -->
865
+ </ul>
866
+ <?php elseif($section=='slideproduct'): ?>
867
+ <?php
868
+ $_woo_slide_heading = get_theme_mod('_woo_slide_heading','');
869
+ $_woo_slide_subheading = get_theme_mod('_woo_slide_subheading','');
870
+ $product_slider_speed = get_theme_mod('product_slider_speed',3000);
871
+ if(get_theme_mod('slide_product_play','')=='on'){
872
+ $ply='true';
873
+ }else{
874
+ $ply='false';
875
+ };
876
+ ?>
877
+ <div class="woo_slide_product_wrapper">
878
+ <?php
879
+ $svg_class = '';
880
+ $svgbg = shopline_svg_enable('product_slider_options','woo_slide_svg_style','product_slider_img_overly_color');
881
+ if($svgbg!=''){
882
+ echo $svgbg;
883
+ $svg_class = 'svg_enable';
884
+ }
885
+ ?>
886
+ <input type="hidden" id="_ply" value="<?php echo $ply; ?>"/>
887
+ <input type="hidden" id="_slidr_spd" value="<?php echo $product_slider_speed; ?>"/>
888
+ <section id="featured_product_section1" class="<?php echo esc_html($prlx_class);?> <?php echo esc_html($svg_class);?>"
889
+ data-center="<?php echo $prlx_data_center;?>"
890
+ data-top-bottom="<?php echo $prlx_top_bottom;?>">
891
+ <div class="container">
892
+ <div class="block-heading wow thmkfadeIn">
893
+ <?php if($_woo_slide_heading!==''){ ?>
894
+ <h2 class="slide-woocate-heading"><?php echo $_woo_slide_heading ;?></h2>
895
+ <?php } else { ?>
896
+ <?php if(shopline_show_dummy_data()): ?>
897
+ <h2 class="slide-woocate-heading"><?php _e('enjoy your shopping'); ?></h2>
898
+
899
+ <?php endif;} ?>
900
+ <div class="heading-border"></div>
901
+ <?php if($_woo_slide_subheading!=''){ ?>
902
+ <p class="slide-woocate-sub-heading"><?php echo $_woo_slide_subheading; ?></p>
903
+ <?php } else { ?>
904
+ <?php if(shopline_show_dummy_data()): ?>
905
+ <p class="slide-woocate-sub-heading"><?php _e('fitness quality backpacks, bags, travel goods and accessoriesus ut venenatis. Maecenas mattis mattisIn','shopline'); ?> </p>
906
+ <?php endif; ?>
907
+ <?php } ?>
908
+ </div>
909
+ <div class="product-block featured-grid wow thmkfadeInDown" data-wow-duration="2s">
910
+ <div class="product-one owl-carousel">
911
+ <?php do_action( 'shopline_product_slide' ); ?>
912
+ </div>
913
+ </div>
914
+ </div>
915
+ </section>
916
+ </div>
917
+ <?php elseif($section=='woocommerce'): ?>
918
+ <?php if( shortcode_exists( 'recent_products' ) ): ?>
919
+ <?php $woo_product = get_theme_mod('woo_shortcode','[recent_products]'); ?>
920
+ <div class="container">
921
+ <?php if(get_theme_mod( 'woo_head_')!=''){?>
922
+ <h2 class="head-text wow thmkfadeIn" data-wow-duration="1s"><?php echo get_theme_mod( 'woo_head_'); ?></h2>
923
+ <?php } else { ?>
924
+ <h2 class="head-text wow thmkfadeIn" data-wow-duration="1s"> <?php _e('Woocommerce ','featuredlite'); ?></h2>
925
+ <?php } ?>
926
+ <?php if(get_theme_mod( 'woo_desc_')!=''){?>
927
+ <h3 class="subhead-text wow thmkfadeIn" data-wow-duration="1s"><?php echo get_theme_mod( 'woo_desc_'); ?></h3>
928
+ <?php } else { ?>
929
+ <h3 class="subhead-text wow thmkfadeIn" data-wow-duration="1s"><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry','featuredlite'); ?></h3>
930
+ <?php } ?>
931
+ <div class="wow thmkfadeIn" data-wow-duration="1s">
932
+ <?php echo do_shortcode($woo_product); ?>
933
+ </div>
934
+ </div>
935
+ <?php endif; ?>
936
+ <?php endif;
937
+ }
938
+ function themehunk_customizer_shortcode($atts) {
939
+ $output = '';
940
+ $pull_quote_atts = shortcode_atts(array(
941
+ 'section' => 1
942
+ ), $atts);
943
+ $did = wp_kses_post($pull_quote_atts['section']);
944
+ $output = themehunk_customizer_add_shotcode($did);
945
+ return $output;
946
+ }
947
+ add_shortcode('themehunk-customizer', 'themehunk_customizer_shortcode');
948
+ //social icon shortocdes
949
+ function themehunk_customizer_social(){
950
+ $social ='<ul>
951
+ <span style="font-style:italic;font-size:12px;">Share</span>
952
+ <li><a target="_blank" href="https://twitter.com/home?status='.get_the_title().'-'.get_permalink().'"><i class="fa fa-twitter"></i></a></li>
953
+ <li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.get_permalink().'"><i class="fa fa-facebook"></i></a></li>
954
+ <li><a target="_blank" href="https://plus.google.com/share?url='.get_permalink().'"><i class="fa fa-google-plus"></i></a></li>
955
+ <li><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url='.get_permalink().'&title='.get_the_title().'&source=LinkedIn"><i class="fa fa-linkedin"></i></a></li>
956
+ </ul>';
957
+ return $social;
958
+ }
959
+ function themehunk_customizer_social_shortcode($atts) {
960
+ $output = '';
961
+ $pull_quote_atts = shortcode_atts(array(
962
+ 'did' => 1
963
+ ), $atts);
964
+ $did = wp_kses_post($pull_quote_atts['did']);
965
+ $output = themehunk_customizer_social($did);
966
+ return $output;
967
+ }
968
+ add_shortcode('themehunk-customizer-social', 'themehunk_customizer_social_shortcode');
969
+ // woocommerce plugin
970
+ function themehunk_customizer_woo($did=''){
971
+ $woo_product = get_theme_mod('woo_shortcode','[recent_products]');
972
+
973
+ echo do_shortcode( $woo_product );
974
+
975
+ }
976
+ function themehunk_customizer_shopline_woo($atts) {
977
+ $output = '';
978
+ $pull_quote_atts = shortcode_atts(array(
979
+ 'did' => 1
980
+ ), $atts);
981
+ $did = wp_kses_post($pull_quote_atts['did']);
982
+ $output = themehunk_customizer_woo($did);
983
+ return $output;
984
+ }
985
+ add_shortcode('themehunk-customizer-woo', 'themehunk_customizer_shopline_woo');
986
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themehunk-customizer.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: ThemeHunk Customizer
4
  Description: With the help of ThemeHunk unlimited addon you can add unlimited number of columns for services, Testimonial, and Team with color options for each.
5
- Version: 2.5.6
6
  Author: ThemeHunk
7
  Text Domain: themehunk-customizer
8
  Author URI: http://www.themehunk.com/
@@ -10,7 +10,7 @@
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
 
12
  // Version constant for easy CSS refreshes
13
- define('THEMEHUNK_CUSTOMIZER_VERSION', '2.5');
14
  define('THEMEHUNK_CUSTOMIZER_PLUGIN_URL', plugin_dir_url(__FILE__));
15
  define('THEMEHUNK_CUSTOMIZER_PLUGIN_PATH', plugin_dir_path(__FILE__) );
16
  include_once(plugin_dir_path(__FILE__) . 'notify/notify.php' );
2
  /*
3
  Plugin Name: ThemeHunk Customizer
4
  Description: With the help of ThemeHunk unlimited addon you can add unlimited number of columns for services, Testimonial, and Team with color options for each.
5
+ Version: 2.5.7
6
  Author: ThemeHunk
7
  Text Domain: themehunk-customizer
8
  Author URI: http://www.themehunk.com/
10
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
 
12
  // Version constant for easy CSS refreshes
13
+ define('THEMEHUNK_CUSTOMIZER_VERSION', '2.5.8');
14
  define('THEMEHUNK_CUSTOMIZER_PLUGIN_URL', plugin_dir_url(__FILE__));
15
  define('THEMEHUNK_CUSTOMIZER_PLUGIN_PATH', plugin_dir_path(__FILE__) );
16
  include_once(plugin_dir_path(__FILE__) . 'notify/notify.php' );