Spice Box - Version 0.3.5

Version Description

  1. Added Innofit Plus functionality.
Download this release

Release Info

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

Code changes from version 0.3.4 to 0.3.5

Files changed (32) hide show
  1. inc/innofit/{features/feature-about-section.php → customizer/about-section.php} +8 -22
  2. inc/innofit/{features/feature-callout-section.php → customizer/callout-section.php} +6 -36
  3. inc/innofit/{features/feature-contact-section.php → customizer/contact-section.php} +10 -37
  4. inc/innofit/customizer/customizer-render-callbacks.php +147 -0
  5. inc/innofit/customizer/news-section.php +84 -0
  6. inc/innofit/{features/feature-service-section.php → customizer/services-section.php} +8 -28
  7. inc/innofit/{features/feature-slider-section.php → customizer/slider-section.php} +8 -38
  8. inc/innofit/{features/feature-subscribe-section.php → customizer/subscriber-section.php} +7 -32
  9. inc/innofit/{features/feature-team-section.php → customizer/team-section.php} +5 -32
  10. inc/innofit/{features/feature-testimonial-section.php → customizer/testimonial-section.php} +4 -32
  11. inc/innofit/{features/feature-wooshop-section.php → customizer/wooproduct-section.php} +8 -29
  12. inc/innofit/default-pages/upload-media.php +1 -1
  13. inc/innofit/default-widgets/default-widget.php +2 -2
  14. inc/innofit/images/slider/slider.jpg +0 -0
  15. inc/innofit/images/subscribe/subscribe-bg.jpg +0 -0
  16. inc/innofit/images/team/team1.jpg +0 -0
  17. inc/innofit/images/team/team2.jpg +0 -0
  18. inc/innofit/images/team/team4.jpg +0 -0
  19. inc/innofit/images/testimonial/testimonial-bg.jpg +0 -0
  20. inc/innofit/images/testimonial/user1.jpg +0 -0
  21. inc/innofit/images/testimonial/user2.jpg +0 -0
  22. inc/innofit/images/testimonial/user4.jpg +0 -0
  23. inc/innofit/sections/innofit-callout-section.php +1 -1
  24. inc/innofit/sections/innofit-contact-section.php +2 -2
  25. inc/innofit/sections/innofit-news-section.php +164 -0
  26. inc/innofit/sections/{innofit-service-section.php → innofit-services-section.php} +2 -2
  27. inc/innofit/sections/innofit-subscriber-section.php +1 -1
  28. inc/innofit/sections/innofit-team-section.php +1 -1
  29. inc/innofit/sections/{innofit-testimonail-section.php → innofit-testimonial-section.php} +1 -1
  30. inc/innofit/sections/innofit-wooproduct-section.php +2 -2
  31. readme.txt +6 -2
  32. spicebox.php +54 -23
inc/innofit/{features/feature-about-section.php → customizer/about-section.php} RENAMED
@@ -1,8 +1,4 @@
1
  <?php
2
- if ( ! function_exists( 'spiceb_innofit_about_customize_register' ) ) :
3
- function spiceb_innofit_about_customize_register($wp_customize){
4
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
5
-
6
  /* About section */
7
  $wp_customize->add_section( 'about_section' , array(
8
  'title' => __('About settings', 'spicebox'),
@@ -82,29 +78,19 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
82
  )
83
  );
84
 
85
- }
86
-
87
- add_action( 'customize_register', 'spiceb_innofit_about_customize_register' );
88
- endif;
89
-
90
-
91
- /**
92
- * Add selective refresh for Front page section section controls.
93
- */
94
- function spiceb_innofit_register_home_about_section_partials( $wp_customize ){
95
 
 
96
  $wp_customize->selective_refresh->add_partial( 'about_section_content', array(
97
  'selector' => '.about .entry-subtitle',
98
  'settings' => 'about_section_content',
99
 
100
  ) );
101
 
102
- }
103
-
104
- add_action( 'customize_register', 'spiceb_innofit_register_home_about_section_partials' );
105
-
106
-
107
- function innofit_home_about_content_render_callback(){
108
- return get_theme_mod( 'about_section_content' );
109
- }
110
  ?>
1
  <?php
 
 
 
 
2
  /* About section */
3
  $wp_customize->add_section( 'about_section' , array(
4
  'title' => __('About settings', 'spicebox'),
78
  )
79
  );
80
 
81
+
82
+ /**
83
+ * Add selective refresh for Front page about section controls.
84
+ */
 
 
 
 
 
 
85
 
86
+
87
  $wp_customize->selective_refresh->add_partial( 'about_section_content', array(
88
  'selector' => '.about .entry-subtitle',
89
  'settings' => 'about_section_content',
90
 
91
  ) );
92
 
93
+
94
+
95
+
 
 
 
 
 
96
  ?>
inc/innofit/{features/feature-callout-section.php → customizer/callout-section.php} RENAMED
@@ -1,8 +1,4 @@
1
  <?php
2
- if ( ! function_exists( 'spiceb_innofit_callout_customize_register' ) ) :
3
- function spiceb_innofit_callout_customize_register($wp_customize){
4
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
5
-
6
  //Callout Section
7
  $wp_customize->add_section('home_cta_page_section',array(
8
  'title' => __('Callout section settings','spicebox'),
@@ -95,23 +91,13 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
95
  'section' => 'home_cta_page_section',
96
  )
97
  );
98
-
99
 
100
 
101
- }
102
-
103
- add_action( 'customize_register', 'spiceb_innofit_callout_customize_register' );
104
- endif;
105
-
106
-
107
- /**
108
- * Add selective refresh for Front page section section controls.
109
- */
110
- function spiceb_innofit_register_home_callout_section_partials( $wp_customize ){
111
-
112
-
113
 
114
- //Callout
115
  $wp_customize->selective_refresh->add_partial( 'home_call_out_title', array(
116
  'selector' => '.call-to-action-one h4',
117
  'settings' => 'home_call_out_title',
@@ -133,22 +119,6 @@ function spiceb_innofit_register_home_callout_section_partials( $wp_customize ){
133
  'settings' => 'home_call_out_btn_text',
134
  'render_callback' => 'home_call_out_btn_text_render_callback',
135
 
136
- ) );
137
-
138
-
139
- }
140
-
141
- add_action( 'customize_register', 'spiceb_innofit_register_home_callout_section_partials' );
142
-
143
- function home_call_out_title_render_callback() {
144
- return get_theme_mod( 'home_call_out_title' );
145
- }
146
-
147
- function home_call_out_desc_render_callback() {
148
- return get_theme_mod( 'home_call_out_desc' );
149
- }
150
-
151
- function home_call_out_btn_text_render_callback() {
152
- return get_theme_mod( 'home_call_out_btn_text' );
153
- }
154
  ?>
1
  <?php
 
 
 
 
2
  //Callout Section
3
  $wp_customize->add_section('home_cta_page_section',array(
4
  'title' => __('Callout section settings','spicebox'),
91
  'section' => 'home_cta_page_section',
92
  )
93
  );
 
94
 
95
 
96
+ /**
97
+ * Add selective refresh for Front page callout section controls.
98
+ */
99
+
 
 
 
 
 
 
 
 
100
 
 
101
  $wp_customize->selective_refresh->add_partial( 'home_call_out_title', array(
102
  'selector' => '.call-to-action-one h4',
103
  'settings' => 'home_call_out_title',
119
  'settings' => 'home_call_out_btn_text',
120
  'render_callback' => 'home_call_out_btn_text_render_callback',
121
 
122
+ ) );
123
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  ?>
inc/innofit/{features/feature-contact-section.php → customizer/contact-section.php} RENAMED
@@ -1,10 +1,5 @@
1
  <?php
2
- if ( ! function_exists( 'spiceb_innofit_contact_customize_register' ) ) :
3
- function spiceb_innofit_contact_customize_register($wp_customize){
4
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
5
-
6
-
7
- // contact form section settings
8
  $wp_customize->add_section('home_contactform_section',array(
9
  'title'=>'Contact form section settings',
10
  'description'=>'',
@@ -133,21 +128,13 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
133
  )
134
  );
135
  }
136
-
137
- }
138
-
139
- add_action( 'customize_register', 'spiceb_innofit_contact_customize_register' );
140
- endif;
141
-
142
-
143
- /**
144
- * Add selective refresh for Front page section section controls.
145
- */
146
- function spiceb_innofit_register_home_contact_section_partials( $wp_customize ){
147
-
148
-
149
 
150
- //Contact Form
 
 
 
 
 
151
  $wp_customize->selective_refresh->add_partial( 'contact_form_title_one', array(
152
  'selector' => '.contact .contact-form .subtitle',
153
  'settings' => 'contact_form_title_one',
@@ -167,22 +154,8 @@ function spiceb_innofit_register_home_contact_section_partials( $wp_customize ){
167
  'settings' => 'contact_info_content',
168
  'render_callback' => 'contact_info_content_render_callback',
169
 
170
- ) );
171
-
172
-
173
- }
174
-
175
- add_action( 'customize_register', 'spiceb_innofit_register_home_contact_section_partials' );
176
-
177
- function contact_form_title_one_render_callback() {
178
- return get_theme_mod( 'contact_form_title_one' );
179
- }
180
-
181
- function contact_form_title_two_render_callback() {
182
- return get_theme_mod( 'contact_form_title_two' );
183
- }
184
 
185
- function contact_info_content_render_callback() {
186
- return get_theme_mod( 'contact_info_content' );
187
- }
188
  ?>
1
  <?php
2
+ // contact form section settings
 
 
 
 
 
3
  $wp_customize->add_section('home_contactform_section',array(
4
  'title'=>'Contact form section settings',
5
  'description'=>'',
128
  )
129
  );
130
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
131
 
132
+
133
+ /**
134
+ * Add selective refresh for Front page contact section controls.
135
+ */
136
+
137
+
138
  $wp_customize->selective_refresh->add_partial( 'contact_form_title_one', array(
139
  'selector' => '.contact .contact-form .subtitle',
140
  'settings' => 'contact_form_title_one',
154
  'settings' => 'contact_info_content',
155
  'render_callback' => 'contact_info_content_render_callback',
156
 
157
+ ) );
158
+
159
+
 
 
 
 
 
 
 
 
 
 
 
160
 
 
 
 
161
  ?>
inc/innofit/customizer/customizer-render-callbacks.php ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * slider section render callbacks.
4
+ */
5
+
6
+ function spiceb_innofit_slider_section_title_render_callback() {
7
+ return get_theme_mod( 'home_slider_title' );
8
+ }
9
+
10
+ function spiceb_innofit_slider_section_discription_render_callback() {
11
+ return get_theme_mod( 'home_slider_discription' );
12
+ }
13
+
14
+ function spiceb_innofit_slider_btn_render_callback() {
15
+ return get_theme_mod( 'home_slider_btn_txt' );
16
+ }
17
+
18
+
19
+
20
+ /**
21
+ * about section render callbacks.
22
+ */
23
+
24
+
25
+ function innofit_home_about_content_render_callback(){
26
+ return get_theme_mod( 'about_section_content' );
27
+ }
28
+
29
+
30
+ /**
31
+ * service section render callbacks.
32
+ */
33
+
34
+
35
+ function innofit_home_service_section_title_render_callback() {
36
+ return get_theme_mod( 'home_service_section_title' );
37
+ }
38
+
39
+ function innofit_home_service_section_discription_render_callback() {
40
+ return get_theme_mod( 'home_service_section_discription' );
41
+ }
42
+
43
+
44
+ /**
45
+ * shop section render callbacks.
46
+ */
47
+
48
+
49
+ function home_shop_section_title_render_callback() {
50
+ return get_theme_mod( 'home_shop_section_title' );
51
+ }
52
+
53
+ function home_shop_section_discription_render_callback() {
54
+ return get_theme_mod( 'home_shop_section_discription' );
55
+ }
56
+
57
+
58
+ /**
59
+ * testimonial section render callbacks.
60
+ */
61
+
62
+
63
+ function home_testimonial_section_title_render_callback() {
64
+ return get_theme_mod( 'home_testimonial_section_title' );
65
+ }
66
+
67
+ function home_testimonial_section_discription_render_callback() {
68
+ return get_theme_mod( 'home_testimonial_section_discription' );
69
+ }
70
+
71
+
72
+ /**
73
+ * team section render callbacks.
74
+ */
75
+
76
+
77
+ function home_team_section_title_render_callback() {
78
+ return get_theme_mod( 'home_team_section_title' );
79
+ }
80
+
81
+ function home_team_section_discription_render_callback() {
82
+ return get_theme_mod( 'home_team_section_discription' );
83
+ }
84
+
85
+
86
+ /**
87
+ * news section render callbacks.
88
+ */
89
+
90
+ function home_news_section_title_render_callback() {
91
+ return get_theme_mod( 'home_news_section_title' );
92
+ }
93
+
94
+ function home_news_section_discription_render_callback() {
95
+ return get_theme_mod( 'home_news_section_discription' );
96
+ }
97
+
98
+ /**
99
+ * callout section render callbacks.
100
+ */
101
+
102
+
103
+ function home_call_out_title_render_callback() {
104
+ return get_theme_mod( 'home_call_out_title' );
105
+ }
106
+
107
+ function home_call_out_desc_render_callback() {
108
+ return get_theme_mod( 'home_call_out_desc' );
109
+ }
110
+
111
+ function home_call_out_btn_text_render_callback() {
112
+ return get_theme_mod( 'home_call_out_btn_text' );
113
+ }
114
+
115
+
116
+ /**
117
+ * contact form section render callbacks.
118
+ */
119
+
120
+
121
+ function contact_form_title_one_render_callback() {
122
+ return get_theme_mod( 'contact_form_title_one' );
123
+ }
124
+
125
+ function contact_form_title_two_render_callback() {
126
+ return get_theme_mod( 'contact_form_title_two' );
127
+ }
128
+
129
+ function contact_info_content_render_callback() {
130
+ return get_theme_mod( 'contact_info_content' );
131
+ }
132
+
133
+
134
+ /**
135
+ * subscribe section render callbacks.
136
+ */
137
+
138
+
139
+ function subscribe_title_content_render_callback() {
140
+ return get_theme_mod( 'innofit_subscribe_title' );
141
+ }
142
+
143
+ function subscribe_subtitle_content_render_callback() {
144
+ return get_theme_mod( 'innofit_subscribe_subtitle' );
145
+ }
146
+
147
+ ?>
inc/innofit/customizer/news-section.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //Latest News Section
3
+ $wp_customize->add_section('innofit_latest_news_section',array(
4
+ 'title' => __('Latest News settings','innofit'),
5
+ 'panel' => 'section_settings',
6
+ 'priority' => 11,
7
+ ));
8
+
9
+
10
+ // Enable news section
11
+ $wp_customize->add_setting( 'latest_news_section_enable' , array( 'default' => 'on', 'sanitize_callback' => 'innofit_sanitize_radio',) );
12
+ $wp_customize->add_control( 'latest_news_section_enable' , array(
13
+ 'label' => __( 'Enable Home News section', 'innofit' ),
14
+ 'section' => 'innofit_latest_news_section',
15
+ 'type' => 'radio',
16
+ 'choices' => array(
17
+ 'on'=>__('ON', 'innofit'),
18
+ 'off'=>__('OFF', 'innofit')
19
+ )
20
+ ));
21
+
22
+ // News section title
23
+ $wp_customize->add_setting( 'home_news_section_title',array(
24
+ 'capability' => 'edit_theme_options',
25
+ 'default' => __('Latest News','innofit'),
26
+ 'sanitize_callback' => 'spiceb_innofit_home_page_sanitize_text',
27
+ 'transport' => $selective_refresh,
28
+ ));
29
+ $wp_customize->add_control( 'home_news_section_title',array(
30
+ 'label' => __('Title','innofit'),
31
+ 'section' => 'innofit_latest_news_section',
32
+ 'type' => 'text',
33
+ ));
34
+
35
+ //News section discription
36
+ $wp_customize->add_setting( 'home_news_section_discription',array(
37
+ 'default'=> __('From our blog','innofit'),
38
+ 'sanitize_callback' => 'spiceb_innofit_home_page_sanitize_text',
39
+ 'transport' => $selective_refresh,
40
+ ));
41
+ $wp_customize->add_control( 'home_news_section_discription',array(
42
+ 'label' => __('Description','innofit'),
43
+ 'section' => 'innofit_latest_news_section',
44
+ 'type' => 'textarea',
45
+ ));
46
+
47
+ // enable / disable meta section
48
+ $wp_customize->add_setting(
49
+ 'home_meta_section_settings',
50
+ array('capability' => 'edit_theme_options',
51
+ 'default' => true,
52
+ 'sanitize_callback' => 'innofit_sanitize_checkbox',
53
+
54
+ ));
55
+ $wp_customize->add_control(
56
+ 'home_meta_section_settings',
57
+ array(
58
+ 'type' => 'checkbox',
59
+ 'label' => __('Enable post meta in blog section','innofit'),
60
+ 'section' => 'innofit_latest_news_section',
61
+ )
62
+ );
63
+
64
+
65
+ /**
66
+ * Add selective refresh for Front page testimonial section controls.
67
+ */
68
+
69
+ $wp_customize->selective_refresh->add_partial( 'home_news_section_title', array(
70
+ 'selector' => '.home-blog .section-header p',
71
+ 'settings' => 'home_news_section_title',
72
+ 'render_callback' => 'home_news_section_title_render_callback',
73
+
74
+ ) );
75
+
76
+ $wp_customize->selective_refresh->add_partial( 'home_news_section_discription', array(
77
+ 'selector' => '.home-blog .section-header h1',
78
+ 'settings' => 'home_news_section_discription',
79
+ 'render_callback' => 'home_news_section_discription_render_callback',
80
+
81
+ ) );
82
+
83
+
84
+ ?>
inc/innofit/{features/feature-service-section.php → customizer/services-section.php} RENAMED
@@ -1,8 +1,4 @@
1
  <?php
2
- if ( ! function_exists( 'spiceb_innofit_service_customize_register' ) ) :
3
- function spiceb_innofit_service_customize_register($wp_customize){
4
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
5
-
6
  /* Services section */
7
  $wp_customize->add_section( 'services_section' , array(
8
  'title' => __('Services settings', 'spicebox'),
@@ -70,19 +66,13 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
70
  'customizer_repeater_image_control' => true,
71
  ) ) );
72
  }
73
-
74
- }
75
-
76
- add_action( 'customize_register', 'spiceb_innofit_service_customize_register' );
77
- endif;
78
-
79
-
80
- /**
81
- * Add selective refresh for Front page section section controls.
82
- */
83
- function spiceb_innofit_register_home_service_section_partials( $wp_customize ){
84
-
85
- //Service section
86
  $wp_customize->selective_refresh->add_partial( 'home_service_section_title', array(
87
  'selector' => '.services .section-header .section-title',
88
  'settings' => 'home_service_section_title',
@@ -102,16 +92,6 @@ function spiceb_innofit_register_home_service_section_partials( $wp_customize ){
102
  'settings' => 'innofit_service_content',
103
  ) );
104
 
105
- }
106
-
107
- add_action( 'customize_register', 'spiceb_innofit_register_home_service_section_partials' );
108
-
109
-
110
- function innofit_home_service_section_title_render_callback() {
111
- return get_theme_mod( 'home_service_section_title' );
112
- }
113
 
114
- function innofit_home_service_section_discription_render_callback() {
115
- return get_theme_mod( 'home_service_section_discription' );
116
- }
117
  ?>
1
  <?php
 
 
 
 
2
  /* Services section */
3
  $wp_customize->add_section( 'services_section' , array(
4
  'title' => __('Services settings', 'spicebox'),
66
  'customizer_repeater_image_control' => true,
67
  ) ) );
68
  }
69
+
70
+
71
+ /**
72
+ * Add selective refresh for Front page service section controls.
73
+ */
74
+
75
+
 
 
 
 
 
 
76
  $wp_customize->selective_refresh->add_partial( 'home_service_section_title', array(
77
  'selector' => '.services .section-header .section-title',
78
  'settings' => 'home_service_section_title',
92
  'settings' => 'innofit_service_content',
93
  ) );
94
 
95
+
 
 
 
 
 
 
 
96
 
 
 
 
97
  ?>
inc/innofit/{features/feature-slider-section.php → customizer/slider-section.php} RENAMED
@@ -1,10 +1,7 @@
1
- <?php if ( ! function_exists( 'spiceb_innofit_slider_customize_register' ) ) :
2
- function spiceb_innofit_slider_customize_register($wp_customize){
3
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
-
5
  /* Slider Section */
6
  $wp_customize->add_section( 'slider_section' , array(
7
- 'title' => __('Slider settings', 'spicebox'),
8
  'panel' => 'section_settings',
9
  'priority' => 1,
10
  ) );
@@ -12,7 +9,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
12
  // Enable slider
13
  $wp_customize->add_setting( 'home_page_slider_enabled' , array( 'default' => 'on') );
14
  $wp_customize->add_control( 'home_page_slider_enabled' , array(
15
- 'label' => __( 'Enable slider', 'spicebox' ),
16
  'section' => 'slider_section',
17
  'type' => 'radio',
18
  'choices' => array(
@@ -126,22 +123,12 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
126
  'label' => __('Open link in new tab', 'spicebox'),
127
  'section' => 'slider_section',
128
  'type' => 'checkbox',
129
- ));
130
-
131
 
132
 
133
- }
134
-
135
- add_action( 'customize_register', 'spiceb_innofit_slider_customize_register' );
136
- endif;
137
-
138
-
139
- /**
140
- * Add selective refresh for Front page section section controls.
141
- */
142
- function spiceb_innofit_register_home_slider_section_partials( $wp_customize ){
143
-
144
-
145
 
146
  $wp_customize->selective_refresh->add_partial( 'home_slider_image', array(
147
  'selector' => 'main-slider .item',
@@ -149,7 +136,6 @@ function spiceb_innofit_register_home_slider_section_partials( $wp_customize ){
149
 
150
  ) );
151
 
152
- //Slider section
153
  $wp_customize->selective_refresh->add_partial( 'home_slider_title', array(
154
  'selector' => '.caption-content .title',
155
  'settings' => 'home_slider_title',
@@ -170,20 +156,4 @@ function spiceb_innofit_register_home_slider_section_partials( $wp_customize ){
170
  'render_callback' => 'spiceb_innofit_slider_btn_render_callback',
171
 
172
  ) );
173
- }
174
-
175
- add_action( 'customize_register', 'spiceb_innofit_register_home_slider_section_partials' );
176
-
177
-
178
- function spiceb_innofit_slider_section_title_render_callback() {
179
- return get_theme_mod( 'home_slider_title' );
180
- }
181
-
182
- function spiceb_innofit_slider_section_discription_render_callback() {
183
- return get_theme_mod( 'home_slider_discription' );
184
- }
185
-
186
- function spiceb_innofit_slider_btn_render_callback() {
187
- return get_theme_mod( 'home_slider_btn_txt' );
188
- }
189
-
1
+ <?php
 
 
 
2
  /* Slider Section */
3
  $wp_customize->add_section( 'slider_section' , array(
4
+ 'title' => __('Hero settings', 'spicebox'),
5
  'panel' => 'section_settings',
6
  'priority' => 1,
7
  ) );
9
  // Enable slider
10
  $wp_customize->add_setting( 'home_page_slider_enabled' , array( 'default' => 'on') );
11
  $wp_customize->add_control( 'home_page_slider_enabled' , array(
12
+ 'label' => __( 'Enable Hero Section', 'spicebox' ),
13
  'section' => 'slider_section',
14
  'type' => 'radio',
15
  'choices' => array(
123
  'label' => __('Open link in new tab', 'spicebox'),
124
  'section' => 'slider_section',
125
  'type' => 'checkbox',
126
+ ));
 
127
 
128
 
129
+ /**
130
+ * Add selective refresh for Front page slider section controls.
131
+ */
 
 
 
 
 
 
 
 
 
132
 
133
  $wp_customize->selective_refresh->add_partial( 'home_slider_image', array(
134
  'selector' => 'main-slider .item',
136
 
137
  ) );
138
 
 
139
  $wp_customize->selective_refresh->add_partial( 'home_slider_title', array(
140
  'selector' => '.caption-content .title',
141
  'settings' => 'home_slider_title',
156
  'render_callback' => 'spiceb_innofit_slider_btn_render_callback',
157
 
158
  ) );
159
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/innofit/{features/feature-subscribe-section.php → customizer/subscriber-section.php} RENAMED
@@ -1,8 +1,4 @@
1
  <?php
2
- if ( ! function_exists( 'spiceb_innofit_subscribe_customize_register' ) ) :
3
- function spiceb_innofit_subscribe_customize_register($wp_customize){
4
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
5
-
6
  // Subscriber section settings
7
  $wp_customize->add_section('home_subscriber_section',array(
8
  'title'=>'Subscriber section settings',
@@ -155,21 +151,12 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
155
  )
156
  );
157
  }
158
-
159
-
160
-
161
- }
162
-
163
- add_action( 'customize_register', 'spiceb_innofit_subscribe_customize_register' );
164
- endif;
165
-
166
-
167
- /**
168
- * Add selective refresh for Front page section section controls.
169
- */
170
- function spiceb_innofit_register_home_subscribe_section_partials( $wp_customize ){
171
-
172
-
173
 
174
  $wp_customize->selective_refresh->add_partial( 'innofit_subscribe_title', array(
175
  'selector' => '.subscribe-newsletter .section-title',
@@ -185,18 +172,6 @@ function spiceb_innofit_register_home_subscribe_section_partials( $wp_customize
185
  'render_callback' => 'subscribe_subtitle_content_render_callback',
186
 
187
  ) );
188
-
189
-
190
- }
191
-
192
- add_action( 'customize_register', 'spiceb_innofit_register_home_subscribe_section_partials' );
193
-
194
-
195
- function subscribe_title_content_render_callback() {
196
- return get_theme_mod( 'innofit_subscribe_title' );
197
- }
198
 
199
- function subscribe_subtitle_content_render_callback() {
200
- return get_theme_mod( 'innofit_subscribe_subtitle' );
201
- }
202
  ?>
1
  <?php
 
 
 
 
2
  // Subscriber section settings
3
  $wp_customize->add_section('home_subscriber_section',array(
4
  'title'=>'Subscriber section settings',
151
  )
152
  );
153
  }
154
+
155
+
156
+ /**
157
+ * Add selective refresh for Front page subscribe section controls.
158
+ */
159
+
 
 
 
 
 
 
 
 
 
160
 
161
  $wp_customize->selective_refresh->add_partial( 'innofit_subscribe_title', array(
162
  'selector' => '.subscribe-newsletter .section-title',
172
  'render_callback' => 'subscribe_subtitle_content_render_callback',
173
 
174
  ) );
175
+
 
 
 
 
 
 
 
 
 
176
 
 
 
 
177
  ?>
inc/innofit/{features/feature-team-section.php → customizer/team-section.php} RENAMED
@@ -1,8 +1,4 @@
1
  <?php
2
- if ( ! function_exists( 'spiceb_innofit_team_customize_register' ) ) :
3
- function spiceb_innofit_team_customize_register($wp_customize){
4
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
5
-
6
  //Team Section
7
  $wp_customize->add_section('innofit_team_section',array(
8
  'title' => __('Team settings','spicebox'),
@@ -70,23 +66,13 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
70
  )
71
  );
72
  }
73
-
74
-
75
-
76
- }
77
-
78
- add_action( 'customize_register', 'spiceb_innofit_team_customize_register' );
79
- endif;
80
-
81
-
82
- /**
83
- * Add selective refresh for Front page section section controls.
84
- */
85
- function spiceb_innofit_register_home_team_section_partials( $wp_customize ){
86
-
87
 
 
 
 
 
88
 
89
- //Team
90
  $wp_customize->selective_refresh->add_partial( 'home_team_section_title', array(
91
  'selector' => '.team-members .section-subtitle',
92
  'settings' => 'home_team_section_title',
@@ -100,18 +86,5 @@ function spiceb_innofit_register_home_team_section_partials( $wp_customize ){
100
  'render_callback' => 'home_team_section_discription_render_callback',
101
 
102
  ) );
103
-
104
-
105
- }
106
-
107
- add_action( 'customize_register', 'spiceb_innofit_register_home_team_section_partials' );
108
-
109
- function home_team_section_title_render_callback() {
110
- return get_theme_mod( 'home_team_section_title' );
111
- }
112
-
113
- function home_team_section_discription_render_callback() {
114
- return get_theme_mod( 'home_team_section_discription' );
115
- }
116
 
117
  ?>
1
  <?php
 
 
 
 
2
  //Team Section
3
  $wp_customize->add_section('innofit_team_section',array(
4
  'title' => __('Team settings','spicebox'),
66
  )
67
  );
68
  }
69
+
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
+ /**
72
+ * Add selective refresh for Front page team section controls.
73
+ */
74
+
75
 
 
76
  $wp_customize->selective_refresh->add_partial( 'home_team_section_title', array(
77
  'selector' => '.team-members .section-subtitle',
78
  'settings' => 'home_team_section_title',
86
  'render_callback' => 'home_team_section_discription_render_callback',
87
 
88
  ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
  ?>
inc/innofit/{features/feature-testimonial-section.php → customizer/testimonial-section.php} RENAMED
@@ -1,8 +1,4 @@
1
  <?php
2
- if ( ! function_exists( 'spiceb_innofit_testimonial_customize_register' ) ) :
3
- function spiceb_innofit_testimonial_customize_register($wp_customize){
4
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
5
-
6
  $wp_customize->add_section( 'testimonial_section' , array(
7
  'title' => __('Testimonials settings', 'spicebox'),
8
  'panel' => 'section_settings',
@@ -104,23 +100,12 @@ $wp_customize->add_section( 'testimonial_section' , array(
104
  'customizer_repeater_designation_control' => true,
105
  ) ) );
106
  }
107
-
108
-
109
-
110
- }
111
-
112
- add_action( 'customize_register', 'spiceb_innofit_testimonial_customize_register' );
113
- endif;
114
-
115
-
116
- /**
117
- * Add selective refresh for Front page section section controls.
118
- */
119
- function spiceb_innofit_register_home_testimonial_section_partials( $wp_customize ){
120
-
121
 
 
 
 
 
122
 
123
- //Testimonial
124
  $wp_customize->selective_refresh->add_partial( 'home_testimonial_section_title', array(
125
  'selector' => '.testimonial-wrapper .section-title',
126
  'settings' => 'home_testimonial_section_title',
@@ -134,18 +119,5 @@ function spiceb_innofit_register_home_testimonial_section_partials( $wp_customiz
134
  'render_callback' => 'home_testimonial_section_discription_render_callback',
135
 
136
  ) );
137
-
138
-
139
- }
140
-
141
- add_action( 'customize_register', 'spiceb_innofit_register_home_testimonial_section_partials' );
142
-
143
-
144
- function home_testimonial_section_title_render_callback() {
145
- return get_theme_mod( 'home_testimonial_section_title' );
146
- }
147
 
148
- function home_testimonial_section_discription_render_callback() {
149
- return get_theme_mod( 'home_testimonial_section_discription' );
150
- }
151
  ?>
1
  <?php
 
 
 
 
2
  $wp_customize->add_section( 'testimonial_section' , array(
3
  'title' => __('Testimonials settings', 'spicebox'),
4
  'panel' => 'section_settings',
100
  'customizer_repeater_designation_control' => true,
101
  ) ) );
102
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
 
104
+
105
+ /**
106
+ * Add selective refresh for Front page testimonial section controls.
107
+ */
108
 
 
109
  $wp_customize->selective_refresh->add_partial( 'home_testimonial_section_title', array(
110
  'selector' => '.testimonial-wrapper .section-title',
111
  'settings' => 'home_testimonial_section_title',
119
  'render_callback' => 'home_testimonial_section_discription_render_callback',
120
 
121
  ) );
 
 
 
 
 
 
 
 
 
 
122
 
 
 
 
123
  ?>
inc/innofit/{features/feature-wooshop-section.php → customizer/wooproduct-section.php} RENAMED
@@ -1,8 +1,4 @@
1
  <?php
2
- function spiceb_innofit_wooshop_customizer( $wp_customize ) {
3
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
- /* Portfolio Section */
5
- /* Portfolio Section */
6
  $wp_customize->add_section('innofit_shop_section',array(
7
  'title' => __('Home Shop settings','spicebox'),
8
  'panel' => 'section_settings',
@@ -42,18 +38,13 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
42
  'section' => 'innofit_shop_section',
43
  'type' => 'textarea',
44
  ));
45
-
46
-
47
-
48
- }
49
- add_action( 'customize_register', 'spiceb_innofit_wooshop_customizer' );
50
-
51
-
52
- /**
53
- * Add selective refresh for Front page section section controls.
54
- */
55
- function spiceb_innofit_register_home_project_section_partials( $wp_customize ){
56
-
57
  $wp_customize->selective_refresh->add_partial( 'home_shop_section_title', array(
58
  'selector' => '.shop .section-subtitle',
59
  'settings' => 'home_shop_section_title',
@@ -67,17 +58,5 @@ function spiceb_innofit_register_home_project_section_partials( $wp_customize ){
67
  'render_callback' => 'home_shop_section_discription_render_callback',
68
 
69
  ) );
70
-
71
- }
72
-
73
- add_action( 'customize_register', 'spiceb_innofit_register_home_project_section_partials' );
74
-
75
-
76
- function home_shop_section_title_render_callback() {
77
- return get_theme_mod( 'home_shop_section_title' );
78
- }
79
-
80
- function home_shop_section_discription_render_callback() {
81
- return get_theme_mod( 'home_shop_section_discription' );
82
- }
83
  ?>
1
  <?php
 
 
 
 
2
  $wp_customize->add_section('innofit_shop_section',array(
3
  'title' => __('Home Shop settings','spicebox'),
4
  'panel' => 'section_settings',
38
  'section' => 'innofit_shop_section',
39
  'type' => 'textarea',
40
  ));
41
+
42
+
43
+ /**
44
+ * Add selective refresh for Front page shop section controls.
45
+ */
46
+
47
+
 
 
 
 
 
48
  $wp_customize->selective_refresh->add_partial( 'home_shop_section_title', array(
49
  'selector' => '.shop .section-subtitle',
50
  'settings' => 'home_shop_section_title',
58
  'render_callback' => 'home_shop_section_discription_render_callback',
59
 
60
  ) );
61
+
 
 
 
 
 
 
 
 
 
 
 
 
62
  ?>
inc/innofit/default-pages/upload-media.php CHANGED
@@ -28,4 +28,4 @@ if (!$upload_file['error']) {
28
  }
29
 
30
  update_option( 'innofit_media_id', $ImageId );
31
- ?>
28
  }
29
 
30
  update_option( 'innofit_media_id', $ImageId );
31
+ ?>
inc/innofit/default-widgets/default-widget.php CHANGED
@@ -6,7 +6,7 @@ $activate = array(
6
  'archives-1',
7
  ),
8
  'footer_widget_area_left' => array(
9
- 'st_featured_latest_news-2',
10
  ),
11
  'footer_widget_area_right' => array(
12
  'categories-2',
@@ -23,7 +23,7 @@ $activate = array(
23
 
24
  /* the default titles will appear */
25
 
26
- update_option('widget_st_featured_latest_news', array(
27
  1 => array('title' => 'Latest News'),
28
  2 => array('title' => 'Latest News')));
29
 
6
  'archives-1',
7
  ),
8
  'footer_widget_area_left' => array(
9
+ 'innofit_featured_latest_news-2',
10
  ),
11
  'footer_widget_area_right' => array(
12
  'categories-2',
23
 
24
  /* the default titles will appear */
25
 
26
+ update_option('widget_innofit_featured_latest_news', array(
27
  1 => array('title' => 'Latest News'),
28
  2 => array('title' => 'Latest News')));
29
 
inc/innofit/images/slider/slider.jpg CHANGED
Binary file
inc/innofit/images/subscribe/subscribe-bg.jpg CHANGED
Binary file
inc/innofit/images/team/team1.jpg CHANGED
Binary file
inc/innofit/images/team/team2.jpg CHANGED
Binary file
inc/innofit/images/team/team4.jpg CHANGED
Binary file
inc/innofit/images/testimonial/testimonial-bg.jpg CHANGED
Binary file
inc/innofit/images/testimonial/user1.jpg CHANGED
Binary file
inc/innofit/images/testimonial/user2.jpg CHANGED
Binary file
inc/innofit/images/testimonial/user4.jpg ADDED
Binary file
inc/innofit/sections/innofit-callout-section.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- add_action('innofit_callout','innofit_callout_section');
3
  function innofit_callout_section()
4
  {
5
  $cta_section_enable = get_theme_mod('cta_section_enable','on');
1
  <?php
2
+ add_action('innofit_callout_action','innofit_callout_section');
3
  function innofit_callout_section()
4
  {
5
  $cta_section_enable = get_theme_mod('cta_section_enable','on');
inc/innofit/sections/innofit-contact-section.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
- add_action('innofit_contact_form_section_hook','innofit_contact_form_section');
3
- function innofit_contact_form_section() {
4
  $contact_form_enable = get_theme_mod('contact_form_enable','on');
5
  if($contact_form_enable !='off')
6
  {
1
  <?php
2
+ add_action('innofit_contact_action','innofit_contact_section');
3
+ function innofit_contact_section() {
4
  $contact_form_enable = get_theme_mod('contact_form_enable','on');
5
  if($contact_form_enable !='off')
6
  {
inc/innofit/sections/innofit-news-section.php ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ add_action('innofit_news_action','innofit_news_section');
3
+ function innofit_news_section() {
4
+ $latest_news_section_enable = get_theme_mod('latest_news_section_enable','on');
5
+ if($latest_news_section_enable !='off')
6
+ {
7
+ ?>
8
+ <!-- Latest News section -->
9
+ <section class="section-module home-blog" id="blog">
10
+ <div class="clearfix"></div>
11
+ <div class="container-fluid">
12
+ <div class="container">
13
+ <?php
14
+ $home_news_section_title = get_theme_mod('home_news_section_title',__('Latest News','innofit'));
15
+ $home_news_section_discription = get_theme_mod('home_news_section_discription',__('From our blog','innofit'));
16
+ $home_meta_section_settings = get_theme_mod('home_meta_section_settings', true);
17
+
18
+ if(($home_news_section_title) || ($home_news_section_discription)!='' ) {
19
+ ?>
20
+ <!-- Section Title -->
21
+ <div class="row">
22
+ <div class="col-md-12">
23
+ <div class="section-header">
24
+ <?php if($home_news_section_title) {?>
25
+ <p class="section-subtitle"><?php echo $home_news_section_title; ?></p>
26
+ <?php } ?>
27
+ <?php if($home_news_section_discription) {?>
28
+ <h1 class="section-title"><?php echo $home_news_section_discription; ?></h1>
29
+ <?php } ?>
30
+ </div>
31
+ </div>
32
+ </div>
33
+
34
+
35
+ <!-- /Section Title -->
36
+ <?php } ?>
37
+
38
+ </div>
39
+
40
+ <div class="row">
41
+
42
+ <?php
43
+
44
+ $args = array( 'post_type' => 'post', 'posts_per_page' => 3, 'post__not_in'=>get_option("sticky_posts")) ;
45
+ query_posts( $args );
46
+ if(query_posts( $args ))
47
+ {
48
+ while(have_posts()):the_post();
49
+ {
50
+
51
+ $meta_facebook_url =sanitize_text_field( get_post_meta( get_the_ID(), 'meta_facebook_url', true ));
52
+ $meta_twitter_url =sanitize_text_field( get_post_meta( get_the_ID(), 'meta_twitter_url', true ));
53
+ $meta_google_url =sanitize_text_field( get_post_meta( get_the_ID(), 'meta_google_url', true ));
54
+ $meta_linkedin_url =sanitize_text_field( get_post_meta( get_the_ID(), 'meta_linkedin_url', true ));
55
+ $meta_youtube_url =sanitize_text_field( get_post_meta( get_the_ID(), 'meta_youtube_url', true ));
56
+ $meta_instagram_url =sanitize_text_field( get_post_meta( get_the_ID(), 'meta_instagram_url', true ));
57
+ $meta_pinterest_url =sanitize_text_field( get_post_meta( get_the_ID(), 'meta_pinterest_url', true ));
58
+ $social_media_target =sanitize_text_field( get_post_meta( get_the_ID(), 'social_media_target', true ));
59
+
60
+ ?>
61
+
62
+ <div class="col-md-4 col-sm-6 col-xs-12">
63
+
64
+ <article class="post">
65
+ <?php if(has_post_thumbnail()){ ?>
66
+ <figure class="post-thumbnail">
67
+ <?php $defalt_arg =array('class' => "img-responsive");?>
68
+
69
+ <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('',$defalt_arg);?></a>
70
+
71
+ </figure>
72
+ <?php } ?>
73
+ <div class="post-content">
74
+
75
+ <?php if($home_meta_section_settings == true){?>
76
+ <div class="entry-meta">
77
+ <span class="entry-date">
78
+ <a href="<?php echo get_month_link(get_post_time('Y'),get_post_time('m')); ?>"><time>
79
+ <?php echo get_the_date('M j, Y'); ?></time></a>
80
+ </span>
81
+
82
+ <?php $cat_list = get_the_category_list();
83
+ if(!empty($cat_list)) { ?>
84
+ <span class="cat-links"><a href="<?php the_permalink(); ?>"><?php the_category(', '); ?></a></span>
85
+ <?php } $tag_list = get_the_tag_list();
86
+ if(!empty($tag_list)) { ?>
87
+ <span class="tag-links"><?php the_tags('', '', ''); ?></span>
88
+ <?php } ?>
89
+ </div>
90
+ <?php } ?>
91
+
92
+
93
+ <header class="entry-header">
94
+ <h4 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h4>
95
+ </header>
96
+ <div class="entry-content">
97
+ <?php the_content(__('Read More','innofit')); ?>
98
+ </div>
99
+
100
+ <?php if($home_meta_section_settings == true){?>
101
+
102
+ <hr>
103
+ <div class="item-meta">
104
+
105
+
106
+ <div class="pull-left v-center">
107
+
108
+ <a class="avatar" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) );?>"><?php echo get_avatar( get_the_author_meta('user_email'), $size = '40'); ?></a>
109
+
110
+ <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) );?>"><?php echo 'By ';?><?php echo get_the_author();?></a>
111
+ </div>
112
+
113
+
114
+ <div class="pull-right">
115
+ <ul class="small-social-icon">
116
+
117
+ <?php if(get_post_meta( get_the_ID(),'meta_facebook_url', true )){ ?>
118
+ <li><a class="facebook-f" <?php if(!empty($social_media_target)){ echo 'target="_blank"'; } ?> href="<?php echo esc_url($meta_facebook_url); ?>"><i class="fa fa-facebook-f"></i></a></li>
119
+ <?php } ?>
120
+
121
+ <?php if(get_post_meta( get_the_ID(),'meta_twitter_url', true )){ ?>
122
+ <li><a class="twitter" <?php if(!empty($social_media_target)){ echo 'target="_blank"'; } ?> href="<?php echo esc_url($meta_twitter_url); ?>"><i class="fa fa-twitter"></i></a></li>
123
+ <?php } ?>
124
+
125
+ <?php if(get_post_meta( get_the_ID(),'meta_google_url', true )){ ?>
126
+ <li><a class="google" <?php if(!empty($social_media_target)){ echo 'target="_blank"'; } ?> href="<?php echo esc_url($meta_google_url); ?>"><i class="fa fa-google-plus"></i></a></li>
127
+ <?php } ?>
128
+
129
+ <?php if(get_post_meta( get_the_ID(),'meta_linkedin_url', true )){ ?>
130
+ <li><a class="linkedin" <?php if(!empty($social_media_target)){ echo 'target="_blank"'; } ?> href="<?php echo esc_url($meta_linkedin_url); ?>"><i class="fa fa-linkedin"></i></a></li>
131
+ <?php } ?>
132
+
133
+ <?php if(get_post_meta( get_the_ID(),'meta_youtube_url', true )){ ?>
134
+ <li><a class="youtube" <?php if(!empty($social_media_target)){ echo 'target="_blank"'; } ?> href="<?php echo esc_url($meta_youtube_url); ?>"><i class="fa fa-youtube"></i></a></li>
135
+ <?php } ?>
136
+
137
+ <?php if(get_post_meta( get_the_ID(),'meta_instagram_url', true )){ ?>
138
+ <li><a class="instagram" <?php if(!empty($social_media_target)){ echo 'target="_blank"'; } ?> href="<?php echo esc_url($meta_instagram_url); ?>"><i class="fa fa-instagram"></i></a></li>
139
+ <?php } ?>
140
+
141
+ <?php if(get_post_meta( get_the_ID(),'meta_pinterest_url', true )){ ?>
142
+ <li><a class="pinterest-p" <?php if(!empty($social_media_target)){ echo 'target="_blank"'; } ?> href="<?php echo esc_url($meta_pinterest_url); ?>"><i class="fa fa-pinterest-p"></i></a></li>
143
+ <?php } ?>
144
+
145
+
146
+ </ul>
147
+ </div>
148
+
149
+ </div>
150
+
151
+ <?php } ?>
152
+ </div>
153
+ </article>
154
+
155
+ </div>
156
+
157
+ <?php } endwhile; } ?>
158
+
159
+ </div>
160
+ </div>
161
+ </section>
162
+ <!-- /Latest News Section -->
163
+ <div class="clearfix"></div>
164
+ <?php } }?>
inc/innofit/sections/{innofit-service-section.php → innofit-services-section.php} RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
- add_action('innofit_service_action','innofit_service_section');
3
 
4
- function innofit_service_section()
5
  {
6
  $service_data = get_theme_mod('innofit_service_content');
7
  if(empty($service_data))
1
  <?php
2
+ add_action('innofit_services_action','innofit_services_section');
3
 
4
+ function innofit_services_section()
5
  {
6
  $service_data = get_theme_mod('innofit_service_content');
7
  if(empty($service_data))
inc/innofit/sections/innofit-subscriber-section.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /* Call the action for team section */
3
- add_action('innofit_subscriber','innofit_subscriber_section');
4
  /* Function for team section*/
5
  function innofit_subscriber_section()
6
  {
1
  <?php
2
  /* Call the action for team section */
3
+ add_action('innofit_subscriber_action','innofit_subscriber_section');
4
  /* Function for team section*/
5
  function innofit_subscriber_section()
6
  {
inc/innofit/sections/innofit-team-section.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /* Call the action for team section */
3
- add_action('innofit_team','innofit_team_section');
4
  /* Function for team section*/
5
  function innofit_team_section()
6
  {
1
  <?php
2
  /* Call the action for team section */
3
+ add_action('innofit_team_action','innofit_team_section');
4
  /* Function for team section*/
5
  function innofit_team_section()
6
  {
inc/innofit/sections/{innofit-testimonail-section.php → innofit-testimonial-section.php} RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
  /* Call the action for team section */
3
- add_action('innofit_testimonial','innofit_testimonial_section');
4
  /* Function for team section*/
5
  function innofit_testimonial_section()
6
  {
1
  <?php
2
  /* Call the action for team section */
3
+ add_action('innofit_testimonial_action','innofit_testimonial_section');
4
  /* Function for team section*/
5
  function innofit_testimonial_section()
6
  {
inc/innofit/sections/innofit-wooproduct-section.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  /* Call the action for team section */
3
- add_action('innofit_woocommerce','innofit_woo_section');
4
  /* Function for team section*/
5
- function innofit_woo_section()
6
  {
7
  if ( class_exists( 'WooCommerce' ) ) {
8
  $shop_section_enable = get_theme_mod('shop_section_enable','on');
1
  <?php
2
  /* Call the action for team section */
3
+ add_action('innofit_wooproduct_action','innofit_wooproduct_section');
4
  /* Function for team section*/
5
+ function innofit_wooproduct_section()
6
  {
7
  if ( class_exists( 'WooCommerce' ) ) {
8
  $shop_section_enable = get_theme_mod('shop_section_enable','on');
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.2
6
- Stable tag: 0.3.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -83,4 +83,8 @@ This plugin create repeater controls in the customizer settings allowing you to
83
 
84
  = 0.3.4 =
85
 
86
- 1. Fixed testimonial markup issue.
 
 
 
 
3
  Tags: widget, admin, widgets
4
  Requires at least: 3.3+
5
  Tested up to: 5.0.2
6
+ Stable tag: 0.3.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
83
 
84
  = 0.3.4 =
85
 
86
+ 1. Fixed testimonial markup issue.
87
+
88
+ = 0.3.5 =
89
+
90
+ 1. Added Innofit Plus functionality.
spicebox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
- Version: 0.3.4
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
@@ -36,27 +36,51 @@ function spiceb_activate() {
36
  require_once('inc/spicepress/customizer.php');
37
  }
38
 
39
- if ( 'Innofit' == $theme->name){
40
- require_once('inc/innofit/features/feature-slider-section.php');
41
- require_once('inc/innofit/features/feature-service-section.php');
42
- require_once('inc/innofit/features/feature-about-section.php');
43
- require_once('inc/innofit/features/feature-testimonial-section.php');
44
- require_once('inc/innofit/features/feature-team-section.php');
45
- require_once('inc/innofit/features/feature-callout-section.php');
46
- require_once('inc/innofit/features/feature-contact-section.php');
47
- require_once('inc/innofit/features/feature-subscribe-section.php');
48
- require_once('inc/innofit/features/feature-wooshop-section.php');
49
- require_once('inc/innofit/sections/innofit-slider-section.php');
50
- require_once('inc/innofit/sections/innofit-service-section.php');
51
- require_once('inc/innofit/sections/innofit-about-section.php');
52
- require_once('inc/innofit/sections/innofit-testimonail-section.php');
53
- require_once('inc/innofit/sections/innofit-team-section.php');
54
- require_once('inc/innofit/sections/innofit-callout-section.php');
55
- require_once('inc/innofit/sections/innofit-contact-section.php');
56
- require_once('inc/innofit/sections/innofit-subscriber-section.php');
57
- require_once('inc/innofit/sections/innofit-wooproduct-section.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
- require_once('inc/innofit/customizer.php');
60
  }
61
 
62
 
@@ -113,9 +137,16 @@ function spiceb_spicepress_home_page_sanitize_text( $input ) {
113
 
114
  }
115
 
116
- function spiceb_innofit_home_page_sanitize_text( $input ) {
 
 
 
 
 
117
 
118
  return wp_kses_post( force_balance_tags( $input ) );
119
 
120
- }
 
 
121
  ?>
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
+ Version: 0.3.5
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
36
  require_once('inc/spicepress/customizer.php');
37
  }
38
 
39
+ if ( 'Innofit' == $theme->name){
40
+
41
+
42
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
43
+
44
+
45
+ if ( ! is_plugin_active( 'innofit-plus/innofit-plus.php' ) ):
46
+
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');
52
+
53
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
54
+
55
+ if (!empty($sections_customizer_data))
56
+ {
57
+ foreach($sections_customizer_data as $section_customizer_data)
58
+ {
59
+ require_once('inc/innofit/customizer/'.$section_customizer_data.'-section.php');
60
+ }
61
+ }
62
+
63
+ }
64
+ add_action( 'customize_register', 'spiceb_innofit_customize_register' );
65
+ endif;
66
+
67
+
68
+ $sections_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
69
+
70
+ if (!empty($sections_data))
71
+ {
72
+ foreach($sections_data as $section_data)
73
+ {
74
+ require_once('inc/innofit/sections/innofit-'.$section_data.'-section.php');
75
+ }
76
+ }
77
+
78
+ require_once('inc/innofit/customizer/customizer-render-callbacks.php');
79
+ require_once('inc/innofit/customizer.php');
80
+
81
+
82
+ endif;
83
 
 
84
  }
85
 
86
 
137
 
138
  }
139
 
140
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
141
+
142
+
143
+ if ( ! is_plugin_active( 'innofit-plus/innofit-plus.php' ) ):
144
+
145
+ function spiceb_innofit_home_page_sanitize_text( $input ) {
146
 
147
  return wp_kses_post( force_balance_tags( $input ) );
148
 
149
+ }
150
+
151
+ endif;
152
  ?>