Spice Box - Version 0.7

Version Description

  1. Add Limit in innofit theme for service section
  2. Add Limit in innofit theme for team section
  3. Remove Testimonial section from innofit theme
  4. Remove CTA section from innofit theme
  5. Remove subscribe section from innofit theme
Download this release

Release Info

Developer spicethemes
Plugin Icon wp plugin Spice Box
Version 0.7
Comparing to
See all releases

Code changes from version 0.6 to 0.7

inc/innofit/customizer.php CHANGED
@@ -32,34 +32,8 @@ if ( ! function_exists( 'innofit_service_default_customize_register' ) ) :
32
  'link' => '#',
33
  'open_new_tab' => 'yes',
34
  'id' => 'customizer_repeater_56d7ea7f40b86',
35
- ),
36
- array(
37
- 'icon_value' => 'fa-android',
38
- 'title' => esc_html__( 'App Development', 'spicebox' ),
39
- 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
40
- 'choice' => 'customizer_repeater_icon',
41
- 'link' => '#',
42
- 'open_new_tab' => 'yes',
43
- 'id' => 'customizer_repeater_56d7ea7f40b88',
44
- ),
45
- array(
46
- 'icon_value' => 'fa-code',
47
- 'title' => esc_html__( 'Unique and Clean', 'spicebox' ),
48
- 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
49
- 'choice' => 'customizer_repeater_icon',
50
- 'link' => '#',
51
- 'open_new_tab' => 'yes',
52
- 'id' => 'customizer_repeater_56d7ea7f40b89',
53
- ),
54
- array(
55
- 'icon_value' => 'fa-users',
56
- 'title' => esc_html__( 'Satisfied Clients', 'spicebox' ),
57
- 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
58
- 'choice' => 'customizer_repeater_icon',
59
- 'link' => '#',
60
- 'open_new_tab' => 'yes',
61
- 'id' => 'customizer_repeater_56d7ea7f40b91',
62
- ),
63
 
64
  ) );
65
 
32
  'link' => '#',
33
  'open_new_tab' => 'yes',
34
  'id' => 'customizer_repeater_56d7ea7f40b86',
35
+ ),
36
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  ) );
39
 
inc/innofit/customizer/services-section.php CHANGED
@@ -66,7 +66,30 @@
66
  'customizer_repeater_image_control' => true,
67
  ) ) );
68
  }
 
 
 
 
 
 
 
 
 
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
  /**
72
  * Add selective refresh for Front page service section controls.
66
  'customizer_repeater_image_control' => true,
67
  ) ) );
68
  }
69
+ //plus Button
70
+ class Innofit_services__section_upgrade extends WP_Customize_Control {
71
+ public function render_content() { ?>
72
+ <h3 class="customizer_service_upgrade_section" style="display: none;"><?php _e('To add More Service? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://helpdoc.spicethemes.com/innofit-plus/homepage-section-settings-2/#innofitService' ); ?>" target="_blank">
73
+ <?php _e('Upgrade to Plus','spicebox'); ?> </a>
74
+ <?php
75
+ }
76
+ }
77
+
78
 
79
+ $wp_customize->add_setting( 'innofit_service_upgrade_to_pro', array(
80
+ 'capability' => 'edit_theme_options',
81
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
82
+ ));
83
+ $wp_customize->add_control(
84
+ new Innofit_services__section_upgrade(
85
+ $wp_customize,
86
+ 'innofit_service_upgrade_to_pro',
87
+ array(
88
+ 'section' => 'services_section',
89
+ 'settings' => 'innofit_service_upgrade_to_pro',
90
+ )
91
+ )
92
+ );
93
 
94
  /**
95
  * Add selective refresh for Front page service section controls.
inc/innofit/customizer/team-section.php CHANGED
@@ -66,7 +66,30 @@
66
  )
67
  );
68
  }
 
 
 
 
 
 
 
 
 
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  //Plus Team
71
  class WP_team_plus_Customize_Control extends WP_Customize_Control {
72
  public $type = 'new_menu';
66
  )
67
  );
68
  }
69
+ //Plus plus
70
+ class Innofit_team__section_upgrade extends WP_Customize_Control {
71
+ public function render_content() { ?>
72
+ <h3 class="customizer_team_upgrade_section" style="display: none;"><?php _e('To add More Team? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://helpdoc.spicethemes.com/innofit-plus/homepage-section-settings-2/#innofitTeam' ); ?>" target="_blank">
73
+ <?php _e('Upgrade to Plus','spicebox'); ?> </a>
74
+ <?php
75
+ }
76
+ }
77
+
78
 
79
+ $wp_customize->add_setting( 'innofit_team_upgrade_to_pro', array(
80
+ 'capability' => 'edit_theme_options',
81
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
82
+ ));
83
+ $wp_customize->add_control(
84
+ new Innofit_team__section_upgrade(
85
+ $wp_customize,
86
+ 'innofit_team_upgrade_to_pro',
87
+ array(
88
+ 'section' => 'innofit_team_section',
89
+ 'settings' => 'innofit_team_upgrade_to_pro',
90
+ )
91
+ )
92
+ );
93
  //Plus Team
94
  class WP_team_plus_Customize_Control extends WP_Customize_Control {
95
  public $type = 'new_menu';
inc/innofit/customizer/testimonial-section.php CHANGED
@@ -18,8 +18,6 @@ $wp_customize->add_section( 'testimonial_section' , array(
18
  ));
19
 
20
 
21
-
22
-
23
  //Testimonial Background Image
24
  $wp_customize->add_setting( 'testimonial_callout_background', array(
25
  'sanitize_callback' => 'esc_url_raw',
@@ -101,7 +99,30 @@ $wp_customize->add_section( 'testimonial_section' , array(
101
  ) ) );
102
  }
103
 
 
 
 
 
 
 
 
 
 
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  //Plus Team
106
  class WP_testimonial_plus_Customize_Control extends WP_Customize_Control {
107
  public $type = 'new_menu';
18
  ));
19
 
20
 
 
 
21
  //Testimonial Background Image
22
  $wp_customize->add_setting( 'testimonial_callout_background', array(
23
  'sanitize_callback' => 'esc_url_raw',
99
  ) ) );
100
  }
101
 
102
+ //Testimonial plus
103
+ class Innofit_testimonial__section_upgrade extends WP_Customize_Control {
104
+ public function render_content() { ?>
105
+ <h3 class="customizer_testimonial_upgrade_section" style="display: none;"><?php _e('To add More Testimonial? Then','spicebox'); ?><a href="<?php echo esc_url( 'https://helpdoc.spicethemes.com/innofit-plus/homepage-section-settings-2/#innofitTestimonials' ); ?>" target="_blank">
106
+ <?php _e('Upgrade to Plus','spicebox'); ?> </a>
107
+ <?php
108
+ }
109
+ }
110
+
111
 
112
+ $wp_customize->add_setting( 'innofit_testimonial_upgrade_to_pro', array(
113
+ 'capability' => 'edit_theme_options',
114
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
115
+ ));
116
+ $wp_customize->add_control(
117
+ new Innofit_testimonial__section_upgrade(
118
+ $wp_customize,
119
+ 'innofit_testimonial_upgrade_to_pro',
120
+ array(
121
+ 'section' => 'testimonial_section',
122
+ 'settings' => 'innofit_testimonial_upgrade_to_pro',
123
+ )
124
+ )
125
+ );
126
  //Plus Team
127
  class WP_testimonial_plus_Customize_Control extends WP_Customize_Control {
128
  public $type = 'new_menu';
inc/innofit/sections/innofit-services-section.php CHANGED
@@ -33,34 +33,8 @@ function innofit_services_section()
33
  'link' => '#',
34
  'open_new_tab' => 'yes',
35
  'id' => 'customizer_repeater_56d7ea7f40b86',
36
- ),
37
- array(
38
- 'icon_value' => 'fa-android',
39
- 'title' => esc_html__( 'App Development', 'spicebox' ),
40
- 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
41
- 'choice' => 'customizer_repeater_icon',
42
- 'link' => '#',
43
- 'open_new_tab' => 'yes',
44
- 'id' => 'customizer_repeater_56d7ea7f40b88',
45
- ),
46
- array(
47
- 'icon_value' => 'fa-code',
48
- 'title' => esc_html__( 'Unique and Clean', 'spicebox' ),
49
- 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
50
- 'choice' => 'customizer_repeater_icon',
51
- 'link' => '#',
52
- 'open_new_tab' => 'yes',
53
- 'id' => 'customizer_repeater_56d7ea7f40b89',
54
- ),
55
- array(
56
- 'icon_value' => 'fa-users',
57
- 'title' => esc_html__( 'Satisfied Clients', 'spicebox' ),
58
- 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
59
- 'choice' => 'customizer_repeater_icon',
60
- 'link' => '#',
61
- 'open_new_tab' => 'yes',
62
- 'id' => 'customizer_repeater_56d7ea7f40b91',
63
- ),
64
  ) );
65
  }
66
 
33
  'link' => '#',
34
  'open_new_tab' => 'yes',
35
  'id' => 'customizer_repeater_56d7ea7f40b86',
36
+ ),
37
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  ) );
39
  }
40
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: spicethemes
3
  Tags: widget, admin, widgets
4
  Requires at least: 3.3+
5
  Tested up to: 5.0.3
6
- Stable tag: 0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -119,4 +119,11 @@ This plugin create repeater controls in the customizer settings allowing you to
119
  1. Add Meta Box Feature of slider setting for chilly theme
120
 
121
  = 0.6 =
122
- 1. Update version.
 
 
 
 
 
 
 
3
  Tags: widget, admin, widgets
4
  Requires at least: 3.3+
5
  Tested up to: 5.0.3
6
+ Stable tag: 0.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
119
  1. Add Meta Box Feature of slider setting for chilly theme
120
 
121
  = 0.6 =
122
+ 1. Update version.
123
+
124
+ = 0.7 =
125
+ 1. Add Limit in innofit theme for service section
126
+ 2. Add Limit in innofit theme for team section
127
+ 3. Remove Testimonial section from innofit theme
128
+ 4. Remove CTA section from innofit theme
129
+ 5. Remove subscribe section from innofit theme
spicebox.php CHANGED
@@ -47,8 +47,39 @@ function spiceb_activate() {
47
 
48
  if ( ! function_exists( 'spiceb_innofit_customize_register' ) ) :
49
  function spiceb_innofit_customize_register($wp_customize){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
- $sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct','portfolio','instagram','map','pricing','funfact','client');
 
 
 
 
 
 
 
 
 
 
 
52
 
53
  $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
54
 
47
 
48
  if ( ! function_exists( 'spiceb_innofit_customize_register' ) ) :
49
  function spiceb_innofit_customize_register($wp_customize){
50
+
51
+
52
+ if(!empty(get_theme_mod('innofit_testimonial_content')))
53
+ {
54
+ $sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct','portfolio','instagram','map','pricing','funfact','client');
55
+ }
56
+ else
57
+ {
58
+ $sections_customizer_data = array('slider','services','about','team','news','callout','contact','subscriber','wooproduct','portfolio','instagram','map','pricing','funfact','client');
59
+ }
60
+
61
+ if(!empty(get_theme_mod('home_call_out_title')))
62
+ {
63
+ $sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct','portfolio','instagram','map','pricing','funfact','client');
64
+ }
65
+ else
66
+ {
67
+ $sections_customizer_data = array('slider','services','about','team','news','contact','subscriber','wooproduct','portfolio','instagram','map','pricing','funfact','client');
68
+ }
69
+
70
 
71
+ if(!empty(get_theme_mod('innofit_subscribe_title')))
72
+ {
73
+ $sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct','portfolio','instagram','map','pricing','funfact','client');
74
+ }
75
+ else
76
+ {
77
+ $sections_customizer_data = array('slider','services','about','team','news','contact','wooproduct','portfolio','instagram','map','pricing','funfact','client');
78
+ }
79
+
80
+
81
+
82
+
83
 
84
  $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
85