PluginProbe
SpiceBox / 0.6
SpiceBox v0.6
trunk 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.2.7 0.2.8 0.2.9 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 0.3.9.1 0.3.9.2 0.4 0.5 0.6 0.7 1.0 All 76 releases
spicebox / inc / innofit / customizer.php

customizer.php in SpiceBox 0.6, at inc/innofit/customizer.php

286 lines 10.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 'choice' => 'customizer_repeater_icon',
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 'choice' => 'customizer_repeater_icon',
23 'link' => '#',
24 'open_new_tab' => 'yes',
25 'id' => 'customizer_repeater_56d7ea7f40b66',
26 ),
27 array(
28 'icon_value' => 'fa-cogs',
29 'title' => esc_html__( 'Powerful Options', 'spicebox' ),
30 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
31 'choice' => 'customizer_repeater_icon',
32 'link' => '#',
33 'open_new_tab' => 'yes',
34 'id' => 'customizer_repeater_56d7ea7f40b86',
35 ),
36 array(
37 'icon_value' => 'fa-android',
38 'title' => esc_html__( 'App Development', 'spicebox' ),
39 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
40 'choice' => 'customizer_repeater_icon',
41 'link' => '#',
42 'open_new_tab' => 'yes',
43 'id' => 'customizer_repeater_56d7ea7f40b88',
44 ),
45 array(
46 'icon_value' => 'fa-code',
47 'title' => esc_html__( 'Unique and Clean', 'spicebox' ),
48 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
49 'choice' => 'customizer_repeater_icon',
50 'link' => '#',
51 'open_new_tab' => 'yes',
52 'id' => 'customizer_repeater_56d7ea7f40b89',
53 ),
54 array(
55 'icon_value' => 'fa-users',
56 'title' => esc_html__( 'Satisfied Clients', 'spicebox' ),
57 'text' => 'Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore.',
58 'choice' => 'customizer_repeater_icon',
59 'link' => '#',
60 'open_new_tab' => 'yes',
61 'id' => 'customizer_repeater_56d7ea7f40b91',
62 ),
63
64 ) );
65
66 }
67 }
68
69 add_action( 'customize_register', 'innofit_service_default_customize_register' );
70
71 endif;
72
73 // Innofit Testimonial content data
74 if ( ! function_exists( 'innofit_testimonial_default_customize_register' ) ) :
75 add_action( 'customize_register', 'innofit_testimonial_default_customize_register' );
76 function innofit_testimonial_default_customize_register( $wp_customize ){
77
78 //Innofit default testimonial data.
79 $innofit_testimonial_content_control = $wp_customize->get_setting( 'innofit_testimonial_content' );
80 if ( ! empty( $innofit_testimonial_content_control ) )
81 {
82 $innofit_testimonial_content_control->default = json_encode( array(
83 array(
84 'title' => 'Martin Wills',
85 'text' => 'We are so glad that we made the switch to use Innofit this year and our results were fantastic.',
86 'designation' => __('Developer','spicebox'),
87 'link' => '#',
88 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/testimonial/user1.jpg',
89 'open_new_tab' => 'no',
90 'id' => 'customizer_repeater_56d7ea7f40b96',
91
92 ),
93 array(
94 'title' => 'Amanda Smith',
95 'text' => 'We are so glad that we made the switch to use Innofit this year and our results were fantastic.',
96 'designation' => __('Team Leader','spicebox'),
97 'link' => '#',
98 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/testimonial/user2.jpg',
99 'open_new_tab' => 'no',
100 'id' => 'customizer_repeater_56d7ea7f40b97',
101 ),
102 array(
103 'title' => 'Travis Cullan',
104 'text' => 'We are so glad that we made the switch to use Innofit this year and our results were fantastic.',
105 'designation' => __('Volunteer','spicebox'),
106 'link' => '#',
107 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/testimonial/user3.jpg',
108 'id' => 'customizer_repeater_56d7ea7f40b98',
109 'open_new_tab' => 'no',
110 ),
111
112 ) );
113
114 }
115
116
117 }
118 endif;
119
120
121 // Innofit Team content data
122 if ( ! function_exists( 'innofit_team_default_customize_register' ) ) :
123 add_action( 'customize_register', 'innofit_team_default_customize_register' );
124 function innofit_team_default_customize_register( $wp_customize ){
125 //Innofit default team data.
126 $innofit_team_content_control = $wp_customize->get_setting( 'innofit_team_content' );
127 if ( ! empty( $innofit_team_content_control ) )
128 {
129 $innofit_team_content_control->default = json_encode( array(
130 array(
131 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/team/team1.jpg',
132 'title' => 'Danial Wilson',
133 'subtitle' => esc_html__( 'Senior Manager', 'spicebox' ),
134 'open_new_tab' => 'no',
135 'id' => 'customizer_repeater_56d7ea7f40c56',
136 'social_repeater' => json_encode(
137 array(
138 array(
139 'id' => 'customizer-repeater-social-repeater-57fb908674e06',
140 'link' => 'facebook.com',
141 'icon' => 'fa-facebook',
142 ),
143 array(
144 'id' => 'customizer-repeater-social-repeater-57fb9148530fc',
145 'link' => 'twitter.com',
146 'icon' => 'fa-twitter',
147 ),
148 array(
149 'id' => 'customizer-repeater-social-repeater-57fb9150e1e89',
150 'link' => 'linkedin.com',
151 'icon' => 'fa-linkedin',
152 ),
153
154 array(
155 'id' => 'customizer-repeater-social-repeater-57fb9150e1e256',
156 'link' => 'behance.com',
157 'icon' => 'fa-behance',
158 ),
159 )
160 ),
161 ),
162 array(
163 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/team/team2.jpg',
164 'title' => 'Amanda Smith',
165 'subtitle' => esc_html__( 'Founder & CEO', 'spicebox' ),
166 'open_new_tab' => 'no',
167 'id' => 'customizer_repeater_56d7ea7f40c66',
168 'social_repeater' => json_encode(
169 array(
170 array(
171 'id' => 'customizer-repeater-social-repeater-57fb9155a1072',
172 'link' => 'facebook.com',
173 'icon' => 'fa-facebook',
174 ),
175 array(
176 'id' => 'customizer-repeater-social-repeater-57fb9160ab683',
177 'link' => 'twitter.com',
178 'icon' => 'fa-twitter',
179 ),
180 array(
181 'id' => 'customizer-repeater-social-repeater-57fb916ddffc9',
182 'link' => 'linkedin.com',
183 'icon' => 'fa-linkedin',
184 ),
185 array(
186 'id' => 'customizer-repeater-social-repeater-57fb916ddffc784',
187 'link' => 'behance.com',
188 'icon' => 'fa-behance',
189 ),
190 )
191 ),
192 ),
193 array(
194 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/team/team3.jpg',
195 'title' => 'Victoria Wills',
196 'subtitle' => esc_html__( 'Web Master', 'spicebox' ),
197 'text' => 'Pok pok direct trade godard street art, poutine fam typewriter food truck narwhal kombucha wolf cardigan butcher whatever pickled you.',
198 'open_new_tab' => 'no',
199 'id' => 'customizer_repeater_56d7ea7f40c76',
200 'social_repeater' => json_encode(
201 array(
202 array(
203 'id' => 'customizer-repeater-social-repeater-57fb917e4c69e',
204 'link' => 'facebook.com',
205 'icon' => 'fa-facebook',
206 ),
207 array(
208 'id' => 'customizer-repeater-social-repeater-57fb91830825c',
209 'link' => 'twitter.com',
210 'icon' => 'fa-twitter',
211 ),
212 array(
213 'id' => 'customizer-repeater-social-repeater-57fb918d65f2e',
214 'link' => 'linkedin.com',
215 'icon' => 'fa-linkedin',
216 ),
217
218 array(
219 'id' => 'customizer-repeater-social-repeater-57fb918d65f2e8',
220 'link' => 'behance.com',
221 'icon' => 'fa-behance',
222 ),
223 )
224 ),
225 ),
226 array(
227 'image_url' => SPICEB_PLUGIN_URL .'inc/innofit/images/team/team4.jpg',
228 'title' => 'Travis Marcus',
229 'subtitle' => esc_html__( 'UI Developer', 'spicebox' ),
230 'open_new_tab' => 'no',
231 'id' => 'customizer_repeater_56d7ea7f40c86',
232 'social_repeater' => json_encode(
233 array(
234 array(
235 'id' => 'customizer-repeater-social-repeater-57fb925cedcb2',
236 'link' => 'facebook.com',
237 'icon' => 'fa-facebook',
238 ),
239 array(
240 'id' => 'customizer-repeater-social-repeater-57fb92615f030',
241 'link' => 'twitter.com',
242 'icon' => 'fa-twitter',
243 ),
244 array(
245 'id' => 'customizer-repeater-social-repeater-57fb9266c223a',
246 'link' => 'linkedin.com',
247 'icon' => 'fa-linkedin',
248 ),
249
250 array(
251 'id' => 'customizer-repeater-social-repeater-57fb9266c223a',
252 'link' => 'behance.com',
253 'icon' => 'fa-behance',
254 ),
255 )
256 ),
257 ),
258
259 ) );
260
261 }
262 }
263 endif;
264
265 // Innofit Pricing content data
266 if ( ! function_exists( 'innofit_pricing_default_customize_register' ) ) :
267 add_action( 'customize_register', 'innofit_pricing_default_customize_register' );
268 function innofit_pricing_default_customize_register( $wp_customize ){
269 //SpicePrss default team data.
270 $innofit_pricing_content_control = $wp_customize->get_setting( 'innofit_pricing_content' );
271 if ( ! empty( $innofit_pricing_content_control ) )
272 {
273 $innofit_pricing_content_control->default = json_encode(
274
275 array(
276
277 array(
278 'price_heighlight' => 'customizer_repeater_price_heighlight_nonlight',
279 ),
280
281
282 ) );
283
284 }
285 }
286 endif;