ThemeHunk Customizer - Version 2.6.3

Version Description

  • Jot Shop - Bottom footer setting added.
Download this release

Release Info

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

Code changes from version 2.6.2 to 2.6.3

jot-shop/customizer/customizer.php CHANGED
@@ -35,6 +35,19 @@ require THEMEHUNK_CUSTOMIZER_PLUGIN_PATH . 'jot-shop/customizer/section/frontpag
35
  ),
36
  )
37
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  }
40
  add_action('customize_register','jot_shop_plugin_customize_register');
35
  ),
36
  )
37
  );
38
+ if (class_exists('Jot_Shop_Misc_Control')) {
39
+ $wp_customize->add_setting('jot-shop-footer-pro-link', array(
40
+ 'sanitize_callback' => 'jot_shop_sanitize_text',
41
+ ));
42
+ $wp_customize->add_control(new Jot_Shop_Misc_Control( $wp_customize, 'jot-shop-footer-pro-link',
43
+ array(
44
+ 'section' => 'jot-shop-bottom-footer',
45
+ 'type' => 'pro-link',
46
+ 'url' => 'https://themehunk.com/product/jot-shop-pro/',
47
+ 'label' => esc_html__( 'Get Pro', 'jot-shop' ),
48
+ 'priority' =>99,
49
+ )));
50
+ }
51
 
52
  }
53
  add_action('customize_register','jot_shop_plugin_customize_register');
jot-shop/customizer/pro-button/class-customize.php ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Singleton class for handling the theme's customizer integration.
4
+ *
5
+ * @since 1.0.0
6
+ * @access public
7
+ */
8
+ final class Jot_Shop_Lite_Pro_Button_Customize {
9
+
10
+ /**
11
+ * Returns the instance.
12
+ *
13
+ * @since 1.0.0
14
+ * @access public
15
+ * @return object
16
+ */
17
+ public static function get_instance() {
18
+
19
+ static $instance = null;
20
+
21
+ if ( is_null( $instance ) ) {
22
+ $instance = new self;
23
+ $instance->setup_actions();
24
+ }
25
+
26
+ return $instance;
27
+ }
28
+
29
+ /**
30
+ * Constructor method.
31
+ *
32
+ * @since 1.0.0
33
+ * @access private
34
+ * @return void
35
+ */
36
+ private function __construct() {}
37
+
38
+ /**
39
+ * Sets up initial actions.
40
+ *
41
+ * @since 1.0.0
42
+ * @access private
43
+ * @return void
44
+ */
45
+ private function setup_actions() {
46
+
47
+ // Register panels, sections, settings, controls, and partials.
48
+ add_action( 'customize_register', array( $this, 'sections' ) );
49
+
50
+ // Register scripts and styles for the controls.
51
+ add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );
52
+ }
53
+
54
+ /**
55
+ * Sets up the customizer sections.
56
+ *
57
+ * @since 1.0.0
58
+ * @access public
59
+ * @param object $manager
60
+ * @return void
61
+ */
62
+ public function sections( $manager ) {
63
+
64
+ // Load custom sections.
65
+ require_once(THEMEHUNK_CUSTOMIZER_PLUGIN_PATH ) . 'jot-shop/customizer/pro-button/section-pro.php';
66
+
67
+ // Register custom section types.
68
+ $manager->register_section_type( 'jot_shop_Button_Customize_Section' );
69
+ $manager->add_section(
70
+ new jot_shop_Button_Customize_Section(
71
+ $manager,
72
+ 'pro_button',
73
+ array(
74
+ 'title' => esc_html__( 'Unlock Pro Features', 'jot-shop' ),
75
+ 'pro_text' => esc_html__( 'Get Pro', 'jot-shop' ),
76
+ 'pro_url' => 'https://themehunk.com/product/jot-shop-pro/',
77
+ 'priority' => 1,
78
+ )
79
+ )
80
+ );
81
+ $manager->add_section(
82
+ new jot_shop_Button_Customize_Section(
83
+ $manager,
84
+ 'Docs_button',
85
+ array(
86
+ 'title' => esc_html__( 'View Documentation', 'jot-shop' ),
87
+ 'pro_text' => esc_html__( 'View Docs', 'jot-shop' ),
88
+ 'pro_url' => 'https://themehunk.com/docs/jot-shop-pro/',
89
+ 'priority' => 2,
90
+ )
91
+ )
92
+ );
93
+ }
94
+
95
+ /**
96
+ * Loads theme customizer CSS.
97
+ *
98
+ * @since 1.0.0
99
+ * @access public
100
+ * @return void
101
+ */
102
+ public function enqueue_control_scripts() {
103
+
104
+ wp_enqueue_script( 'jot-shop-customize-controls', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . 'jot-shop/customizer/pro-button/customize-controls.js', array( 'customize-controls' ) );
105
+
106
+ wp_enqueue_style( 'jot-shop-customize-controls', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . 'jot-shop/customizer/pro-button/customize-controls.css');
107
+ }
108
+ }
109
+
110
+ // Doing this customizer thang!
111
+ Jot_Shop_Lite_Pro_Button_Customize::get_instance();
jot-shop/customizer/pro-button/customize-controls.css ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #customize-controls .control-section-th-pro-sect-link-1 .accordion-section-title:hover,
2
+ #customize-controls .control-section-th-pro-sect-link-1 .accordion-section-title:focus {
3
+ background-color: #fff;
4
+ }
5
+
6
+ .control-section-th-pro-sect-link-1 .accordion-section-title .button {
7
+ margin-top: -4px;
8
+ font-weight: 400;
9
+ margin-left: 8px;
10
+ }
11
+
12
+ .rtl .control-section-th-pro-sect-link-1 .accordion-section-title .button {
13
+ margin-left: 0;
14
+ margin-right: 8px;
15
+ }
16
+
17
+ a.button.pro-button-secondary.alignright {
18
+ background: #008000;
19
+ color: white;
20
+ border: 1px;
21
+ }
22
+ #accordion-section-section_home_ordering .accordion-section-title:after,
23
+ #accordion-section-header_leadform_pro_feature .accordion-section-title:after,
24
+ #accordion-section-section_addnew_ .accordion-section-title:after,
25
+ #accordion-section-more_slidr_ .accordion-section-title:after
26
+ {
27
+ content: "\f160";
28
+ color:#999;
29
+ }
30
+ #accordion-section-section_home_ordering .accordion-section-title:hover:after,
31
+ #accordion-section-header_leadform_pro_feature .accordion-section-title:hover:after,
32
+ #accordion-section-section_addnew_ .accordion-section-title:hover:after,
33
+ #accordion-section-more_slidr_ .accordion-section-title:hover:after{
34
+ color:#999!important;
35
+ }
36
+ #accordion-section-section_home_ordering .accordion-section-title:hover,
37
+ #accordion-section-header_leadform_pro_feature .accordion-section-title:hover,
38
+ #accordion-section-section_addnew_ .accordion-section-title:hover,
39
+ #accordion-section-more_slidr_ .accordion-section-title:hover{
40
+ color: #999!important;
41
+ border-left-color: #999!important;
42
+ }
43
+
44
+ /*Home Page Settings */
45
+
46
+ li#accordion-section-section_default_home h3 {
47
+ background: #a5a7ad !important;
48
+ color: #fff !important;
49
+ }
50
+ .button-large.flactvate{ display:none; }
51
+
52
+ .flactvate-activating{
53
+ color:#f7a205;
54
+ margin-top: 15px;
55
+ display:none;
56
+ float: right;
57
+ }
58
+ .loader {
59
+ border: 5px solid #f3f3f3;
60
+ border-radius: 50%;
61
+ border-top: 5px solid #1b619d;
62
+ width: 20px;
63
+ height: 20px;
64
+ -webkit-animation: spin 1s linear infinite; /* Safari */
65
+ animation: spin 1s linear infinite;
66
+ float: right;
67
+ margin-top: 10px;
68
+ display: none;
69
+ margin-left:5px;
70
+
71
+ }
72
+
73
+ /* Safari */
74
+ @-webkit-keyframes spin {
75
+ 0% { -webkit-transform: rotate(0deg); }
76
+ 100% { -webkit-transform: rotate(360deg); }
77
+ }
78
+
79
+ @keyframes spin {
80
+ 0% { transform: rotate(0deg); }
81
+ 100% { transform: rotate(360deg); }
82
+ }
83
+
84
+ #accordion-section-pro_button a,
85
+ .section-th-pro-sect-link-1 a {
86
+ background: #008000;
87
+ color: #FFF;
88
+ }
jot-shop/customizer/pro-button/customize-controls.js ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function jot_shop_install(newLocation) {
2
+ jQuery('.loader,.flactvate-activating').css('display','block');
3
+ jQuery('.button-large').css('display','none');
4
+ jQuery.post(newLocation, { url: '' }, function(data) {
5
+ // home page settings
6
+ jQuery('.loader,.flactvate-activating').css('display','none');
7
+ jQuery('.button-large.flactvate').css('display','block');
8
+
9
+ var data = {
10
+ 'action': 'jot_shop_default_home',
11
+ 'home': 'saved'
12
+ };
13
+ jQuery.post(ajaxurl, data, function(response) {
14
+ jQuery('.button-large.flactvate').css('display','none');
15
+
16
+ setTimeout(function() {
17
+ location.reload(true);
18
+ }, 1000);
19
+ });
20
+ });
21
+ return false;
22
+ }
23
+
24
+ ( function( api ) {
25
+ // Extends our custom "novellite-1" section.
26
+ api.sectionConstructor['th-pro-sect-link-1'] = api.Section.extend( {
27
+
28
+ // No events for this type of section.
29
+ attachEvents: function () {},
30
+
31
+ // Always make the section active.
32
+ isContextuallyActive: function () {
33
+ return true;
34
+ }
35
+ } );
36
+
37
+ } )( wp.customize );
jot-shop/customizer/pro-button/section-pro.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Pro customizer section.
4
+ *
5
+ * @since 1.0.0
6
+ * @access public
7
+ */
8
+ class jot_shop_Button_Customize_Section extends WP_Customize_Section {
9
+
10
+ /**
11
+ * The type of customize section being rendered.
12
+ *
13
+ * @since 1.0.0
14
+ * @access public
15
+ * @var string
16
+ */
17
+ public $type = 'th-pro-sect-link-1';
18
+
19
+ /**
20
+ * Custom button text to output.
21
+ *
22
+ * @since 1.0.0
23
+ * @access public
24
+ * @var string
25
+ */
26
+ public $pro_text = '';
27
+
28
+ /**
29
+ * Custom pro button URL.
30
+ *
31
+ * @since 1.0.0
32
+ * @access public
33
+ * @var string
34
+ */
35
+ public $pro_url = '';
36
+
37
+ /**
38
+ * Add custom parameters to pass to the JS via JSON.
39
+ *
40
+ * @since 1.0.0
41
+ * @access public
42
+ * @return void
43
+ */
44
+ public function json() {
45
+ $json = parent::json();
46
+
47
+ $json['pro_text'] = $this->pro_text;
48
+ $json['pro_url'] = esc_url( $this->pro_url );
49
+
50
+ return $json;
51
+ }
52
+
53
+ /**
54
+ * Outputs the Underscore.js template.
55
+ *
56
+ * @since 1.0.0
57
+ * @access public
58
+ * @return void
59
+ */
60
+ protected function render_template() { ?>
61
+
62
+ <li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }} cannot-expand">
63
+
64
+ <h3 class="accordion-section-title">
65
+ {{ data.title }}
66
+
67
+ <# if ( data.pro_text && data.pro_url ) { #>
68
+ <a href="{{ data.pro_url }}" class="button pro-button-secondary alignright" target="_blank">{{ data.pro_text }}</a>
69
+ <# } #>
70
+ </h3>
71
+ </li>
72
+ <?php }
73
+ }
jot-shop/include.php CHANGED
@@ -2,6 +2,7 @@
2
  include_once( plugin_dir_path(__FILE__) . 'jot-shop-admin/jot-shop-shortcode.php' );
3
  include_once( plugin_dir_path(__FILE__) . 'jot-shop-admin/woo/jot-shop-admin.php' );
4
  include_once( plugin_dir_path(__FILE__) . 'jot-shop-admin/woo/woo-ajax.php' );
 
5
  include_once( plugin_dir_path(__FILE__) . 'customizer/customizer.php' );
6
 
7
  include_once( plugin_dir_path(__FILE__) . 'jot-shop-admin/widget/widget-input.php' );
2
  include_once( plugin_dir_path(__FILE__) . 'jot-shop-admin/jot-shop-shortcode.php' );
3
  include_once( plugin_dir_path(__FILE__) . 'jot-shop-admin/woo/jot-shop-admin.php' );
4
  include_once( plugin_dir_path(__FILE__) . 'jot-shop-admin/woo/woo-ajax.php' );
5
+ include_once( plugin_dir_path(__FILE__) . 'customizer/pro-button/class-customize.php' );
6
  include_once( plugin_dir_path(__FILE__) . 'customizer/customizer.php' );
7
 
8
  include_once( plugin_dir_path(__FILE__) . 'jot-shop-admin/widget/widget-input.php' );
jot-shop/jot-shop-admin/woo/jot-shop-admin.php CHANGED
@@ -506,4 +506,36 @@ if (!function_exists('jot_shop_wpc_compare')) {
506
  function jot_shop_wpc_compare($pid=''){
507
  echo do_shortcode('[woosc id='.$pid.']');
508
  }
509
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
506
  function jot_shop_wpc_compare($pid=''){
507
  echo do_shortcode('[woosc id='.$pid.']');
508
  }
509
+ }
510
+ /**************************************/
511
+ //Below footer function
512
+ /**************************************/
513
+ if ( ! function_exists( 'jot_shop_below_footer_markup' ) ){
514
+ function jot_shop_below_footer_markup(){ ?>
515
+ <div class="below-footer">
516
+ <div class="container">
517
+ <div class="below-footer-bar thnk-col-1">
518
+ <div class="below-footer-col1">
519
+ <p class="footer-copyright">&copy;
520
+ <?php
521
+ echo date_i18n(
522
+ /* translators: Copyright date format, see https://www.php.net/date */
523
+ _x( 'Y', 'copyright date format', 'jot-shop' )
524
+ );
525
+ ?>
526
+ <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
527
+ <span class="powered-by-wordpress">
528
+ <span><?php _e( 'Designed by', 'jot-shop' ); ?></span>
529
+ <a href="<?php echo esc_url( __( 'https://themehunk.com/', 'jot-shop' ) ); ?>" target="_blank">
530
+ <?php _e( 'Themehunk', 'jot-shop' ); ?>
531
+ </a>
532
+ </span>
533
+ </p><!-- .footer-copyright -->
534
+ </div>
535
+ </div>
536
+ </div>
537
+ </div>
538
+
539
+ <?php }
540
+ }
541
+ add_action( 'jot_shop_below_footer', 'jot_shop_below_footer_markup' );
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.2
7
- Stable tag: 2.6.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,6 +29,9 @@ Just upload the `themehunk-customizer.zip` to the `/wp-content/plugins/` directo
29
  == Screenshots ==
30
 
31
  == Changelog ==
 
 
 
32
  = 2.6.2 =
33
  * Amaz Store - Footer changed.
34
  * Amaz Store - Whislist and compare function changed.
4
  Tags: themehunk, customizer, oneline-lite,Testimonial,Team, service
5
  Requires at least: 5.5
6
  Tested up to: 5.8.2
7
+ Stable tag: 2.6.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
  == Screenshots ==
30
 
31
  == Changelog ==
32
+ = 2.6.3 =
33
+ * Jot Shop - Bottom footer setting added.
34
+
35
  = 2.6.2 =
36
  * Amaz Store - Footer changed.
37
  * Amaz Store - Whislist and compare function changed.
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.6.2
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.6.3
6
  Author: ThemeHunk
7
  Text Domain: themehunk-customizer
8
  Author URI: http://www.themehunk.com/