PluginProbe
SpiceBox / 0.3.3
SpiceBox v0.3.3
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.3.3, at inc/innofit/customizer.php

257 lines 9.2 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 '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;