ThemeHunk Customizer - Version 2.5.2

Version Description

  • Jot-Shop Issue Fixed.
Download this release

Release Info

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

Code changes from version 2.5.1 to 2.5.2

jot-shop/jot-shop-admin/jot-shop-shortcode.php CHANGED
@@ -20,11 +20,13 @@ function jot_shop_shortcode_template($section_name=''){
20
  }
21
  function jot_shop_shortcodeid_data($atts){
22
  $output = '';
 
23
  $pull_quote_atts = shortcode_atts(array(
24
  'section' => ''
25
  ), $atts);
26
  $section_name = wp_kses_post($pull_quote_atts['section']);
27
  $output = jot_shop_shortcode_template($section_name);
 
28
  return $output;
29
  }
30
  add_shortcode('jot-shop', 'jot_shop_shortcodeid_data');
20
  }
21
  function jot_shop_shortcodeid_data($atts){
22
  $output = '';
23
+ if (class_exists('WooCommerce')) {
24
  $pull_quote_atts = shortcode_atts(array(
25
  'section' => ''
26
  ), $atts);
27
  $section_name = wp_kses_post($pull_quote_atts['section']);
28
  $output = jot_shop_shortcode_template($section_name);
29
+ }
30
  return $output;
31
  }
32
  add_shortcode('jot-shop', 'jot_shop_shortcodeid_data');
jot-shop/jot-shop-admin/woo/jot-shop-admin.php CHANGED
@@ -208,7 +208,7 @@ function jot_shop_product_cat_filter_default_loop($term_id,$prdct_optn){
208
  </div>
209
 
210
  <div class="thunk-product-content">
211
- <?php if (class_exists('TH_Variation_Swatches')) {
212
  thvs_loop_available_attributes($product);
213
  } ?>
214
  <h2 class="woocommerce-loop-product__title"><a href="<?php echo get_permalink($pid); ?>" class="woocommerce-LoopProduct-link woocommerce-loop-product__link"><?php echo $product->get_title(); ?></a>
@@ -334,7 +334,7 @@ function jot_shop_product_filter_loop($args){
334
  </div>
335
 
336
  <div class="thunk-product-content">
337
- <?php if (class_exists('TH_Variation_Swatches')) {
338
  thvs_loop_available_attributes($product);
339
  } ?>
340
  <h2 class="woocommerce-loop-product__title"><a href="<?php echo get_permalink($pid); ?>" class="woocommerce-LoopProduct-link woocommerce-loop-product__link"><?php echo $product->get_title(); ?></a>
208
  </div>
209
 
210
  <div class="thunk-product-content">
211
+ <?php if (class_exists('TH_Variation_Swatches_Pro')) {
212
  thvs_loop_available_attributes($product);
213
  } ?>
214
  <h2 class="woocommerce-loop-product__title"><a href="<?php echo get_permalink($pid); ?>" class="woocommerce-LoopProduct-link woocommerce-loop-product__link"><?php echo $product->get_title(); ?></a>
334
  </div>
335
 
336
  <div class="thunk-product-content">
337
+ <?php if (class_exists('TH_Variation_Swatches_Pro')) {
338
  thvs_loop_available_attributes($product);
339
  } ?>
340
  <h2 class="woocommerce-loop-product__title"><a href="<?php echo get_permalink($pid); ?>" class="woocommerce-LoopProduct-link woocommerce-loop-product__link"><?php echo $product->get_title(); ?></a>
jot-shop/jot-shop-front-page/front-ribbon.php CHANGED
@@ -9,28 +9,34 @@ if(get_theme_mod('jot_shop_ribbon_background','image')=='image'){
9
  <?php jot_shop_display_customizer_shortcut( 'jot_shop_ribbon' ); ?>
10
  <div class="content-wrap">
11
  <div class="thunk-ribbon-content">
12
- <div class="thunk-ribbon-content-col1" ><h3><?php echo esc_html(get_theme_mod('jot_shop_ribbon_text','Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce congue lorem id porta volutpat.')); ?></h3></div>
13
- <?php if(get_theme_mod('jot_shop_ribbon_btn_text','Call To Action')!==''):?>
14
- <div class="thunk-ribbon-content-col2" ><a href="<?php echo esc_url(get_theme_mod('jot_shop_ribbon_btn_link',''));?>" class="ribbon-btn"><?php echo esc_html(get_theme_mod('jot_shop_ribbon_btn_text','Call To Action'));?></a></div>
15
  <?php endif; ?>
16
  </div>
17
  </div>
18
  </section>
19
- <?php }elseif(get_theme_mod('jot_shop_ribbon_background','image')=='video'){
20
-
21
  $jot_shop_youtube_video_link = get_theme_mod('jot_shop_youtube_video_link',''); ?>
22
- <section class="thunk-ribbon-section">
23
- <?php jot_shop_display_customizer_shortcut( 'jot_shop_ribbon' ); ?>
24
- <div class="content-wrap">
25
- <?php if ($jot_shop_youtube_video_link != '') { ?>
26
  <div class="th-youtube-video">
27
  <iframe class="" frameborder="0" allowfullscreen="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" title="YouTube video player" src="<?php echo esc_url($jot_shop_youtube_video_link); ?>?autoplay=1&amp;controls=0&amp;rel=0&amp;playsinline=1&amp;enablejsapi=1"></iframe>
28
  </div>
 
 
 
 
 
 
29
  <?php } ?>
 
 
30
  <div class="thunk-ribbon-content">
31
- <div class="thunk-ribbon-content-col1" ><h3><?php echo esc_html(get_theme_mod('jot_shop_ribbon_text','Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce congue lorem id porta volutpat.')); ?></h3></div>
32
- <?php if(get_theme_mod('jot_shop_ribbon_btn_text','Call To Action')!==''):?>
33
- <div class="thunk-ribbon-content-col2" ><a href="<?php echo esc_url(get_theme_mod('jot_shop_ribbon_btn_link',''));?>" class="ribbon-btn"><?php echo esc_html(get_theme_mod('jot_shop_ribbon_btn_text','Call To Action'));?></a></div>
34
  <?php endif; ?>
35
  </div>
36
  </div>
9
  <?php jot_shop_display_customizer_shortcut( 'jot_shop_ribbon' ); ?>
10
  <div class="content-wrap">
11
  <div class="thunk-ribbon-content">
12
+ <div class="thunk-ribbon-content-col1" ><h3><?php echo esc_html(get_theme_mod('jot_shop_ribbon_text','')); ?></h3></div>
13
+ <?php if(get_theme_mod('jot_shop_ribbon_btn_text','')!==''):?>
14
+ <div class="thunk-ribbon-content-col2" ><a href="<?php echo esc_url(get_theme_mod('jot_shop_ribbon_btn_link',''));?>" class="ribbon-btn"><?php echo esc_html(get_theme_mod('jot_shop_ribbon_btn_text',''));?></a></div>
15
  <?php endif; ?>
16
  </div>
17
  </div>
18
  </section>
19
+ <?php }elseif(get_theme_mod('jot_shop_ribbon_background')=='video'){
 
20
  $jot_shop_youtube_video_link = get_theme_mod('jot_shop_youtube_video_link',''); ?>
21
+ <section class="thunk-ribbon-section">
22
+ <?php if (get_theme_mod('jot_shop_enable_youtube_video','') == 1) { ?>
23
+ <?php if ($jot_shop_youtube_video_link != '') { ?>
 
24
  <div class="th-youtube-video">
25
  <iframe class="" frameborder="0" allowfullscreen="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" title="YouTube video player" src="<?php echo esc_url($jot_shop_youtube_video_link); ?>?autoplay=1&amp;controls=0&amp;rel=0&amp;playsinline=1&amp;enablejsapi=1"></iframe>
26
  </div>
27
+ <?php }
28
+ }
29
+ else{ ?>
30
+ <video autoplay="autoplay" loop playsinline id="bgvid" muted poster="<?php echo get_theme_mod( 'jot_shop_ribbon_video_poster_image'); ?>">
31
+ <source src="<?php echo get_theme_mod( 'jot_shop_ribbon_bg_video'); ?>" type="video/mp4" />
32
+ </video>
33
  <?php } ?>
34
+ <?php jot_shop_display_customizer_shortcut( 'jot_shop_ribbon' ); ?>
35
+ <div class="content-wrap">
36
  <div class="thunk-ribbon-content">
37
+ <div class="thunk-ribbon-content-col1" ><h3><?php echo esc_html(get_theme_mod('jot_shop_ribbon_text','')); ?></h3></div>
38
+ <?php if(get_theme_mod('jot_shop_ribbon_btn_text','')!==''):?>
39
+ <div class="thunk-ribbon-content-col2" ><a href="<?php echo esc_url(get_theme_mod('jot_shop_ribbon_btn_link',''));?>" class="ribbon-btn"><?php echo esc_html(get_theme_mod('jot_shop_ribbon_btn_text',''));?></a></div>
40
  <?php endif; ?>
41
  </div>
42
  </div>
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
7
- Stable tag: 2.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,6 +29,10 @@ Just upload the `themehunk-customizer.zip` to the `/wp-content/plugins/` directo
29
  == Screenshots ==
30
 
31
  == Changelog ==
 
 
 
 
32
  = 2.5.1 =
33
  * Jot-Shop Theme Added.
34
 
4
  Tags: themehunk, customizer, oneline-lite,Testimonial,Team, service
5
  Requires at least: 5.5
6
  Tested up to: 5.8
7
+ Stable tag: 2.5.2
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.2 =
34
+ * Jot-Shop Issue Fixed.
35
+
36
  = 2.5.1 =
37
  * Jot-Shop Theme Added.
38
 
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.1
6
  Author: ThemeHunk
7
  Text Domain: themehunk-customizer
8
  Author URI: http://www.themehunk.com/
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.2
6
  Author: ThemeHunk
7
  Text Domain: themehunk-customizer
8
  Author URI: http://www.themehunk.com/