Spice Box - Version 0.3.3

Version Description

  1. Added Innofit theme functionality.
  2. Added Child theme name.
Download this release

Release Info

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

Code changes from version 0.3.2 to 0.3.3

Files changed (38) hide show
  1. inc/innofit/customizer.php +257 -0
  2. inc/innofit/default-pages/home-custom-menu.php +68 -0
  3. inc/innofit/default-pages/home-page.php +24 -0
  4. inc/innofit/default-pages/upload-media.php +31 -0
  5. inc/innofit/default-widgets/default-widget.php +54 -0
  6. inc/innofit/features/feature-about-section.php +110 -0
  7. inc/innofit/features/feature-callout-section.php +154 -0
  8. inc/innofit/features/feature-contact-section.php +188 -0
  9. inc/innofit/features/feature-service-section.php +117 -0
  10. inc/innofit/features/feature-slider-section.php +189 -0
  11. inc/innofit/features/feature-subscribe-section.php +202 -0
  12. inc/innofit/features/feature-team-section.php +117 -0
  13. inc/innofit/features/feature-testimonial-section.php +151 -0
  14. inc/innofit/features/feature-wooshop-section.php +83 -0
  15. inc/innofit/images/about/about.jpg +0 -0
  16. inc/innofit/images/logo-footer.png +0 -0
  17. inc/innofit/images/logo.png +0 -0
  18. inc/innofit/images/slider/slider.jpg +0 -0
  19. inc/innofit/images/subscribe/subscribe-bg.jpg +0 -0
  20. inc/innofit/images/team/team1.jpg +0 -0
  21. inc/innofit/images/team/team2.jpg +0 -0
  22. inc/innofit/images/team/team3.jpg +0 -0
  23. inc/innofit/images/team/team4.jpg +0 -0
  24. inc/innofit/images/testimonial/testimonial-bg.jpg +0 -0
  25. inc/innofit/images/testimonial/user1.jpg +0 -0
  26. inc/innofit/images/testimonial/user2.jpg +0 -0
  27. inc/innofit/images/testimonial/user3.jpg +0 -0
  28. inc/innofit/sections/innofit-about-section.php +40 -0
  29. inc/innofit/sections/innofit-callout-section.php +39 -0
  30. inc/innofit/sections/innofit-contact-section.php +64 -0
  31. inc/innofit/sections/innofit-service-section.php +149 -0
  32. inc/innofit/sections/innofit-slider-section.php +57 -0
  33. inc/innofit/sections/innofit-subscriber-section.php +40 -0
  34. inc/innofit/sections/innofit-team-section.php +198 -0
  35. inc/innofit/sections/innofit-testimonail-section.php +117 -0
  36. inc/innofit/sections/innofit-wooproduct-section.php +84 -0
  37. readme.txt +7 -2
  38. spicebox.php +53 -3
inc/innofit/customizer.php ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Innofit default service data
3
+ if ( ! function_exists( 'innofit_service_default_customize_register' ) ) :
4
+ function innofit_service_default_customize_register( $wp_customize ){
5
+
6
+ $innofit_service_content_control = $wp_customize->get_setting( 'innofit_service_content' );
7
+ if ( ! empty( $innofit_service_content_control ) ) {
8
+ $innofit_service_content_control->default = json_encode( array(
9
+ array(
10
+ 'icon_value' => 'fa-headphones',
11
+ 'title' => esc_html__( 'Unlimited Support', 'spicebox' ),
12
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
13
+ 'link' => '#',
14
+ 'open_new_tab' => 'yes',
15
+ 'id' => 'customizer_repeater_56d7ea7f40b56',
16
+ ),
17
+ array(
18
+ 'icon_value' => 'fa-mobile',
19
+ 'title' => esc_html__( 'Pixel Perfect Design', 'spicebox' ),
20
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
21
+ 'link' => '#',
22
+ 'open_new_tab' => 'yes',
23
+ 'id' => 'customizer_repeater_56d7ea7f40b66',
24
+ ),
25
+ array(
26
+ 'icon_value' => 'fa-cogs',
27
+ 'title' => esc_html__( 'Powerful Options', 'spicebox' ),
28
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
29
+ 'link' => '#',
30
+ 'open_new_tab' => 'yes',
31
+ 'id' => 'customizer_repeater_56d7ea7f40b86',
32
+ ),
33
+ array(
34
+ 'icon_value' => 'fa-android',
35
+ 'title' => esc_html__( 'App Development', 'spicebox' ),
36
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
37
+ 'link' => '#',
38
+ 'open_new_tab' => 'yes',
39
+ 'id' => 'customizer_repeater_56d7ea7f40b88',
40
+ ),
41
+ array(
42
+ 'icon_value' => 'fa-code',
43
+ 'title' => esc_html__( 'Unique and Clean', 'spicebox' ),
44
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
45
+ 'link' => '#',
46
+ 'open_new_tab' => 'yes',
47
+ 'id' => 'customizer_repeater_56d7ea7f40b89',
48
+ ),
49
+ array(
50
+ 'icon_value' => 'fa-users',
51
+ 'title' => esc_html__( 'Satisfied Clients', 'spicebox' ),
52
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
53
+ 'link' => '#',
54
+ 'open_new_tab' => 'yes',
55
+ 'id' => 'customizer_repeater_56d7ea7f40b91',
56
+ ),
57
+
58
+ ) );
59
+
60
+ }
61
+ }
62
+
63
+ add_action( 'customize_register', 'innofit_service_default_customize_register' );
64
+
65
+ endif;
66
+
67
+ // Innofit Testimonial content data
68
+ if ( ! function_exists( 'innofit_testimonial_default_customize_register' ) ) :
69
+ add_action( 'customize_register', 'innofit_testimonial_default_customize_register' );
70
+ function innofit_testimonial_default_customize_register( $wp_customize ){
71
+
72
+ //Innofit default testimonial data.
73
+ $innofit_testimonial_content_control = $wp_customize->get_setting( 'innofit_testimonial_content' );
74
+ if ( ! empty( $innofit_testimonial_content_control ) )
75
+ {
76
+ $innofit_testimonial_content_control->default = json_encode( array(
77
+ array(
78
+ 'title' => 'Martin Wills',
79
+ 'text' => 'We are so glad that we made the switch to use Innofit this year and our results were fantastic.',
80
+ 'designation' => __('Developer','spicebox'),
81
+ 'link' => '#',
82
+ 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/testimonial/user1.jpg',
83
+ 'open_new_tab' => 'no',
84
+ 'id' => 'customizer_repeater_56d7ea7f40b96',
85
+
86
+ ),
87
+ array(
88
+ 'title' => 'Amanda Smith',
89
+ 'text' => 'We are so glad that we made the switch to use Innofit this year and our results were fantastic.',
90
+ 'designation' => __('Team Leader','spicebox'),
91
+ 'link' => '#',
92
+ 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/testimonial/user2.jpg',
93
+ 'open_new_tab' => 'no',
94
+ 'id' => 'customizer_repeater_56d7ea7f40b97',
95
+ ),
96
+ array(
97
+ 'title' => 'Travis Cullan',
98
+ 'text' => 'We are so glad that we made the switch to use Innofit this year and our results were fantastic.',
99
+ 'designation' => __('Volunteer','spicebox'),
100
+ 'link' => '#',
101
+ 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/testimonial/user3.jpg',
102
+ 'id' => 'customizer_repeater_56d7ea7f40b98',
103
+ 'open_new_tab' => 'no',
104
+ ),
105
+
106
+ ) );
107
+
108
+ }
109
+
110
+
111
+ }
112
+ endif;
113
+
114
+
115
+ // Innofit Team content data
116
+ if ( ! function_exists( 'innofit_team_default_customize_register' ) ) :
117
+ add_action( 'customize_register', 'innofit_team_default_customize_register' );
118
+ function innofit_team_default_customize_register( $wp_customize ){
119
+ //Innofit default team data.
120
+ $innofit_team_content_control = $wp_customize->get_setting( 'innofit_team_content' );
121
+ if ( ! empty( $innofit_team_content_control ) )
122
+ {
123
+ $innofit_team_content_control->default = json_encode( array(
124
+ array(
125
+ 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/team/team1.jpg',
126
+ 'title' => 'Danial Wilson',
127
+ 'subtitle' => esc_html__( 'Senior Manager', 'spicebox' ),
128
+ 'open_new_tab' => 'no',
129
+ 'id' => 'customizer_repeater_56d7ea7f40c56',
130
+ 'social_repeater' => json_encode(
131
+ array(
132
+ array(
133
+ 'id' => 'customizer-repeater-social-repeater-57fb908674e06',
134
+ 'link' => 'facebook.com',
135
+ 'icon' => 'fa-facebook',
136
+ ),
137
+ array(
138
+ 'id' => 'customizer-repeater-social-repeater-57fb9148530fc',
139
+ 'link' => 'twitter.com',
140
+ 'icon' => 'fa-twitter',
141
+ ),
142
+ array(
143
+ 'id' => 'customizer-repeater-social-repeater-57fb9150e1e89',
144
+ 'link' => 'linkedin.com',
145
+ 'icon' => 'fa-linkedin',
146
+ ),
147
+
148
+ array(
149
+ 'id' => 'customizer-repeater-social-repeater-57fb9150e1e256',
150
+ 'link' => 'behance.com',
151
+ 'icon' => 'fa-behance',
152
+ ),
153
+ )
154
+ ),
155
+ ),
156
+ array(
157
+ 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/team/team2.jpg',
158
+ 'title' => 'Amanda Smith',
159
+ 'subtitle' => esc_html__( 'Founder & CEO', 'spicebox' ),
160
+ 'open_new_tab' => 'no',
161
+ 'id' => 'customizer_repeater_56d7ea7f40c66',
162
+ 'social_repeater' => json_encode(
163
+ array(
164
+ array(
165
+ 'id' => 'customizer-repeater-social-repeater-57fb9155a1072',
166
+ 'link' => 'facebook.com',
167
+ 'icon' => 'fa-facebook',
168
+ ),
169
+ array(
170
+ 'id' => 'customizer-repeater-social-repeater-57fb9160ab683',
171
+ 'link' => 'twitter.com',
172
+ 'icon' => 'fa-twitter',
173
+ ),
174
+ array(
175
+ 'id' => 'customizer-repeater-social-repeater-57fb916ddffc9',
176
+ 'link' => 'linkedin.com',
177
+ 'icon' => 'fa-linkedin',
178
+ ),
179
+ array(
180
+ 'id' => 'customizer-repeater-social-repeater-57fb916ddffc784',
181
+ 'link' => 'behance.com',
182
+ 'icon' => 'fa-behance',
183
+ ),
184
+ )
185
+ ),
186
+ ),
187
+ array(
188
+ 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/team/team3.jpg',
189
+ 'title' => 'Victoria Wills',
190
+ 'subtitle' => esc_html__( 'Web Master', 'spicebox' ),
191
+ 'text' => 'Pok pok direct trade godard street art, poutine fam typewriter food truck narwhal kombucha wolf cardigan butcher whatever pickled you.',
192
+ 'open_new_tab' => 'no',
193
+ 'id' => 'customizer_repeater_56d7ea7f40c76',
194
+ 'social_repeater' => json_encode(
195
+ array(
196
+ array(
197
+ 'id' => 'customizer-repeater-social-repeater-57fb917e4c69e',
198
+ 'link' => 'facebook.com',
199
+ 'icon' => 'fa-facebook',
200
+ ),
201
+ array(
202
+ 'id' => 'customizer-repeater-social-repeater-57fb91830825c',
203
+ 'link' => 'twitter.com',
204
+ 'icon' => 'fa-twitter',
205
+ ),
206
+ array(
207
+ 'id' => 'customizer-repeater-social-repeater-57fb918d65f2e',
208
+ 'link' => 'linkedin.com',
209
+ 'icon' => 'fa-linkedin',
210
+ ),
211
+
212
+ array(
213
+ 'id' => 'customizer-repeater-social-repeater-57fb918d65f2e8',
214
+ 'link' => 'behance.com',
215
+ 'icon' => 'fa-behance',
216
+ ),
217
+ )
218
+ ),
219
+ ),
220
+ array(
221
+ 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/team/team4.jpg',
222
+ 'title' => 'Travis Marcus',
223
+ 'subtitle' => esc_html__( 'UI Developer', 'spicebox' ),
224
+ 'open_new_tab' => 'no',
225
+ 'id' => 'customizer_repeater_56d7ea7f40c86',
226
+ 'social_repeater' => json_encode(
227
+ array(
228
+ array(
229
+ 'id' => 'customizer-repeater-social-repeater-57fb925cedcb2',
230
+ 'link' => 'facebook.com',
231
+ 'icon' => 'fa-facebook',
232
+ ),
233
+ array(
234
+ 'id' => 'customizer-repeater-social-repeater-57fb92615f030',
235
+ 'link' => 'twitter.com',
236
+ 'icon' => 'fa-twitter',
237
+ ),
238
+ array(
239
+ 'id' => 'customizer-repeater-social-repeater-57fb9266c223a',
240
+ 'link' => 'linkedin.com',
241
+ 'icon' => 'fa-linkedin',
242
+ ),
243
+
244
+ array(
245
+ 'id' => 'customizer-repeater-social-repeater-57fb9266c223a',
246
+ 'link' => 'behance.com',
247
+ 'icon' => 'fa-behance',
248
+ ),
249
+ )
250
+ ),
251
+ ),
252
+
253
+ ) );
254
+
255
+ }
256
+ }
257
+ endif;
inc/innofit/default-pages/home-custom-menu.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $run_once = get_option('menu_check');
2
+ if (!$run_once){
3
+ //give your menu a name
4
+ $name = 'primary';
5
+ //create the menu
6
+ $menu_id = wp_create_nav_menu($name);
7
+ //then get the menu object by its name
8
+ $menu = get_term_by( 'name', $name, 'nav_menu' );
9
+
10
+ //then add the actuall link/ menu item and you do this for each item you want to add
11
+ wp_update_nav_menu_item($menu->term_id, 0, array(
12
+ 'menu-item-title' => __('Home'),
13
+ 'menu-item-url' => '#totop',
14
+ 'menu-item-status' => 'publish',
15
+ 'menu-item-position' => 1,
16
+ ));
17
+
18
+ wp_update_nav_menu_item($menu->term_id, 0, array(
19
+ 'menu-item-title' => __('Service'),
20
+ 'menu-item-url' => '#services',
21
+ 'menu-item-status' => 'publish',
22
+ 'menu-item-position' => 2,
23
+ ));
24
+
25
+ wp_update_nav_menu_item($menu->term_id, 0, array(
26
+ 'menu-item-title' => __('About'),
27
+ 'menu-item-url' => '#about',
28
+ 'menu-item-status' => 'publish',
29
+ 'menu-item-position' => 3,
30
+ ));
31
+
32
+ wp_update_nav_menu_item($menu->term_id, 0, array(
33
+ 'menu-item-title' => __('Team'),
34
+ 'menu-item-url' => '#team',
35
+ 'menu-item-status' => 'publish',
36
+ 'menu-item-position' => 4,
37
+ ));
38
+
39
+ wp_update_nav_menu_item($menu->term_id, 0, array(
40
+ 'menu-item-title' => __('Blog'),
41
+ 'menu-item-url' => '#blog',
42
+ 'menu-item-status' => 'publish',
43
+ 'menu-item-position' => 5,
44
+ ));
45
+
46
+ wp_update_nav_menu_item($menu->term_id, 0, array(
47
+ 'menu-item-title' => __('Contact'),
48
+ 'menu-item-url' => '#contact',
49
+ 'menu-item-status' => 'publish',
50
+ 'menu-item-position' => 6,
51
+ ));
52
+
53
+ wp_update_nav_menu_item($menu->term_id, 0, array(
54
+ 'menu-item-title' => __('Callout'),
55
+ 'menu-item-url' => '#call-to-action',
56
+ 'menu-item-status' => 'publish',
57
+ 'menu-item-position' => 7,
58
+ ));
59
+
60
+
61
+ //then you set the wanted theme location
62
+ $locations = get_theme_mod('nav_menu_locations');
63
+ $locations['main-menu'] = $menu->term_id;
64
+ set_theme_mod( 'nav_menu_locations', $locations );
65
+
66
+ // then update the menu_check option to make sure this code only runs once
67
+ update_option('menu_check', true);
68
+ } ?>
inc/innofit/default-pages/home-page.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //post status and options
3
+ $post = array(
4
+ 'comment_status' => 'closed',
5
+ 'ping_status' => 'closed' ,
6
+ 'post_author' => 1,
7
+ 'post_date' => date('Y-m-d H:i:s'),
8
+ 'post_name' => 'Home',
9
+ 'post_status' => 'publish' ,
10
+ 'post_title' => 'Home',
11
+ 'post_type' => 'page',
12
+ );
13
+ //insert page and save the id
14
+ $newvalue = wp_insert_post( $post, false );
15
+ if ( $newvalue && ! is_wp_error( $newvalue ) ){
16
+ update_post_meta( $newvalue, '_wp_page_template', 'template-business.php' );
17
+
18
+ // Use a static front page
19
+ $page = get_page_by_title('Home');
20
+ update_option( 'show_on_front', 'page' );
21
+ update_option( 'page_on_front', $page->ID );
22
+
23
+ }
24
+ ?>
inc/innofit/default-pages/upload-media.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $ImagePath = SPICEB_PLUGIN_URL .'inc/innofit/images';
3
+
4
+ $images = array(
5
+ $ImagePath. '/logo.png',
6
+ );
7
+
8
+ foreach($images as $name) {
9
+ $filename = basename($name);
10
+ $upload_file = wp_upload_bits($filename, null, file_get_contents($name));
11
+ if (!$upload_file['error']) {
12
+ $wp_filetype = wp_check_filetype($filename, null );
13
+ $attachment = array(
14
+ 'post_mime_type' => $wp_filetype['type'],
15
+ 'post_parent' => $parent_post_id,
16
+ 'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
17
+ 'post_status' => 'inherit'
18
+ );
19
+ $ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
20
+
21
+ if (!is_wp_error($attachment_id)) {
22
+ require_once(ABSPATH . "wp-admin" . '/includes/image.php');
23
+ $attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
24
+ wp_update_attachment_metadata( $attachment_id, $attachment_data );
25
+ }
26
+ }
27
+
28
+ }
29
+
30
+ update_option( 'innofit_media_id', $ImageId );
31
+ ?>
inc/innofit/default-widgets/default-widget.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $activate = array(
3
+ 'sidebar_primary' => array(
4
+ 'search-1',
5
+ 'recent-posts-1',
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',
13
+ ),
14
+ 'footer_widget_area_center' => array(
15
+ 'pages-2'
16
+ ),
17
+
18
+ 'menu_social_media_sidebar' => array(
19
+ 'innofit_social_icon_widget-2'
20
+ ),
21
+
22
+ );
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
+
30
+ update_option('widget_categories', array(
31
+ 1 => array('title' => 'Categories'),
32
+ 2 => array('title' => 'Categories')));
33
+
34
+ update_option('widget_archives', array(
35
+ 1 => array('title' => 'Archives'),
36
+ 2 => array('title' => 'Archives')));
37
+
38
+ update_option('widget_search', array(
39
+ 1 => array('title' => 'Search'),
40
+ 2 => array('title' => 'Search')));
41
+
42
+ update_option('widget_innofit_social_icon_widget', array(
43
+ 2 => array('facebook_link' => '#', 'twitter_link' => '#', 'google_plus_link' => '#')));
44
+
45
+
46
+ update_option('widget_pages', array(
47
+ 1 => array('title' => 'Useful Links'),
48
+ 2 => array('title' => 'Useful Links')));
49
+
50
+ update_option('sidebars_widgets', $activate);
51
+ $MediaId = get_option('innofit_media_id');
52
+ set_theme_mod( 'custom_logo', $MediaId[0] );
53
+ set_theme_mod( 'header_textcolor', "blank" );
54
+ ?>
inc/innofit/features/feature-about-section.php ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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'),
9
+ 'panel' => 'section_settings',
10
+ 'priority' => 3,
11
+ ) );
12
+
13
+
14
+ // Enable service more btn
15
+ $wp_customize->add_setting( 'home_about_section_enabled' , array( 'default' => 'on') );
16
+ $wp_customize->add_control( 'home_about_section_enabled' , array(
17
+ 'label' => __( 'Enable About on homepage', 'spicebox' ),
18
+ 'section' => 'about_section',
19
+ 'type' => 'radio',
20
+ 'choices' => array(
21
+ 'on'=>__('ON', 'spicebox'),
22
+ 'off'=>__('OFF', 'spicebox')
23
+ )
24
+ ));
25
+
26
+ //About section content
27
+ if ( class_exists( 'Innofit_Page_Editor' ) ) {
28
+ $about_image = SPICEB_PLUGIN_URL.'inc/innofit/images/about/about.jpg';
29
+ $default = __(' <div class="row v-center">
30
+ <div class="col-md-5 col-sm-5 col-xs-12">
31
+ <figure class="about-thumbnail mbottom-50">
32
+ <img src="'.$about_image.'" alt="About">
33
+ </figure>
34
+ </div>
35
+
36
+ <div class="col-md-7 col-sm-7 col-xs-12">
37
+ <div class="about-content mbottom-50">
38
+ <h6 class="entry-subtitle">Welcome to <span class="text-default">Innofit</span></h6>
39
+ <h1 class="entry-title">We have the right solutions</h1>
40
+ <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totame rems aperiam, eaque ipsa quae ab illo inventore veritatis quasi architecto beatae vitaes dicta sunt explicabo. Nemo enim ipsam voluptatem.</p>
41
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p>
42
+ <div class="ptop-15"><a href="#" class="btn-ex-small btn-animate border">Our Story</a></div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ ','spicebox');
47
+ $wp_customize->add_setting(
48
+ 'about_section_content', array(
49
+ 'default' => $default,
50
+ 'sanitize_callback' => 'wp_kses_post',
51
+ 'transport' => $selective_refresh,
52
+ )
53
+ );
54
+
55
+ $wp_customize->add_control(
56
+ new Innofit_Page_Editor(
57
+ $wp_customize, 'about_section_content', array(
58
+ 'label' => esc_html__( 'About content', 'spicebox' ),
59
+ 'section' => 'about_section',
60
+ 'priority' => 10,
61
+ 'needsync' => true,
62
+ )
63
+ )
64
+ );
65
+ }
66
+
67
+
68
+ //About image
69
+ $wp_customize->add_setting( 'innofit_about_section_background',array('default' => ''));
70
+
71
+
72
+ $wp_customize->add_control(
73
+ new WP_Customize_Image_Control(
74
+ $wp_customize,
75
+ 'innofit_about_section_background',
76
+ array(
77
+ 'label' => __('Image','spasalon'),
78
+ 'settings' =>'innofit_about_section_background',
79
+ 'section' => 'about_section',
80
+ 'type' => 'upload',
81
+ )
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
+ ?>
inc/innofit/features/feature-callout-section.php ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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'),
9
+ 'panel' => 'section_settings',
10
+ 'priority' => 15,
11
+ ));
12
+
13
+ // Enable call to action section
14
+ $wp_customize->add_setting( 'cta_section_enable' , array( 'default' => 'on') );
15
+ $wp_customize->add_control( 'cta_section_enable' , array(
16
+ 'label' => __( 'Enable Home Callout section', 'spicebox' ),
17
+ 'section' => 'home_cta_page_section',
18
+ 'type' => 'radio',
19
+ 'choices' => array(
20
+ 'on'=>__('ON', 'spicebox'),
21
+ 'off'=>__('OFF', 'spicebox')
22
+ )
23
+ ));
24
+
25
+ $wp_customize->add_setting(
26
+ 'home_call_out_title',
27
+ array(
28
+ 'default' => __('We create beautiful WordPress themes for you!','spicebox'),
29
+ 'transport' => $selective_refresh,
30
+ )
31
+ );
32
+ $wp_customize->add_control( 'home_call_out_title',array(
33
+ 'label' => __('Title','spicebox'),
34
+ 'section' => 'home_cta_page_section',
35
+ 'type' => 'text',) );
36
+
37
+ $wp_customize->add_setting(
38
+ 'home_call_out_desc',
39
+ array(
40
+ 'default' => __('Choose a package that suits all your needs to build a website.','spicebox'),
41
+ 'transport' => $selective_refresh,
42
+ )
43
+ );
44
+ $wp_customize->add_control( 'home_call_out_desc',array(
45
+ 'label' => __('Description','spicebox'),
46
+ 'section' => 'home_cta_page_section',
47
+ 'type' => 'textarea',) );
48
+
49
+
50
+ $wp_customize ->add_setting (
51
+ 'home_call_out_btn_text',
52
+ array(
53
+ 'default' => __('Buy Innofit','spicebox'),
54
+ 'capability' => 'edit_theme_options',
55
+ 'sanitize_callback' => 'sanitize_text_field',
56
+ 'transport' => $selective_refresh,
57
+
58
+ )
59
+ );
60
+
61
+ $wp_customize->add_control (
62
+ 'home_call_out_btn_text',
63
+ array (
64
+ 'label' => __('Button Text','spicebox'),
65
+ 'section' => 'home_cta_page_section',
66
+ 'type' => 'text',
67
+ ) );
68
+
69
+
70
+
71
+ $wp_customize->add_setting( 'home_call_out_btn_link',array(
72
+ 'default' => __('#','spicebox'),
73
+ 'sanitize_callback' => 'spiceb_innofit_home_page_sanitize_text',
74
+ 'transport' => $selective_refresh,
75
+ ));
76
+
77
+ $wp_customize->add_control( 'home_call_out_btn_link',array(
78
+ 'label' => __('Button Link','spicebox'),
79
+ 'section' => 'home_cta_page_section',
80
+ 'type' => 'text',
81
+ ));
82
+
83
+
84
+
85
+ $wp_customize->add_setting(
86
+ 'home_call_out_btn_link_target',
87
+ array('sanitize_callback' => 'sanitize_text_field',
88
+ ));
89
+
90
+ $wp_customize->add_control(
91
+ 'home_call_out_btn_link_target',
92
+ array(
93
+ 'type' => 'checkbox',
94
+ 'label' => __('Open link in new tab','spicebox'),
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',
118
+ 'render_callback' => 'home_call_out_title_render_callback',
119
+
120
+ ) );
121
+
122
+
123
+
124
+ $wp_customize->selective_refresh->add_partial( 'home_call_out_desc', array(
125
+ 'selector' => '.call-to-action-one p',
126
+ 'settings' => 'home_call_out_desc',
127
+ 'render_callback' => 'home_call_out_desc_render_callback',
128
+
129
+ ) );
130
+
131
+ $wp_customize->selective_refresh->add_partial( 'home_call_out_btn_text', array(
132
+ 'selector' => '.call-to-action-one .btn-small',
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
+ ?>
inc/innofit/features/feature-contact-section.php ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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'=>'',
11
+ 'panel' => 'section_settings',
12
+ 'priority' => 13,
13
+ ));
14
+
15
+
16
+ $wp_customize->add_setting( 'contact_form_enable' , array( 'default' => 'on') );
17
+ $wp_customize->add_control( 'contact_form_enable' , array(
18
+ 'label' => __( 'Enable Contact form section', 'spicebox' ),
19
+ 'section' => 'home_contactform_section',
20
+ 'type' => 'radio',
21
+ 'choices' => array(
22
+ 'on'=>__('ON', 'spicebox'),
23
+ 'off'=>__('OFF', 'spicebox')
24
+ )
25
+ ));
26
+
27
+ //Contact form section Background Image
28
+ $wp_customize->add_setting( 'contact_form_background', array('default' => get_template_directory_uri().'/images/testimonial-bg.jpg',
29
+ 'sanitize_callback' => 'esc_url_raw',
30
+ ) );
31
+
32
+ $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'contact_form_background', array(
33
+ 'label' => __( 'Background Image', 'spicebox' ),
34
+ 'section' => 'home_contactform_section',
35
+ 'settings' => 'contact_form_background',
36
+ ) ) );
37
+
38
+ // Image overlay
39
+ $wp_customize->add_setting( 'contact_form_image_overlay', array(
40
+ 'default' => true,
41
+ 'sanitize_callback' => 'sanitize_text_field',
42
+ ) );
43
+
44
+ $wp_customize->add_control('contact_form_image_overlay', array(
45
+ 'label' => __('Enable Contact image overlay', 'spicebox' ),
46
+ 'section' => 'home_contactform_section',
47
+ 'type' => 'checkbox',
48
+ ) );
49
+
50
+
51
+ //Testimonial Background Overlay Color
52
+ $wp_customize->add_setting( 'contact_overlay_section_color', array(
53
+ 'default' => 'rgba(250, 250, 250, 0.95)',
54
+ ) );
55
+
56
+ $wp_customize->add_control(new Innofit_Customize_Alpha_Color_Control( $wp_customize,'contact_overlay_section_color', array(
57
+ 'label' => __('Contact image overlay color','spicebox' ),
58
+ 'palette' => true,
59
+ 'section' => 'home_contactform_section')
60
+ ) );
61
+
62
+
63
+
64
+
65
+ // contact form title
66
+ $wp_customize->add_setting('contact_form_title_one',array(
67
+ 'capability' => 'edit_theme_options',
68
+ 'default' => __('Send us a message','spicebox'),
69
+ 'sanitize_callback' => 'innofit_home_page_sanitize_text',
70
+ 'transport' => $selective_refresh,
71
+ ));
72
+ $wp_customize->add_control('contact_form_title_one',array(
73
+ 'label' => __('Contact form title one','spicebox'),
74
+ 'section' => 'home_contactform_section',
75
+ 'type' => 'text',
76
+ ));
77
+
78
+ // Contact title
79
+ $wp_customize->add_setting('contact_form_title_two',array(
80
+ 'capability' => 'edit_theme_options',
81
+ 'default' => __('Contact Us','spicebox'),
82
+ 'sanitize_callback' => 'innofit_home_page_sanitize_text',
83
+ 'transport' => $selective_refresh,
84
+ ));
85
+ $wp_customize->add_control('contact_form_title_two',array(
86
+ 'label' => __('Contact form title two','spicebox'),
87
+ 'section' => 'home_contactform_section',
88
+ 'type' => 'text',
89
+ ));
90
+
91
+ // Contact form 7 shortcode
92
+ $wp_customize->add_setting('contact_form_shortcode',array(
93
+ 'capability' => 'edit_theme_options',
94
+ 'sanitize_callback' => 'sanitize_text_field',
95
+ ));
96
+ $wp_customize->add_control('contact_form_shortcode',array(
97
+ 'label' => __('Contact Form shortcode','spicebox'),
98
+ 'section' => 'home_contactform_section',
99
+ 'type' => 'textarea',
100
+ ));
101
+
102
+
103
+ // contact info enable / disable
104
+ $wp_customize->add_setting('contact_info_enable',array(
105
+ 'default'=>true,
106
+ 'capability' => 'edit_theme_options',
107
+ 'sanitize_callback' => 'sanitize_text_field',
108
+ ));
109
+ $wp_customize->add_control('contact_info_enable',array(
110
+ 'label' => __('Enable contact info','spicebox'),
111
+ 'section' => 'home_contactform_section',
112
+ 'type' => 'checkbox',
113
+ ));
114
+
115
+ //Contact section content
116
+ if ( class_exists( 'Innofit_Page_Editor' ) ) {
117
+ $default = __('<h2 class="title">Get in touch</h2><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-map-marker"></i></div><div class="media-body"><h3 class="title">Find Us</h3><address>Porterfield 508 Virginia Street Chicago,<br> IL 60653 (USA)</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-mobile"></i></div><div class="media-body"><h3 class="title">Phone</h3><address>Mobile: (+91) 90 1900 - 6886 <br>Hotline: 1800 6886)</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-envelope-o"></i></div><div class="media-body"><h3 class="title">Email</h3><address><a href="mailto:suppor@tinnofit.com">support@innofit.com</a><a href="mailto:contact@innofit.com">contact@innofit.com</a></address></div></div></aside>','spicebox');
118
+ $wp_customize->add_setting(
119
+ 'contact_info_content', array(
120
+ 'default' => $default,
121
+ 'sanitize_callback' => 'wp_kses_post',
122
+ )
123
+ );
124
+
125
+ $wp_customize->add_control(
126
+ new Innofit_Page_Editor(
127
+ $wp_customize, 'contact_info_content', array(
128
+ 'label' => esc_html__( 'Contact Info content', 'spicebox' ),
129
+ 'section' => 'home_contactform_section',
130
+ 'priority' => 10,
131
+ 'needsync' => true,
132
+ )
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',
154
+ 'render_callback' => 'contact_form_title_one_render_callback',
155
+
156
+ ) );
157
+
158
+ $wp_customize->selective_refresh->add_partial( 'contact_form_title_two', array(
159
+ 'selector' => '.contact .contact-form .title',
160
+ 'settings' => 'contact_form_title_two',
161
+ 'render_callback' => 'contact_form_title_two_render_callback',
162
+
163
+ ) );
164
+
165
+ $wp_customize->selective_refresh->add_partial( 'contact_info_content', array(
166
+ 'selector' => '.contact .contact-info h2',
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
+ ?>
inc/innofit/features/feature-service-section.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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'),
9
+ 'panel' => 'section_settings',
10
+ 'priority' => 2,
11
+ ) );
12
+
13
+
14
+ // Enable service more btn
15
+ $wp_customize->add_setting( 'home_service_section_enabled' , array( 'default' => 'on') );
16
+ $wp_customize->add_control( 'home_service_section_enabled' , array(
17
+ 'label' => __( 'Enable Services on homepage', 'spicebox' ),
18
+ 'section' => 'services_section',
19
+ 'type' => 'radio',
20
+ 'choices' => array(
21
+ 'on'=>__('ON', 'spicebox'),
22
+ 'off'=>__('OFF', 'spicebox')
23
+ )
24
+ ));
25
+
26
+
27
+ // Service section title
28
+ $wp_customize->add_setting( 'home_service_section_title',array(
29
+ 'capability' => 'edit_theme_options',
30
+ 'default' => __('What we do','spicebox'),
31
+ 'sanitize_callback' => 'innofit_home_page_sanitize_text',
32
+ 'transport' => $selective_refresh,
33
+ ));
34
+ $wp_customize->add_control( 'home_service_section_title',array(
35
+ 'label' => __('Title','spicebox'),
36
+ 'section' => 'services_section',
37
+ 'type' => 'text',
38
+ ));
39
+
40
+ //Service section discription
41
+ $wp_customize->add_setting( 'home_service_section_discription',array(
42
+ 'capability' => 'edit_theme_options',
43
+ 'default' => __('Services we provide','spicebox'),
44
+ 'sanitize_callback' => 'innofit_home_page_sanitize_text',
45
+ 'transport' => $selective_refresh,
46
+ ));
47
+
48
+
49
+ $wp_customize->add_control( 'home_service_section_discription',array(
50
+ 'label' => __('Description','spicebox'),
51
+ 'section' => 'services_section',
52
+ 'type' => 'textarea',
53
+ ));
54
+
55
+ if ( class_exists( 'Innofit_Repeater' ) ) {
56
+ $wp_customize->add_setting( 'innofit_service_content', array(
57
+ ) );
58
+
59
+ $wp_customize->add_control( new Innofit_Repeater( $wp_customize, 'innofit_service_content', array(
60
+ 'label' => esc_html__( 'Services content', 'spicebox' ),
61
+ 'section' => 'services_section',
62
+ 'priority' => 10,
63
+ 'add_field_label' => esc_html__( 'Add new Service', 'spicebox' ),
64
+ 'item_name' => esc_html__( 'Service', 'spicebox' ),
65
+ 'customizer_repeater_icon_control' => true,
66
+ 'customizer_repeater_title_control' => true,
67
+ 'customizer_repeater_text_control' => true,
68
+ 'customizer_repeater_link_control' => true,
69
+ 'customizer_repeater_checkbox_control' => true,
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',
89
+ 'render_callback' => 'innofit_home_service_section_title_render_callback',
90
+
91
+ ) );
92
+
93
+ $wp_customize->selective_refresh->add_partial( 'home_service_section_discription', array(
94
+ 'selector' => '.services .section-header .section-subtitle',
95
+ 'settings' => 'home_service_section_discription',
96
+ 'render_callback' => 'innofit_home_service_section_discription_render_callback',
97
+
98
+ ) );
99
+
100
+ $wp_customize->selective_refresh->add_partial( 'innofit_service_content', array(
101
+ 'selector' => '.services #service_content',
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
+ ?>
inc/innofit/features/feature-slider-section.php ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ) );
11
+
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(
19
+ 'on'=>__('ON', 'spicebox'),
20
+ 'off'=>__('OFF', 'spicebox')
21
+ )
22
+ ));
23
+
24
+
25
+ //Slider Image
26
+ $wp_customize->add_setting( 'home_slider_image',array('default' => SPICEB_PLUGIN_URL .'inc/innofit/images/slider/slider.jpg',
27
+ 'sanitize_callback' => 'esc_url_raw', 'transport' => $selective_refresh,));
28
+
29
+ $wp_customize->add_control(
30
+ new WP_Customize_Image_Control(
31
+ $wp_customize,
32
+ 'home_slider_image',
33
+ array(
34
+ 'type' => 'upload',
35
+ 'label' => __('Image','spicebox'),
36
+ 'settings' =>'home_slider_image',
37
+ 'section' => 'slider_section',
38
+
39
+ )
40
+ )
41
+ );
42
+
43
+ // Image overlay
44
+ $wp_customize->add_setting( 'slider_image_overlay', array(
45
+ 'default' => true,
46
+ 'sanitize_callback' => 'sanitize_text_field',
47
+ ) );
48
+
49
+ $wp_customize->add_control('slider_image_overlay', array(
50
+ 'label' => __('Enable slider image overlay', 'spicebox' ),
51
+ 'section' => 'slider_section',
52
+ 'type' => 'checkbox',
53
+ ) );
54
+
55
+
56
+ //Slider Background Overlay Color
57
+ $wp_customize->add_setting( 'slider_overlay_section_color', array(
58
+ 'sanitize_callback' => 'sanitize_text_field',
59
+ 'default' => 'rgba(0,0,0,0.30)',
60
+ ) );
61
+
62
+ $wp_customize->add_control(new innofit_Customize_Alpha_Color_Control( $wp_customize,'slider_overlay_section_color', array(
63
+ 'label' => __('Slider image overlay color','spicebox' ),
64
+ 'palette' => true,
65
+ 'section' => 'slider_section')
66
+ ) );
67
+
68
+
69
+ // Slider title
70
+ $wp_customize->add_setting( 'home_slider_title',array(
71
+ 'default' => __('We provide solutions to<br /> grow your business','spicebox'),
72
+ 'sanitize_callback' => 'spiceb_innofit_home_page_sanitize_text',
73
+ 'transport' => $selective_refresh,
74
+ ));
75
+ $wp_customize->add_control( 'home_slider_title',array(
76
+ 'label' => __('Title','spicebox'),
77
+ 'section' => 'slider_section',
78
+ 'type' => 'text',
79
+ ));
80
+
81
+ //Slider discription
82
+ $wp_customize->add_setting( 'home_slider_discription',array(
83
+ 'default' => __('Welcome to Innofit','spicebox'),
84
+ 'sanitize_callback' => 'spiceb_innofit_home_page_sanitize_text',
85
+ 'transport' => $selective_refresh,
86
+ ));
87
+ $wp_customize->add_control( 'home_slider_discription',array(
88
+ 'label' => __('Description','spicebox'),
89
+ 'section' => 'slider_section',
90
+ 'type' => 'textarea',
91
+ ));
92
+
93
+
94
+ // Slider button text
95
+ $wp_customize->add_setting( 'home_slider_btn_txt',array(
96
+ 'default' => __('Read more','spicebox'),
97
+ 'sanitize_callback' => 'spiceb_innofit_home_page_sanitize_text',
98
+ 'transport' => $selective_refresh,
99
+ ));
100
+ $wp_customize->add_control( 'home_slider_btn_txt',array(
101
+ 'label' => __('Button Text','spicebox'),
102
+ 'section' => 'slider_section',
103
+ 'type' => 'text',
104
+ ));
105
+
106
+ // Slider button link
107
+ $wp_customize->add_setting( 'home_slider_btn_link',array(
108
+ 'default' => __('#','spicebox'),
109
+ 'sanitize_callback' => 'spiceb_innofit_home_page_sanitize_text',
110
+ 'transport' => $selective_refresh,
111
+ ));
112
+ $wp_customize->add_control( 'home_slider_btn_link',array(
113
+ 'label' => __('Button Link','spicebox'),
114
+ 'section' => 'slider_section',
115
+ 'type' => 'text',
116
+ ));
117
+
118
+ // Slider button target
119
+ $wp_customize->add_setting(
120
+ 'home_slider_btn_target',
121
+ array(
122
+ 'default' => false,
123
+ 'sanitize_callback' => 'spiceb_innofit_home_page_sanitize_text',
124
+ ));
125
+ $wp_customize->add_control('home_slider_btn_target', array(
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',
148
+ 'settings' => 'home_slider_image',
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',
156
+ 'render_callback' => 'spiceb_innofit_slider_section_title_render_callback',
157
+
158
+ ) );
159
+
160
+ $wp_customize->selective_refresh->add_partial( 'home_slider_discription', array(
161
+ 'selector' => '.caption-content .subtitle',
162
+ 'settings' => 'home_slider_discription',
163
+ 'render_callback' => 'spiceb_innofit_slider_section_discription_render_callback',
164
+
165
+ ) );
166
+
167
+ $wp_customize->selective_refresh->add_partial( 'home_slider_btn_txt', array(
168
+ 'selector' => '.main-slider .btn-small',
169
+ 'settings' => 'home_slider_btn_txt',
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
+
inc/innofit/features/feature-subscribe-section.php ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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',
9
+ 'description'=>'',
10
+ 'panel' => 'section_settings',
11
+ 'priority' => 14,
12
+ ));
13
+
14
+
15
+ // Subscribe Section Tabs
16
+ $wp_customize->add_setting(
17
+ 'innofit_subscribe_tabs', array(
18
+ 'sanitize_callback' => 'sanitize_text_field',
19
+ )
20
+ );
21
+
22
+ $wp_customize->add_control(
23
+ new Innofit_Customize_Control_Tabs(
24
+ $wp_customize, 'innofit_subscribe_tabs', array(
25
+ 'section' => 'home_subscriber_section',
26
+ 'tabs' => array(
27
+ 'general' => array(
28
+ 'nicename' => esc_html__( 'General Settings', 'spicebox' ),
29
+ 'controls' => array(
30
+ 'innofit_subscribe_hide',
31
+ 'innofit_subscribe_background',
32
+ 'subscribe_image_overlay',
33
+ 'subscribe_overlay_section_color',
34
+ 'innofit_subscribe_title',
35
+ 'innofit_subscribe_subtitle',
36
+ 'widgets',
37
+ ),
38
+ ),
39
+ 'sendinblue' => array(
40
+ 'nicename' => esc_html__( 'SendinBlue plugin', 'spicebox' ),
41
+ 'controls' => array(
42
+ 'innofit_subscribe_info',
43
+ ),
44
+ ),
45
+ ),
46
+ )
47
+ )
48
+ );
49
+
50
+
51
+ // Subscriber section enable / disable
52
+ $wp_customize->add_setting( 'innofit_subscribe_hide' , array( 'default' => 'on') );
53
+ $wp_customize->add_control( 'innofit_subscribe_hide' , array(
54
+ 'label' => __( 'Enable Suscribe section', 'spicebox' ),
55
+ 'section' => 'home_subscriber_section',
56
+ 'type' => 'radio',
57
+ 'priority' => 1,
58
+ 'choices' => array(
59
+ 'on'=>__('ON', 'spicebox'),
60
+ 'off'=>__('OFF', 'spicebox')
61
+ )
62
+ ));
63
+
64
+
65
+ $wp_customize->add_setting(
66
+ 'innofit_subscribe_background', array(
67
+ 'default' => SPICEB_PLUGIN_URL . 'inc/innofit/images/subscribe/subscribe-bg.jpg',
68
+ 'sanitize_callback' => 'esc_url_raw',
69
+ )
70
+ );
71
+
72
+ $wp_customize->add_control(
73
+ new WP_Customize_Image_Control(
74
+ $wp_customize, 'innofit_subscribe_background', array(
75
+ 'label' => esc_html__( 'Background Image', 'spicebox' ),
76
+ 'section' => 'home_subscriber_section',
77
+ 'priority' => 5,
78
+ )
79
+ )
80
+ );
81
+
82
+ // Image overlay
83
+ $wp_customize->add_setting( 'subscribe_image_overlay', array(
84
+ 'default' => true,
85
+ 'sanitize_callback' => '',
86
+ ) );
87
+
88
+ $wp_customize->add_control('subscribe_image_overlay', array(
89
+ 'label' => __('Enable susbcribe image overlay', 'spicebox' ),
90
+ 'section' => 'home_subscriber_section',
91
+ 'type' => 'checkbox',
92
+ 'priority' => 6,
93
+ ) );
94
+
95
+
96
+ //Susbcribe Background Overlay Color
97
+ $wp_customize->add_setting( 'subscribe_overlay_section_color', array(
98
+ 'sanitize_callback' => 'sanitize_text_field',
99
+ 'default' => 'rgba(0, 11, 24, 0.80)',
100
+ ) );
101
+
102
+ $wp_customize->add_control(new Innofit_Customize_Alpha_Color_Control( $wp_customize,'subscribe_overlay_section_color', array(
103
+ 'label' => __('Subscribe image overlay color','spicebox' ),
104
+ 'palette' => true,
105
+ 'priority' => 7,
106
+ 'section' => 'home_subscriber_section')
107
+ ) );
108
+
109
+ $wp_customize->add_setting(
110
+ 'innofit_subscribe_title', array(
111
+ 'default' => esc_html__( 'Subscribe to our newsletter', 'spicebox' ),
112
+ 'sanitize_callback' => 'sanitize_text_field',
113
+ 'transport' => $selective_refresh,
114
+ )
115
+ );
116
+
117
+ $wp_customize->add_control(
118
+ 'innofit_subscribe_title', array(
119
+ 'label' => esc_html__( 'Title', 'spicebox' ),
120
+ 'section' => 'home_subscriber_section',
121
+ 'priority' => 10,
122
+ )
123
+ );
124
+
125
+ $wp_customize->add_setting(
126
+ 'innofit_subscribe_subtitle', array(
127
+ 'default' => esc_html__( 'Sign up now for more information about our company.', 'spicebox' ),
128
+ 'sanitize_callback' => 'sanitize_text_field',
129
+ 'transport' => $selective_refresh,
130
+ )
131
+ );
132
+
133
+ $wp_customize->add_control(
134
+ 'innofit_subscribe_subtitle', array(
135
+ 'label' => esc_html__( 'Description', 'spicebox' ),
136
+ 'section' => 'home_subscriber_section',
137
+ 'priority' => 15,
138
+ )
139
+ );
140
+ if ( class_exists( 'Innofit_Subscribe_Info' ) ) {
141
+ $wp_customize->add_setting(
142
+ 'innofit_subscribe_info', array(
143
+ 'sanitize_callback' => 'sanitize_text_field',
144
+ )
145
+ );
146
+
147
+ $wp_customize->add_control(
148
+ new Innofit_Subscribe_Info(
149
+ $wp_customize, 'innofit_subscribe_info', array(
150
+ 'label' => esc_html__( 'Instructions', 'spicebox' ),
151
+ 'section' => 'home_subscriber_section',
152
+ 'capability' => 'install_plugins',
153
+ 'priority' => 20,
154
+ )
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',
176
+ 'settings' => 'innofit_subscribe_title',
177
+ 'render_callback' => 'subscribe_title_content_render_callback',
178
+
179
+ ) );
180
+
181
+
182
+ $wp_customize->selective_refresh->add_partial( 'innofit_subscribe_subtitle', array(
183
+ 'selector' => '.subscribe-newsletter .section-subtitle',
184
+ 'settings' => 'innofit_subscribe_subtitle',
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
+ ?>
inc/innofit/features/feature-team-section.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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'),
9
+ 'panel' => 'section_settings',
10
+ 'priority' => 8,
11
+ ));
12
+
13
+ $wp_customize->add_setting( 'team_section_enable' , array( 'default' => 'on') );
14
+ $wp_customize->add_control( 'team_section_enable' , array(
15
+ 'label' => __( 'Enable Home Team section', 'spicebox' ),
16
+ 'section' => 'innofit_team_section',
17
+ 'type' => 'radio',
18
+ 'choices' => array(
19
+ 'on'=>__('ON', 'spicebox'),
20
+ 'off'=>__('OFF', 'spicebox')
21
+ )
22
+ ));
23
+
24
+ // Team section title
25
+ $wp_customize->add_setting( 'home_team_section_title',array(
26
+ 'default' => __('Meet our superheroes','spicebox'),
27
+ 'sanitize_callback' => 'innofit_home_page_sanitize_text',
28
+ 'transport' => $selective_refresh,
29
+ ));
30
+ $wp_customize->add_control( 'home_team_section_title',array(
31
+ 'label' => __('Title','spicebox'),
32
+ 'section' => 'innofit_team_section',
33
+ 'type' => 'text',
34
+ ));
35
+
36
+ //Team section discription
37
+ $wp_customize->add_setting( 'home_team_section_discription',array(
38
+ 'default'=> __('The best team available','spicebox'),
39
+ 'transport' => $selective_refresh,
40
+ ));
41
+ $wp_customize->add_control( 'home_team_section_discription',array(
42
+ 'label' => __('Description','spicebox'),
43
+ 'section' => 'innofit_team_section',
44
+ 'type' => 'textarea',
45
+ ));
46
+
47
+
48
+ if ( class_exists( 'Innofit_Repeater' ) ) {
49
+ $wp_customize->add_setting(
50
+ 'innofit_team_content', array(
51
+ )
52
+ );
53
+
54
+ $wp_customize->add_control(
55
+ new Innofit_Repeater(
56
+ $wp_customize, 'innofit_team_content', array(
57
+ 'label' => esc_html__( 'Team content', 'spicebox' ),
58
+ 'section' => 'innofit_team_section',
59
+ 'priority' => 15,
60
+ 'add_field_label' => esc_html__( 'Add new Team Member', 'spicebox' ),
61
+ 'item_name' => esc_html__( 'Team Member', 'spicebox' ),
62
+ 'customizer_repeater_image_control' => true,
63
+ 'customizer_repeater_title_control' => true,
64
+ 'customizer_repeater_subtitle_control' => true,
65
+ 'customizer_repeater_link_control' => true,
66
+ 'customizer_repeater_checkbox_control' => true,
67
+ 'customizer_repeater_repeater_control' => true,
68
+
69
+ )
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',
93
+ 'render_callback' => 'home_team_section_title_render_callback',
94
+
95
+ ) );
96
+
97
+ $wp_customize->selective_refresh->add_partial( 'home_team_section_discription', array(
98
+ 'selector' => '.team-members .section-title',
99
+ 'settings' => 'home_team_section_discription',
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
+ ?>
inc/innofit/features/feature-testimonial-section.php ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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',
9
+ 'priority' => 7,
10
+ ) );
11
+
12
+ // Enable testimonial section
13
+ $wp_customize->add_setting( 'testimonial_section_enable' , array( 'default' => 'on') );
14
+ $wp_customize->add_control( 'testimonial_section_enable' , array(
15
+ 'label' => __( 'Enable Home Testimonial section', 'spicebox' ),
16
+ 'section' => 'testimonial_section',
17
+ 'type' => 'radio',
18
+ 'choices' => array(
19
+ 'on'=>__('ON', 'spicebox'),
20
+ 'off'=>__('OFF', 'spicebox')
21
+ )
22
+ ));
23
+
24
+
25
+
26
+
27
+ //Testimonial Background Image
28
+ $wp_customize->add_setting( 'testimonial_callout_background', array(
29
+ 'sanitize_callback' => 'esc_url_raw',
30
+ ) );
31
+
32
+ $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'testimonial_callout_background', array(
33
+ 'label' => __( 'Background Image', 'spicebox' ),
34
+ 'section' => 'testimonial_section',
35
+ 'settings' => 'testimonial_callout_background',
36
+ ) ) );
37
+
38
+ // Image overlay
39
+ $wp_customize->add_setting( 'testimonial_image_overlay', array(
40
+ 'default' => true,
41
+ 'sanitize_callback' => 'sanitize_text_field',
42
+ ) );
43
+
44
+ $wp_customize->add_control('testimonial_image_overlay', array(
45
+ 'label' => __('Enable testimonial image overlay', 'spicebox' ),
46
+ 'section' => 'testimonial_section',
47
+ 'type' => 'checkbox',
48
+ ) );
49
+
50
+
51
+ //Testimonial Background Overlay Color
52
+ $wp_customize->add_setting( 'testimonial_overlay_section_color', array(
53
+ 'sanitize_callback' => 'sanitize_text_field',
54
+ 'default' => 'rgba(0, 11, 24, 0.80)',
55
+ ) );
56
+
57
+ $wp_customize->add_control(new Innofit_Customize_Alpha_Color_Control( $wp_customize,'testimonial_overlay_section_color', array(
58
+ 'label' => __('Testimonial image overlay color','spicebox' ),
59
+ 'palette' => true,
60
+ 'section' => 'testimonial_section')
61
+ ) );
62
+
63
+
64
+ // testimonial section title
65
+ $wp_customize->add_setting( 'home_testimonial_section_title',array(
66
+ 'capability' => 'edit_theme_options',
67
+ 'default' => __('What our clients say','spicebox'),
68
+ 'sanitize_callback' => 'innofit_home_page_sanitize_text',
69
+ 'transport' => $selective_refresh,
70
+ ));
71
+ $wp_customize->add_control( 'home_testimonial_section_title',array(
72
+ 'label' => __('Title','spicebox'),
73
+ 'section' => 'testimonial_section',
74
+ 'type' => 'text',
75
+ ));
76
+
77
+ //testimonial section discription
78
+ $wp_customize->add_setting( 'home_testimonial_section_discription',array(
79
+ 'capability' => 'edit_theme_options',
80
+ 'default'=> __('We provide best WordPress solutions for your business.','spicebox'),
81
+ 'sanitize_callback' => 'innofit_home_page_sanitize_text',
82
+ 'transport' => $selective_refresh,
83
+ ));
84
+ $wp_customize->add_control( 'home_testimonial_section_discription',array(
85
+ 'label' => __('Description','spicebox'),
86
+ 'section' => 'testimonial_section',
87
+ 'type' => 'textarea',
88
+ ));
89
+
90
+ if ( class_exists( 'Innofit_Repeater' ) ) {
91
+ $wp_customize->add_setting( 'innofit_testimonial_content', array(
92
+ ) );
93
+
94
+ $wp_customize->add_control( new Innofit_Repeater( $wp_customize, 'innofit_testimonial_content', array(
95
+ 'label' => esc_html__( 'Testimonial content', 'spicebox' ),
96
+ 'section' => 'testimonial_section',
97
+ 'add_field_label' => esc_html__( 'Add new Testimonial', 'spicebox' ),
98
+ 'item_name' => esc_html__( 'Testimonial', 'spicebox' ),
99
+ 'customizer_repeater_title_control' => true,
100
+ 'customizer_repeater_text_control' => true,
101
+ 'customizer_repeater_link_control' => true,
102
+ 'customizer_repeater_checkbox_control' => true,
103
+ 'customizer_repeater_image_control' => true,
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',
127
+ 'render_callback' => 'home_testimonial_section_title_render_callback',
128
+
129
+ ) );
130
+
131
+ $wp_customize->selective_refresh->add_partial( 'home_testimonial_section_discription', array(
132
+ 'selector' => '.testimonial-wrapper .section-subtitle',
133
+ 'settings' => 'home_testimonial_section_discription',
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
+ ?>
inc/innofit/features/feature-wooshop-section.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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',
9
+ 'priority' => 5,
10
+ ));
11
+
12
+ $wp_customize->add_setting( 'shop_section_enable' , array( 'default' => 'on') );
13
+ $wp_customize->add_control( 'shop_section_enable' , array(
14
+ 'label' => __( 'Enable Home Shop section', 'spicebox' ),
15
+ 'section' => 'innofit_shop_section',
16
+ 'type' => 'radio',
17
+ 'choices' => array(
18
+ 'on'=>__('ON', 'spicebox'),
19
+ 'off'=>__('OFF', 'spicebox')
20
+ )
21
+ ));
22
+
23
+ // Shop section title
24
+ $wp_customize->add_setting( 'home_shop_section_title',array(
25
+ 'default' => __('Featured Products','spicebox'),
26
+ 'sanitize_callback' => 'innofit_home_page_sanitize_text',
27
+ 'transport' => $selective_refresh,
28
+ ));
29
+ $wp_customize->add_control( 'home_shop_section_title',array(
30
+ 'label' => __('Title','spicebox'),
31
+ 'section' => 'innofit_shop_section',
32
+ 'type' => 'text',
33
+ ));
34
+
35
+ //Shop section discription
36
+ $wp_customize->add_setting( 'home_shop_section_discription',array(
37
+ 'default'=> __('Our amazing products','spicebox'),
38
+ 'transport' => $selective_refresh,
39
+ ));
40
+ $wp_customize->add_control( 'home_shop_section_discription',array(
41
+ 'label' => __('Description','spicebox'),
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',
60
+ 'render_callback' => 'home_shop_section_title_render_callback',
61
+
62
+ ) );
63
+
64
+ $wp_customize->selective_refresh->add_partial( 'home_shop_section_discription', array(
65
+ 'selector' => '.shop .section-title',
66
+ 'settings' => 'home_shop_section_discription',
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
+ ?>
inc/innofit/images/about/about.jpg ADDED
Binary file
inc/innofit/images/logo-footer.png ADDED
Binary file
inc/innofit/images/logo.png ADDED
Binary file
inc/innofit/images/slider/slider.jpg ADDED
Binary file
inc/innofit/images/subscribe/subscribe-bg.jpg ADDED
Binary file
inc/innofit/images/team/team1.jpg ADDED
Binary file
inc/innofit/images/team/team2.jpg ADDED
Binary file
inc/innofit/images/team/team3.jpg ADDED
Binary file
inc/innofit/images/team/team4.jpg ADDED
Binary file
inc/innofit/images/testimonial/testimonial-bg.jpg ADDED
Binary file
inc/innofit/images/testimonial/user1.jpg ADDED
Binary file
inc/innofit/images/testimonial/user2.jpg ADDED
Binary file
inc/innofit/images/testimonial/user3.jpg ADDED
Binary file
inc/innofit/sections/innofit-about-section.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ add_action('innofit_about_action','innofit_about_section');
3
+
4
+ function innofit_about_section()
5
+ {
6
+ $about_section_enabled = get_theme_mod('home_about_section_enabled','on');
7
+ $about_section_background = get_theme_mod('innofit_about_section_background');
8
+ if($about_section_enabled !='off')
9
+ {
10
+ $about_image = SPICEB_PLUGIN_URL .'inc/innofit/images/about/about.jpg';
11
+ $default = __('<div class="row v-center">
12
+ <div class="col-md-5 col-sm-5 col-xs-12">
13
+ <figure class="about-thumbnail mbottom-50">
14
+ <img src="'.$about_image.'" alt="About">
15
+ </figure>
16
+ </div>
17
+
18
+ <div class="col-md-7 col-sm-7 col-xs-12">
19
+ <div class="about-content mbottom-50">
20
+ <h6 class="entry-subtitle">Welcome to <span class="text-default">Innofit</span></h6>
21
+ <h1 class="entry-title">We have the right solutions</h1>
22
+ <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totame rems aperiam, eaque ipsa quae ab illo inventore veritatis quasi architecto beatae vitaes dicta sunt explicabo. Nemo enim ipsam voluptatem.</p>
23
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p>
24
+ <div class="ptop-15"><a href="#" class="btn-ex-small btn-animate border">Our Story</a></div>
25
+ </div>
26
+ </div>
27
+ </div>
28
+
29
+ ','spicebox');
30
+ $about_section_content = get_theme_mod('about_section_content',$default);
31
+ ?>
32
+ <section class="section-module about bg-grey <?php if($about_section_background=='') {?> left-right-half<?php }?>" <?php if($about_section_background!='') {?> style="background-image: url(<?php echo $about_section_background; ?>);"<?php } ?> id="about">
33
+ <div class="container">
34
+ <?php
35
+ echo $about_section_content;
36
+ ?> </div>
37
+ </section> <?php
38
+ }
39
+ }
40
+ ?>
inc/innofit/sections/innofit-callout-section.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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');
6
+ if($cta_section_enable !='off')
7
+ {
8
+ $home_call_out_title = get_theme_mod('home_call_out_title', __('We create beautiful WordPress themes for you!','spicebox'));
9
+ $home_call_out_desc = get_theme_mod('home_call_out_desc',__('Choose a package that suits all your needs to build a website.','spicebox'));
10
+ $home_call_out_btn_text = get_theme_mod('home_call_out_btn_text',__('Buy Innofit','spicebox'));
11
+ $home_call_out_btn_link = get_theme_mod('home_call_out_btn_link',esc_url('#'));
12
+ $home_call_out_btn_link_target = get_theme_mod('home_call_out_btn_link_target',true);
13
+ ?>
14
+ <!--Call to Action-->
15
+ <section class="section-module call-to-action-one bg-grey" id="call-to-action">
16
+ <div class="container">
17
+ <div class="row">
18
+ <div class="col-md-9 col-sm-9 col-xs-12">
19
+ <div class="text-left">
20
+ <h4 class="title"><?php echo $home_call_out_title; ?></h4>
21
+ <p><?php echo $home_call_out_desc;?></p>
22
+ </div>
23
+ </div>
24
+ <div class="col-md-3 col-sm-3 col-xs-12">
25
+ <div class="ptop-15 pbottom-5 text-right">
26
+ <?php if($home_call_out_btn_text!='') {?>
27
+ <a <?php if($home_call_out_btn_link !='' ) { ?> href="<?php echo $home_call_out_btn_link; ?>" class="btn-small btn-animate border-dark
28
+ " <?php if($home_call_out_btn_link_target== true) { echo "target='_blank'"; } } ?>><?php echo $home_call_out_btn_text; ?>
29
+ </a>
30
+ <?php } ?>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </section>
36
+ <!--/Call to Action-->
37
+ <?php }
38
+
39
+ } ?>
inc/innofit/sections/innofit-contact-section.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
7
+ $contact_form_background = get_theme_mod('contact_form_background', SPICEB_PLUGIN_URL .'inc/innofit/images/testimonial/testimonial-bg.jpg');
8
+ $contact_overlay_section_color = get_theme_mod('contact_overlay_section_color','rgba(250, 250, 250, 0.95)');
9
+ $contact_form_image_overlay = get_theme_mod('contact_form_image_overlay',true);
10
+
11
+ if($contact_form_background != '') { ?>
12
+ <section class="section-module contact" id="contact" style="background-image:url('<?php echo esc_url($contact_form_background);?>'); background-repeat: no-repeat; background-position: top left;">
13
+ <?php } else { ?>
14
+ <section class="section-module contact" id="contact">
15
+ <?php } ?>
16
+ <?php if($contact_form_image_overlay != false) { ?>
17
+ <div class="overlay" style="background-color:<?php echo $contact_overlay_section_color; ?>"></div>
18
+ <?php } ?>
19
+ <div class="container">
20
+ <div class="row v-center">
21
+ <?php
22
+ $contact_form_title_one = get_theme_mod('contact_form_title_one',__('Send us a message','innofit'));
23
+ $contact_form_title_two = get_theme_mod('contact_form_title_two',__('Contact Us','innofit'));
24
+
25
+ ?>
26
+ <div class="col-md-<?php if( get_theme_mod('contact_info_enable',true) == false ): echo '12'; else: echo '6'; endif; ?> col-sm-6 col-xs-12">
27
+ <div class="contact-form">
28
+ <?php if($contact_form_title_one != null): ?>
29
+ <h6 class="subtitle"><?php echo $contact_form_title_one; ?></h6>
30
+ <?php endif; ?>
31
+ <?php if($contact_form_title_two != null): ?>
32
+ <h2 class="title"><?php echo $contact_form_title_two; ?></h2>
33
+ <?php endif; ?>
34
+
35
+ <?php
36
+
37
+ if( get_theme_mod('contact_form_shortcode') !='' ) {
38
+ echo do_shortcode(get_theme_mod('contact_form_shortcode'));
39
+ }
40
+
41
+ ?>
42
+ </div>
43
+ </div>
44
+
45
+ <?php if( get_theme_mod('contact_info_enable',true) == true ):
46
+
47
+ $default = __('<h2 class="title">Get in touch</h2><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-map-marker"></i></div><div class="media-body"><h3 class="title">Find Us</h3><address>Porterfield 508 Virginia Street Chicago,<br> IL 60653 (USA)</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-mobile"></i></div><div class="media-body"><h3 class="title">Phone</h3><address>Mobile: (+91) 90 1900 - 6886 <br>Hotline: 1800 6886)</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-envelope-o"></i></div><div class="media-body"><h3 class="title">Email</h3><address><a href="mailto:suppor@tinnofit.com">support@innofit.com</a><a href="mailto:contact@innofit.com">contact@innofit.com</a></address></div></div></aside>','spicebox');
48
+
49
+ $contact_info_content = get_theme_mod('contact_info_content',$default);
50
+ ?>
51
+
52
+ <div class="col-md-6 col-sm-6 col-xs-12">
53
+ <div class="contact-info">
54
+ <?php echo $contact_info_content; ?>
55
+ </div>
56
+ </div>
57
+
58
+ <?php endif; ?>
59
+
60
+ </div>
61
+ </div>
62
+ </section>
63
+ <!--/End of Contact Section-->
64
+ <?php } } ?>
inc/innofit/sections/innofit-service-section.php ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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))
8
+ {
9
+ $service_data = json_encode( array(
10
+ array(
11
+ 'icon_value' => 'fa-headphones',
12
+ 'title' => esc_html__( 'Unlimited Support', 'spicebox' ),
13
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
14
+ 'link' => '#',
15
+ 'open_new_tab' => 'yes',
16
+ 'id' => 'customizer_repeater_56d7ea7f40b56',
17
+ ),
18
+ array(
19
+ 'icon_value' => 'fa-mobile',
20
+ 'title' => esc_html__( 'Pixel Perfect Design', 'spicebox' ),
21
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
22
+ 'link' => '#',
23
+ 'open_new_tab' => 'yes',
24
+ 'id' => 'customizer_repeater_56d7ea7f40b66',
25
+ ),
26
+ array(
27
+ 'icon_value' => 'fa fa-cogs',
28
+ 'title' => esc_html__( 'Powerful Options', 'spicebox' ),
29
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
30
+ 'link' => '#',
31
+ 'open_new_tab' => 'yes',
32
+ 'id' => 'customizer_repeater_56d7ea7f40b86',
33
+ ),
34
+ array(
35
+ 'icon_value' => 'fa-android',
36
+ 'title' => esc_html__( 'App Development', 'spicebox' ),
37
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
38
+ 'link' => '#',
39
+ 'open_new_tab' => 'yes',
40
+ 'id' => 'customizer_repeater_56d7ea7f40b88',
41
+ ),
42
+ array(
43
+ 'icon_value' => 'fa-code',
44
+ 'title' => esc_html__( 'Unique and Clean', 'spicebox' ),
45
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
46
+ 'link' => '#',
47
+ 'open_new_tab' => 'yes',
48
+ 'id' => 'customizer_repeater_56d7ea7f40b89',
49
+ ),
50
+ array(
51
+ 'icon_value' => 'fa-users',
52
+ 'title' => esc_html__( 'Satisfied Clients', 'spicebox' ),
53
+ 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
54
+ 'link' => '#',
55
+ 'open_new_tab' => 'yes',
56
+ 'id' => 'customizer_repeater_56d7ea7f40b91',
57
+ ),
58
+ ) );
59
+ }
60
+
61
+ $innofit_home_service_enabled = get_theme_mod('home_service_section_enabled','on');
62
+ if($innofit_home_service_enabled !='off')
63
+ {
64
+ $innofit_service_section_title = get_theme_mod('home_service_section_title',__('What we do','spicebox'));
65
+ $innofit_service_section_discription = get_theme_mod('home_service_section_discription',__('Services we provide','spicebox'));
66
+ ?>
67
+
68
+ <!-- Service Section -->
69
+ <section class="section-module services" id="services">
70
+ <div class="container">
71
+ <?php if($innofit_service_section_discription!='' || innofit_service_section_title!=''){ ?>
72
+ <div class="row">
73
+ <div class="section-header">
74
+ <?php if($innofit_service_section_discription!=''){ ?>
75
+ <p class="section-subtitle"><?php echo $innofit_service_section_discription; ?></p>
76
+ <?php } if($innofit_service_section_title){?>
77
+ <h1 class="section-title"><?php echo $innofit_service_section_title; ?></h1>
78
+ <?php }?>
79
+ </div>
80
+ </div>
81
+ <?php }?>
82
+
83
+
84
+ <div id="service_content">
85
+ <div class="row">
86
+ <?php $service_data = json_decode($service_data);
87
+ if (!empty($service_data))
88
+ {
89
+ foreach($service_data as $service_team)
90
+ { ?>
91
+ <div class="col-md-4 col-sm-6 col-xs-12">
92
+ <article class="post text-center">
93
+ <?php if($service_team->icon_value!=''){?>
94
+ <figure class="post-thumbnail">
95
+ <?php if($service_team->link!=''){?>
96
+ <a <?php if($service_team->open_new_tab== 'yes'){echo "target='_blank'";} ?> href="<?php echo $service_team->link; ?>">
97
+ <i class="fa <?php echo $service_team->icon_value; ?>"></i>
98
+ </a>
99
+ <?php }else{ ?>
100
+ <a><i class="fa <?php echo $service_team->icon_value; ?>"></i></a>
101
+ <?php } ?>
102
+ </figure>
103
+ <?php } else if($service_team->image_url!=''){ ?>
104
+ <figure class="post-thumbnail">
105
+ <?php if($service_team->link!=''){?>
106
+ <a <?php if($service_team->open_new_tab== 'yes'){echo "target='_blank'";} ?> href="<?php echo $service_team->link; ?>">
107
+ <?php }?>
108
+ <img src="<?php echo $service_team->image_url; ?>">
109
+ <?php if($service_team->link!=''){ ?>
110
+
111
+ </a>
112
+ <?php }?>
113
+ </figure>
114
+
115
+ <?php }
116
+
117
+ if ($service_team->title !=""){?>
118
+ <div class="entry-header">
119
+ <h5 class="entry-title">
120
+ <?php if($service_team->link!=''){ ?>
121
+ <a href="<?php echo $service_team->link; ?>" <?php if($service_team->open_new_tab== 'yes'){echo "target='_blank'";} ?>>
122
+ <?php }
123
+
124
+ echo $service_team->title;
125
+
126
+ if($service_team->link!=''){?>
127
+ </a>
128
+ <?php }?>
129
+ </h5>
130
+ </div>
131
+ <?php } if($service_team->text !="")?>
132
+ <div class="entry-content">
133
+ <p><?php echo $service_team->text ; ?></p>
134
+ </div>
135
+ </article>
136
+ </div>
137
+
138
+ <?php
139
+ }
140
+ }
141
+ ?>
142
+ </div></div>
143
+
144
+ </div>
145
+ </section>
146
+ <!-- /End of Service Section -->
147
+ <?php } //End of service section enable condition
148
+
149
+ } ?>
inc/innofit/sections/innofit-slider-section.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Slider section for the homepage.
4
+ */
5
+ add_action('innofit_slider_action','innofit_slider_section');
6
+
7
+ function innofit_slider_section()
8
+ {
9
+ $home_slider_image = get_theme_mod('home_slider_image',SPICEB_PLUGIN_URL .'inc/innofit/images/slider/slider.jpg');
10
+ $home_slider_title = get_theme_mod('home_slider_title',__('We provide solutions to<br /> grow your business','spicebox'));
11
+ $home_slider_discription = get_theme_mod('home_slider_discription',__('Welcome to Innofit','spicebox'));
12
+ $home_slider_btn_txt = get_theme_mod('home_slider_btn_txt','Read More');
13
+ $home_slider_btn_link = get_theme_mod('home_slider_btn_link',esc_url('#'));
14
+ $home_slider_btn_target = get_theme_mod('home_slider_btn_target',false);
15
+
16
+ $home_page_slider_enabled = get_theme_mod('home_page_slider_enabled','on');
17
+ if($home_page_slider_enabled !='off') {
18
+ ?>
19
+ <!-- Slider Section -->
20
+ <section class="main-slider" id="totop">
21
+ <div class="item home-section home-full-height" style="background-image:url(<?php echo $home_slider_image; ?>);" >
22
+ <div class="container slider-caption">
23
+ <div class="caption-content">
24
+ <?php if ( ! empty( $home_slider_discription ) || is_customize_preview() ) { ?>
25
+ <h5 class="subtitle"><?php echo $home_slider_discription; ?></h5>
26
+ <?php if ( ! empty( $home_slider_title ) || is_customize_preview() ) { ?>
27
+ <h1 class="title"><?php echo $home_slider_title; ?></h1>
28
+ <?php } ?>
29
+ <?php } if($home_slider_btn_txt) { ?>
30
+ <div class="ptop-15">
31
+ <a <?php if($home_slider_btn_link) { ?> href="<?php echo $home_slider_btn_link; } ?>"
32
+ <?php if($home_slider_btn_target) { ?> target="_blank" <?php } ?> class="btn-small btn-animate light">
33
+ <?php if($home_slider_btn_txt) { echo $home_slider_btn_txt; } ?></a>
34
+ </div>
35
+ <?php } ?>
36
+ </div>
37
+ </div>
38
+ <?php $slider_image_overlay = get_theme_mod('slider_image_overlay',true);
39
+ $slider_overlay_section_color = get_theme_mod('slider_overlay_section_color','rgba(0,0,0,0.30)');
40
+ if($slider_image_overlay != false) { ?>
41
+ <div class="overlay" style="background-color:<?php echo $slider_overlay_section_color;?>"></div>
42
+ <?php } ?>
43
+ </div>
44
+
45
+ <!-- Slider Pointer -->
46
+ <a href="#services" class="pointer-scroll section-scroll">
47
+ <i class="fa fa-angle-double-down scroll"></i>
48
+ </a>
49
+ <!-- /Slider Pointer -->
50
+ <?php
51
+ } ?>
52
+
53
+ </section>
54
+ <!-- /Slider Section -->
55
+ <?php
56
+ }
57
+ ?>
inc/innofit/sections/innofit-subscriber-section.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
7
+ $innofit_subscribe_hide = get_theme_mod('innofit_subscribe_hide','on');
8
+ if($innofit_subscribe_hide !='off')
9
+ {
10
+ $innofit_subscribe_background = get_theme_mod('innofit_subscribe_background', SPICEB_PLUGIN_URL . 'inc/innofit/images/subscribe/subscribe-bg.jpg');
11
+
12
+ $innofit_overlay_section_color = get_theme_mod('subscribe_overlay_section_color','rgba(0, 11, 24, 0.8)');
13
+ $innofit_subscribe_image_overlay = get_theme_mod('subscribe_image_overlay',true);
14
+
15
+ $innofit_subscribe_title = get_theme_mod('innofit_subscribe_title',esc_html__( 'Subscribe to our newsletter', 'spicebox' ));
16
+ $innofit_subscribe_subtitle = get_theme_mod('innofit_subscribe_subtitle',esc_html__( 'Sign up now for more information about our company.', 'spicebox' ));
17
+ ?>
18
+ <!--Subscribe Newsletter Section-->
19
+ <section class="subscribe-newsletter" id="subscribe" style="background-image:url('<?php echo esc_url($innofit_subscribe_background);?>');">
20
+ <?php if($innofit_subscribe_image_overlay != false) { ?>
21
+ <div class="overlay" style="background-color:<?php echo $innofit_overlay_section_color; ?>"></div>
22
+ <?php }?>
23
+ <div class="container">
24
+ <div class="row">
25
+ <div class="col-md-12">
26
+ <div class="section-header text-center">
27
+ <h1 class="section-title text-white"><?php echo $innofit_subscribe_title; ?></h1>
28
+ <p class="section-subtitle text-white"><?php echo $innofit_subscribe_subtitle; ?></p>
29
+ </div>
30
+ </div>
31
+ <div class="col-md-12">
32
+ <?php if ( is_active_sidebar( 'subscribe-widgets' ) ) : dynamic_sidebar( 'subscribe-widgets' ); endif;
33
+ ?>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </section>
38
+ <!--/End of Subscribe Newsletter Section-->
39
+ <!--/End of Team Section-->
40
+ <?php } }?>
inc/innofit/sections/innofit-team-section.php ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
7
+ $team_options = get_theme_mod('innofit_team_content');
8
+ $team_section_enable = get_theme_mod('team_section_enable','on');
9
+ if($team_section_enable !='off')
10
+ {
11
+
12
+
13
+
14
+ ?>
15
+ <!-- Team Section -->
16
+ <section class="section-module team-members" id="team">
17
+
18
+ <div class="container">
19
+
20
+ <?php
21
+ $home_team_section_title = get_theme_mod('home_team_section_title',__('Meet our superheroes','spicebox'));
22
+ $home_team_section_discription = get_theme_mod('home_team_section_discription',__('The best team available','spicebox'));
23
+ if(($home_team_section_title) || ($home_team_section_discription)!='' ) {
24
+ ?>
25
+ <div class="row">
26
+ <div class="col-md-12">
27
+ <div class="section-header">
28
+ <p class="section-subtitle"><?php echo $home_team_section_title; ?></p>
29
+ <h1 class="section-title"><?php echo $home_team_section_discription; ?></h1>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ <?php } ?>
34
+
35
+ </div>
36
+
37
+ <div class="container-fluid fullwidth">
38
+
39
+ <div class="row">
40
+ <?php $team_options = json_decode($team_options);
41
+ if( $team_options!='' )
42
+ {
43
+ foreach($team_options as $team_item){
44
+
45
+ $image = ! empty( $team_item->image_url ) ? apply_filters( 'innofit_translate_single_string', $team_item->image_url, 'Team section' ) : '';
46
+ $title = ! empty( $team_item->title ) ? apply_filters( 'innofit_translate_single_string', $team_item->title, 'Team section' ) : '';
47
+ $subtitle = ! empty( $team_item->subtitle ) ? apply_filters( 'innofit_translate_single_string', $team_item->subtitle, 'Team section' ) : '';
48
+ $link = ! empty( $team_item->link ) ? apply_filters( 'innofit_translate_single_string', $team_item->link, 'Team section' ) : '';
49
+ $open_new_tab = $team_item->open_new_tab; ?>
50
+ <div class="item">
51
+ <div class="col-md-3 col-sm-6 col-xs-12">
52
+
53
+ <div class="team-grid">
54
+ <div class="img-holder">
55
+ <?php if ( ! empty( $image ) ) : ?>
56
+ <?php
57
+ if ( ! empty( $link ) ) :
58
+ $link_html = '<a href="' . esc_url( $link ) . '"';
59
+ if ( function_exists( 'innofit_is_external_url' ) ) {
60
+ $link_html .= innofit_is_external_url( $link );
61
+ }
62
+ $link_html .= '>';
63
+ echo wp_kses_post( $link_html );
64
+ endif;
65
+ echo '<img class="img" src="' . esc_url( $image ) . '"';
66
+ if ( ! empty( $title ) ) {
67
+ echo 'alt="' . esc_attr( $title ) . '" title="' . esc_attr( $title ) . '"';
68
+ }
69
+ echo '/>';
70
+ if ( ! empty( $link ) ) {
71
+ echo '</a>';
72
+ }
73
+ ?>
74
+ <?php endif; ?>
75
+ </div>
76
+ <div class="details">
77
+ <?php if ( ! empty( $title ) ) : ?>
78
+
79
+ <?php if ( ! empty( $link ) ) : ?>
80
+ <a href="<?php echo $link ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>>
81
+ <?php endif; ?>
82
+ <h6 class="name"><?php echo esc_html( $title ); ?></h6>
83
+ <?php if ( ! empty( $link ) ) : ?>
84
+ </a>
85
+ <?php endif; ?>
86
+
87
+ <?php endif; ?><?php if ( ! empty( $subtitle ) ) : ?>
88
+ <span class="position"><?php echo esc_html( $subtitle ); ?></span>
89
+ <?php endif;
90
+ if ( ! empty( $team_item->social_repeater ) ) :
91
+ $icons = html_entity_decode( $team_item->social_repeater );
92
+ $icons_decoded = json_decode( $icons, true );
93
+ if ( ! empty( $icons_decoded ) ) : ?>
94
+ <ul class="social-links">
95
+ <?php
96
+ foreach ( $icons_decoded as $value ) {
97
+ $social_icon = ! empty( $value['icon'] ) ? apply_filters( 'innofit_translate_single_string', $value['icon'], 'Team section' ) : '';
98
+ $social_link = ! empty( $value['link'] ) ? apply_filters( 'innofit_translate_single_string', $value['link'], 'Team section' ) : '';
99
+
100
+ if ( ! empty( $social_icon ) ) {
101
+
102
+ ?>
103
+
104
+
105
+ <li><a <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?> href="<?php echo esc_url( $social_link ); ?>" class="btn btn-just-icon btn-simple"><i class="fa <?php echo esc_attr( $social_icon ); ?> "></i></a></li>
106
+
107
+ <?php
108
+
109
+
110
+ }
111
+
112
+ } endif;
113
+ endif;
114
+
115
+
116
+ ?>
117
+ </ul>
118
+ </div>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ <?php } } else { ?>
123
+
124
+
125
+ <div class="col-md-3 col-sm-6 col-xs-12">
126
+ <div class="team-grid">
127
+ <div class="img-holder">
128
+ <img src="<?php echo SPICEB_PLUGIN_URL ?>inc/innofit/images/team/team1.jpg" alt="Danial Wilson">
129
+ </div>
130
+ <div class="details">
131
+ <h6 class="name"><?php echo 'Danial Wilson'; ?></h6>
132
+ <span class="position"><?php _e('Senior Manager','spicebox'); ?></span>
133
+ <ul class="social-links">
134
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-facebook"></i></a></li>
135
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-twitter"></i></a></li>
136
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-google-plus"></i></a></li>
137
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-behance"></i></a></li>
138
+ </ul>
139
+ </div>
140
+ </div>
141
+ </div>
142
+ <div class="col-md-3 col-sm-6 col-xs-12">
143
+ <div class="team-grid">
144
+ <div class="img-holder">
145
+ <img src="<?php echo SPICEB_PLUGIN_URL ?>inc/innofit/images/team/team2.jpg" alt="Danial Wilson">
146
+ </div>
147
+ <div class="details">
148
+ <h6 class="name"><?php echo 'Amanda Smith'; ?></h6>
149
+ <span class="position"><?php _e('Founder & CEO','spicebox'); ?></span>
150
+ <ul class="social-links">
151
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-facebook"></i></a></li>
152
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-twitter"></i></a></li>
153
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-google-plus"></i></a></li>
154
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-behance"></i></a></li>
155
+ </ul>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ <div class="col-md-3 col-sm-6 col-xs-12">
160
+ <div class="team-grid">
161
+ <div class="img-holder">
162
+ <img src="<?php echo SPICEB_PLUGIN_URL ?>inc/innofit/images/team/team3.jpg" alt="Danial Wilson">
163
+ </div>
164
+ <div class="details">
165
+ <h6 class="name"><?php echo 'Victoria Wills'; ?></h6>
166
+ <span class="position"><?php _e('Web Master','spicebox'); ?></span>
167
+ <ul class="social-links">
168
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-facebook"></i></a></li>
169
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-twitter"></i></a></li>
170
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-google-plus"></i></a></li>
171
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-behance"></i></a></li>
172
+ </ul>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ <div class="col-md-3 col-sm-6 col-xs-12">
177
+ <div class="team-grid">
178
+ <div class="img-holder">
179
+ <img src="<?php echo SPICEB_PLUGIN_URL ?>inc/innofit/images/team/team4.jpg" alt="Danial Wilson">
180
+ </div>
181
+ <div class="details">
182
+ <h6 class="name"><?php echo 'Travis Marcus'; ?></h6>
183
+ <span class="position"><?php _e('UI Developer','spicebox'); ?></span>
184
+ <ul class="social-links">
185
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-facebook"></i></a></li>
186
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-twitter"></i></a></li>
187
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-google-plus"></i></a></li>
188
+ <li><a href="#" class="btn btn-just-icon btn-simple"><i class="fa fa-behance"></i></a></li>
189
+ </ul>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ <?php } ?>
194
+ </div>
195
+ </div>
196
+ </section>
197
+ <!--/End of Team Section-->
198
+ <?php } }?>
inc/innofit/sections/innofit-testimonail-section.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
7
+ $testimonial_options = get_theme_mod('innofit_testimonial_content');
8
+
9
+ $testimonial_section_enable = get_theme_mod('testimonial_section_enable','on');
10
+ if($testimonial_section_enable !='off')
11
+ {
12
+ $home_testimonial_section_title = get_theme_mod('home_testimonial_section_title',__('What our clients say','spicebox'));
13
+ $home_testimonial_section_discription = get_theme_mod('home_testimonial_section_discription',__('We provide best WordPress solutions for your business.','spicebox'));
14
+ if( $home_testimonial_section_title != '' || $home_testimonial_section_discription != '') {
15
+ ?>
16
+ <!-- Testimonial Section-->
17
+ <?php $testimonial_callout_background = get_theme_mod('testimonial_callout_background','');
18
+ if($testimonial_callout_background != '') { ?>
19
+ <section class="testimonial-wrapper" id="testimonial" style="background-image:url('<?php echo esc_url($testimonial_callout_background);?>'); background-repeat: no-repeat; background-position: top left;">
20
+ <?php } else { ?>
21
+ <section class="testimonial-wrapper" id="testimonial">
22
+ <?php }
23
+ $testimonial_overlay_section_color = get_theme_mod('testimonial_overlay_section_color','rgba(0, 11, 24, 0.80)');
24
+ $testimonial_image_overlay = get_theme_mod('testimonial_image_overlay',true);
25
+ ?>
26
+ <?php if($testimonial_image_overlay != false) { ?>
27
+ <div class="overlay" style="background-color:<?php echo $testimonial_overlay_section_color; ?>"></div>
28
+ <?php } ?>
29
+ <div class="container">
30
+ <div class="row">
31
+ <div class="col-md-12">
32
+ <div class="section-header text-left">
33
+ <h1 class="section-title text-white"><?php echo esc_attr($home_testimonial_section_title); ?></h1>
34
+ <p class="section-subtitle text-white"><?php echo esc_attr($home_testimonial_section_discription); ?></p>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+
40
+ </section>
41
+ <?php } ?>
42
+ <section class="testimonial">
43
+ <div class="container">
44
+ <div class="row">
45
+ <div class="owl-theme">
46
+ <?php
47
+ $testimonial_options = json_decode($testimonial_options);
48
+ if( $testimonial_options!='' )
49
+ {
50
+ $allowed_html = array(
51
+ 'br' => array(),
52
+ 'em' => array(),
53
+ 'strong' => array(),
54
+ 'b' => array(),
55
+ 'i' => array(),
56
+ );
57
+
58
+ foreach($testimonial_options as $testimonial_iteam){
59
+
60
+ $title = ! empty( $testimonial_iteam->title ) ? apply_filters( 'innofit_translate_single_string', $testimonial_iteam->title, 'Testimonial section' ) : '';
61
+ $test_desc = ! empty( $testimonial_iteam->text ) ? apply_filters( 'innofit_translate_single_string', $testimonial_iteam->text, 'Testimonial section' ) : '';
62
+ $test_link = $testimonial_iteam->link;
63
+ $open_new_tab = $testimonial_iteam->open_new_tab;
64
+
65
+ $designation = ! empty( $testimonial_iteam->designation ) ? apply_filters( 'innofit_translate_single_string', $testimonial_iteam->designation, 'Testimonial section' ) : '';
66
+ ?>
67
+ <div class="item col-md-4 col-sm-6 col-xs-12">
68
+ <blockquote class="testmonial-block text-center">
69
+
70
+ <?php $default_arg =array('class' => "img-circle"); ?>
71
+ <?php if($testimonial_iteam->image_url != ''): ?>
72
+ <figure class="avatar">
73
+ <a href="<?php echo $test_link; ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>>
74
+ <img alt="img" class="img-circle" src="<?php echo $testimonial_iteam->image_url; ?>" draggable="false">
75
+ </a>
76
+ </figure>
77
+ <?php endif; ?>
78
+
79
+ <div class="description">
80
+ <p><?php echo wp_kses( html_entity_decode( $test_desc ), $allowed_html ); ?></p>
81
+ </div>
82
+
83
+ <figcaption>
84
+ <cite class="name"> <a href="<?php echo $test_link; ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>><?php echo $title; ?> </a> <span class="designation"><?php echo $designation; ?></span>
85
+ </cite>
86
+ </figcaption>
87
+
88
+
89
+ </blockquote>
90
+ </div>
91
+ <?php } } else
92
+ {
93
+ $image = array('user1','user2','user3');
94
+ $name = array('Martin Wills','Amanda Smith','Travis Cullan');
95
+ $desc =array(__('Developer','spicebox'), __('Team Leader','spicebox'), __('Volunteer','spicebox'));
96
+ for($i=0; $i<=2; $i++) {
97
+ ?>
98
+ <div class="item col-md-4 col-sm-6 col-xs-12">
99
+ <blockquote class="testmonial-block text-center">
100
+ <figure class="avatar">
101
+ <img src="<?php echo SPICEB_PLUGIN_URL ?>/inc/innofit/images/testimonial/<?php echo $image[$i]; ?>.jpg" class="img-circle" alt="img">
102
+ </figure>
103
+ <div class="description">
104
+ <p><?php echo "We are so glad that we made the switch to use Innofit this year and our results were fantastic."; ?></p>
105
+ </div>
106
+ <figcaption>
107
+ <cite class="name"><a href="#"><?php echo $name[$i]; ?></a><span class="designation"><?php echo $desc[$i]; ?></span></cite>
108
+ </figcaption>
109
+ </blockquote>
110
+ </div>
111
+ <?php } } ?>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ </section>
116
+ <!-- /End of Testimonial Section-->
117
+ <?php } }?>
inc/innofit/sections/innofit-wooproduct-section.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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');
9
+ if($shop_section_enable !='off')
10
+ {
11
+ ?>
12
+ <!-- Product & Shop Section -->
13
+ <section class="section-module shop" id="shop">
14
+ <div class="container">
15
+
16
+ <?php $home_shop_section_title = get_theme_mod('home_shop_section_title',__('Featured Products','spicebox'));
17
+ $home_shop_section_discription = get_theme_mod('home_shop_section_discription',__('Our amazing products','spicebox'));
18
+ if(($home_shop_section_title) || ($home_shop_section_discription)!='' ) {
19
+ ?>
20
+ <div class="row">
21
+ <div class="section-header">
22
+ <p class="section-subtitle"><?php echo $home_shop_section_title; ?></p>
23
+ <h1 class="section-title"><?php echo $home_shop_section_discription; ?></h1>
24
+ </div>
25
+ </div>
26
+ <?php }
27
+ $args = array(
28
+ 'post_type' => 'product',
29
+ 'posts_per_page' => 4,
30
+ );
31
+ /* Exclude hidden products from the loop */
32
+ $args['tax_query'] = array(
33
+ array(
34
+ 'taxonomy' => 'product_visibility',
35
+ 'field' => 'name',
36
+ 'terms' => 'exclude-from-catalog',
37
+ 'operator' => 'NOT IN',
38
+
39
+
40
+ ),
41
+ );
42
+ ?>
43
+ <div class="row">
44
+ <?php
45
+ $loop = new WP_Query( $args );
46
+ while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?>
47
+ <div class="item <?php echo the_title(); ?>" data-profile="<?php echo $loop->post->ID; ?>">
48
+ <div class="col-md-3 col-sm-6 col-xs-12">
49
+ <div class="products">
50
+ <div class="item-img">
51
+ <?php the_post_thumbnail(); ?>
52
+ <?php if ( $product->is_on_sale() ) : ?>
53
+
54
+ <?php echo apply_filters( 'woocommerce_sale_flash', '<span class="onsale">' . esc_html__( 'On Sale!', 'innofit' ) . '</span>', $product ); ?>
55
+ <?php endif; ?>
56
+
57
+ <div class="add-to-cart">
58
+ <?php woocommerce_template_loop_add_to_cart( $loop->post, $product ); ?>
59
+ </div>
60
+
61
+ </div>
62
+ <div class="product-price">
63
+ <?php if ($average = $product->get_average_rating()) : ?>
64
+ <ul class="woocommerce rating">
65
+ <li>
66
+ <?php echo '<div class="star-rating" title="'.sprintf(__( 'Rated %s out of 5', 'innofit' ), $average).'"><span style="width:'.( ( $average / 5 ) * 100 ) . '%"><strong itemprop="ratingValue" class="rating">'.$average.'</strong> '.__( 'out of 5', 'innofit' ).'</span></div>'; ?>
67
+ </li>
68
+ </ul>
69
+ <?php endif; ?>
70
+ <h5 class="woocommerce-loop-product__title"><a href="<?php the_permalink(); ?>" title="" tabindex="-1"><?php the_title(); ?></a></h5>
71
+ <span class="woocommerce-Price-amount"><?php echo $product->get_price_html(); ?></span>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ <?php endwhile; ?>
77
+ <?php wp_reset_postdata(); ?>
78
+ </div>
79
+ <!-- /Item Scroll -->
80
+
81
+ </div>
82
+ </section>
83
+ <!-- /Product & Shop Section -->
84
+ <?php } } }?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: spicethemes
3
  Tags: widget, admin, widgets
4
  Requires at least: 3.3+
5
  Tested up to: 4.9.5
6
- Stable tag: 0.3.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -74,4 +74,9 @@ This plugin create repeater controls in the customizer settings allowing you to
74
 
75
  = 0.3.2 =
76
 
77
- 1. Remove Dobule backslah from images.
 
 
 
 
 
3
  Tags: widget, admin, widgets
4
  Requires at least: 3.3+
5
  Tested up to: 4.9.5
6
+ Stable tag: 0.3.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
74
 
75
  = 0.3.2 =
76
 
77
+ 1. Remove Dobule backslah from images.
78
+
79
+ = 0.3.3 =
80
+
81
+ 1. Added Innofit theme functionality.
82
+ 2. Added Child theme name.
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.2
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
@@ -26,7 +26,7 @@ function spiceb_activate() {
26
 
27
  }
28
 
29
- if ( 'Chilly' == $theme->name){
30
  require_once('inc/spicepress/features/feature-service-section.php');
31
  require_once('inc/spicepress/features/feature-portfolio-section.php');
32
  require_once('inc/spicepress/features/feature-testimonial-section.php');
@@ -35,13 +35,37 @@ function spiceb_activate() {
35
  require_once('inc/spicepress/sections/spicepress-testimonail-section.php');
36
  require_once('inc/spicepress/customizer.php');
37
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  }
40
  add_action( 'init', 'spiceb_activate' );
41
 
42
 
43
  $theme = wp_get_theme();
44
- if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name || 'Chilly' == $theme->name){
45
 
46
 
47
  register_activation_hook( __FILE__, 'spiceb_install_function');
@@ -62,10 +86,36 @@ $item_details_page = get_option('item_details_page');
62
 
63
  }
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  //Sanatize text
66
  function spiceb_spicepress_home_page_sanitize_text( $input ) {
67
 
68
  return wp_kses_post( force_balance_tags( $input ) );
69
 
 
 
 
 
 
 
70
  }
71
  ?>
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
+ Version: 0.3.3
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
26
 
27
  }
28
 
29
+ if ( 'Chilly' == $theme->name || 'SpiceBlue' == $theme->name){
30
  require_once('inc/spicepress/features/feature-service-section.php');
31
  require_once('inc/spicepress/features/feature-portfolio-section.php');
32
  require_once('inc/spicepress/features/feature-testimonial-section.php');
35
  require_once('inc/spicepress/sections/spicepress-testimonail-section.php');
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
 
63
  }
64
  add_action( 'init', 'spiceb_activate' );
65
 
66
 
67
  $theme = wp_get_theme();
68
+ if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name || 'Chilly' == $theme->name || 'SpiceBlue' == $theme->name){
69
 
70
 
71
  register_activation_hook( __FILE__, 'spiceb_install_function');
86
 
87
  }
88
 
89
+
90
+ //Innofit
91
+ if ( 'Innofit' == $theme->name ){
92
+
93
+ register_activation_hook( __FILE__, 'spiceb_install_function');
94
+ function spiceb_install_function()
95
+ {
96
+ $item_details_page = get_option('item_details_page');
97
+ if(!$item_details_page){
98
+ require_once('inc/innofit/default-pages/upload-media.php');
99
+ require_once('inc/innofit/default-pages/home-page.php');
100
+ require_once('inc/innofit/default-widgets/default-widget.php');
101
+ require_once('inc/innofit/default-pages/home-custom-menu.php');
102
+ update_option( 'item_details_page', 'Done' );
103
+ }
104
+ }
105
+
106
+ }
107
+
108
+
109
  //Sanatize text
110
  function spiceb_spicepress_home_page_sanitize_text( $input ) {
111
 
112
  return wp_kses_post( force_balance_tags( $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
  ?>