PluginProbe
Ultimate Store Kit – Addon For WooCommerce, EDD and Elementor / trunk
Ultimate Store Kit – Addon For WooCommerce, EDD and Elementor vtrunk
3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 trunk 1.5.0 1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.2 2.1.3 All 87 releases
ultimate-store-kit / includes / Admin / ModuleService.php

ModuleService.php in Ultimate Store Kit – Addon For WooCommerce, EDD and Elementor trunk, at includes/Admin/ModuleService.php

1,109 lines 55.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace UltimateStoreKit\Admin;
4
5
6
7 if (!defined('ABSPATH')) {
8 exit;
9 } // Exit if accessed directly
10
11 class ModuleService {
12
13
14
15 public static function get_widget_settings($callable) {
16 $settings_fields = [
17 'ultimate_store_kit_active_modules' => [
18
19 [
20 'name' => 'add-to-cart',
21 'label' => esc_html__('Add to Cart (Single)', 'ultimate-store-kit'),
22 'type' => 'checkbox',
23 'default' => "on",
24 'plugin_name' => 'woocommerce',
25 'plugin_path' => 'woocommerce/woocommerce.php',
26 'widget_type' => 'pro',
27 'content_type' => 'woocommerce single',
28 'demo_url' => 'https://storekit.pro/demo/add-to-cart/',
29 'video_url' => '',
30 ],
31 [
32 'name' => 'additional-information',
33 'label' => esc_html__('Additional Information (Single)', 'ultimate-store-kit'),
34 'type' => 'checkbox',
35 'default' => "on",
36 'plugin_name' => 'woocommerce',
37 'plugin_path' => 'woocommerce/woocommerce.php',
38 'widget_type' => 'pro',
39 'content_type' => 'woocommerce single',
40 'demo_url' => 'https://storekit.pro/demo/additional-information/',
41 'video_url' => '',
42 ],
43 [
44 'name' => 'account-address',
45 'label' => esc_html__('Account Address', 'ultimate-store-kit'),
46 'type' => 'checkbox',
47 'default' => "off",
48 'widget_type' => 'pro',
49 'plugin_name' => 'woocommerce',
50 'plugin_path' => 'woocommerce/woocommerce.php',
51 'content_type' => 'woocommerce account',
52 'demo_url' => 'https://storekit.pro/demo/account-address/',
53 'video_url' => '',
54 ],
55 [
56 'name' => 'account-dashboard',
57 'label' => esc_html__('Account Dashboard', 'ultimate-store-kit'),
58 'type' => 'checkbox',
59 'default' => "off",
60 'widget_type' => 'pro',
61 'plugin_name' => 'woocommerce',
62 'plugin_path' => 'woocommerce/woocommerce.php',
63 'content_type' => 'woocommerce account',
64 'demo_url' => 'https://storekit.pro/demo/account-dashboard/',
65 'video_url' => '',
66 ],
67 [
68 'name' => 'account-details',
69 'label' => esc_html__('Account Details', 'ultimate-store-kit'),
70 'type' => 'checkbox',
71 'default' => "off",
72 'widget_type' => 'pro',
73 'plugin_name' => 'woocommerce',
74 'plugin_path' => 'woocommerce/woocommerce.php',
75 'content_type' => 'woocommerce account',
76 'demo_url' => 'https://storekit.pro/demo/account-details/',
77 'video_url' => '',
78 ],
79 [
80 'name' => 'account-downloads',
81 'label' => esc_html__('Account Download', 'ultimate-store-kit'),
82 'type' => 'checkbox',
83 'default' => "off",
84 'widget_type' => 'pro',
85 'plugin_name' => 'woocommerce',
86 'plugin_path' => 'woocommerce/woocommerce.php',
87 'content_type' => 'woocommerce account',
88 'demo_url' => 'https://storekit.pro/demo/account-downloads/',
89 'video_url' => '',
90 ],
91 [
92 'name' => 'account-login-form',
93 'label' => esc_html__('Account Login Form', 'ultimate-store-kit'),
94 'type' => 'checkbox',
95 'default' => "off",
96 'widget_type' => 'pro',
97 'plugin_name' => 'woocommerce',
98 'plugin_path' => 'woocommerce/woocommerce.php',
99 'content_type' => 'woocommerce account',
100 'demo_url' => 'https://storekit.pro/demo/account-login-form/',
101 'video_url' => '',
102 ],
103 [
104 'name' => 'account-logout',
105 'label' => esc_html__('Account Logout', 'ultimate-store-kit'),
106 'type' => 'checkbox',
107 'default' => "off",
108 'widget_type' => 'pro',
109 'plugin_name' => 'woocommerce',
110 'plugin_path' => 'woocommerce/woocommerce.php',
111 'content_type' => 'woocommerce account',
112 'demo_url' => 'https://storekit.pro/demo/account-logout/',
113 'video_url' => '',
114 ],
115 [
116 'name' => 'account-navigation',
117 'label' => esc_html__('Account Navigation', 'ultimate-store-kit'),
118 'type' => 'checkbox',
119 'default' => "off",
120 'widget_type' => 'pro',
121 'plugin_name' => 'woocommerce',
122 'plugin_path' => 'woocommerce/woocommerce.php',
123 'content_type' => 'woocommerce account',
124 'demo_url' => 'https://storekit.pro/demo/account-navigation/',
125 'video_url' => '',
126 ],
127 [
128 'name' => 'account-order-details',
129 'label' => esc_html__('Account Order Details', 'ultimate-store-kit'),
130 'type' => 'checkbox',
131 'default' => "off",
132 'widget_type' => 'pro',
133 'plugin_name' => 'woocommerce',
134 'plugin_path' => 'woocommerce/woocommerce.php',
135 'content_type' => 'woocommerce account',
136 'demo_url' => 'https://storekit.pro/demo/account-order-details/',
137 'video_url' => '',
138 ],
139 [
140 'name' => 'account-orders',
141 'label' => esc_html__('Account Orders', 'ultimate-store-kit'),
142 'type' => 'checkbox',
143 'default' => "off",
144 'widget_type' => 'pro',
145 'plugin_name' => 'woocommerce',
146 'plugin_path' => 'woocommerce/woocommerce.php',
147 'content_type' => 'woocommerce account',
148 'demo_url' => 'https://storekit.pro/demo/account-orders/',
149 'video_url' => '',
150 ],
151 [
152 'name' => 'account-registration-form',
153 'label' => esc_html__('Account Registration Form', 'ultimate-store-kit'),
154 'type' => 'checkbox',
155 'default' => "off",
156 'widget_type' => 'pro',
157 'plugin_name' => 'woocommerce',
158 'plugin_path' => 'woocommerce/woocommerce.php',
159 'content_type' => 'woocommerce account',
160 'demo_url' => 'https://storekit.pro/demo/account-registration-form/',
161 'video_url' => '',
162 ],
163 [
164 'name' => 'breadcrumbs',
165 'label' => esc_html__('Breadcrumbs (Single)', 'ultimate-store-kit'),
166 'type' => 'checkbox',
167 'default' => "on",
168 'widget_type' => 'pro',
169 'plugin_name' => 'woocommerce',
170 'plugin_path' => 'woocommerce/woocommerce.php',
171 'content_type' => 'single',
172 'demo_url' => 'https://storekit.pro/demo/breadcrumbs/',
173 'video_url' => '',
174 ],
175 [
176 'name' => 'call-for-price',
177 'label' => esc_html__('Call for Price (Single)', 'ultimate-store-kit'),
178 'type' => 'checkbox',
179 'default' => "off",
180 'plugin_name' => 'woocommerce',
181 'plugin_path' => 'woocommerce/woocommerce.php',
182 'widget_type' => 'pro',
183 'content_type' => 'woocommerce single',
184 'demo_url' => '#https://storekit.pro/demo/call-for-price/',
185 'video_url' => '',
186 ],
187 // CHECKOUT
188 [
189 'name' => 'checkout-additional-info',
190 'label' => esc_html__('Checkout Additional Info', 'ultimate-store-kit'),
191 'type' => 'checkbox',
192 'default' => "off",
193 'widget_type' => 'pro',
194 'plugin_name' => 'woocommerce',
195 'plugin_path' => 'woocommerce/woocommerce.php',
196 'content_type' => 'checkout',
197 'demo_url' => 'https://storekit.pro/demo/checkout-additional-info/',
198 'video_url' => '',
199 ],
200 [
201 'name' => 'checkout-billing-address',
202 'label' => esc_html__('Checkout Billing Address', 'ultimate-store-kit'),
203 'type' => 'checkbox',
204 'default' => "off",
205 'widget_type' => 'pro',
206 'plugin_name' => 'woocommerce',
207 'plugin_path' => 'woocommerce/woocommerce.php',
208 'content_type' => 'checkout',
209 'demo_url' => 'https://storekit.pro/demo/checkout-billing-address/',
210 'video_url' => '',
211 ],
212 [
213 'name' => 'checkout-coupon-form',
214 'label' => esc_html__('Checkout Coupon Form', 'ultimate-store-kit'),
215 'type' => 'checkbox',
216 'default' => "off",
217 'widget_type' => 'pro',
218 'plugin_name' => 'woocommerce',
219 'plugin_path' => 'woocommerce/woocommerce.php',
220 'content_type' => 'checkout',
221 'demo_url' => 'https://storekit.pro/demo/checkout-coupon-form/',
222 'video_url' => '',
223 ],
224 [
225 'name' => 'checkout-login-form',
226 'label' => esc_html__('Checkout Login Form', 'ultimate-store-kit'),
227 'type' => 'checkbox',
228 'default' => "off",
229 'widget_type' => 'pro',
230 'plugin_name' => 'woocommerce',
231 'plugin_path' => 'woocommerce/woocommerce.php',
232 'content_type' => 'checkout',
233 'demo_url' => 'https://storekit.pro/demo/checkout-login-form/',
234 'video_url' => '',
235 ],
236 [
237 'name' => 'checkout-order-review',
238 'label' => esc_html__('Checkout Order Review', 'ultimate-store-kit'),
239 'type' => 'checkbox',
240 'default' => "off",
241 'widget_type' => 'pro',
242 'plugin_name' => 'woocommerce',
243 'plugin_path' => 'woocommerce/woocommerce.php',
244 'content_type' => 'checkout',
245 'demo_url' => 'https://storekit.pro/demo/checkout-order-review/',
246 'video_url' => '',
247 ],
248 [
249 'name' => 'checkout-payment',
250 'label' => esc_html__('Checkout Payment', 'ultimate-store-kit'),
251 'type' => 'checkbox',
252 'default' => "off",
253 'widget_type' => 'pro',
254 'plugin_name' => 'woocommerce',
255 'plugin_path' => 'woocommerce/woocommerce.php',
256 'content_type' => 'checkout',
257 'demo_url' => 'https://storekit.pro/demo/checkout-payment/',
258 'video_url' => '',
259 ],
260 [
261 'name' => 'checkout-shipping-methods',
262 'label' => esc_html__('Checkout Shipping Methods', 'ultimate-store-kit'),
263 'type' => 'checkbox',
264 'default' => "off",
265 'widget_type' => 'pro',
266 'plugin_name' => 'woocommerce',
267 'plugin_path' => 'woocommerce/woocommerce.php',
268 'content_type' => 'checkout',
269 'demo_url' => 'https://storekit.pro/demo/checkout-shipping-methods/',
270 'video_url' => '',
271 ],
272 [
273 'name' => 'checkout-shipping-form',
274 'label' => esc_html__('Checkout Shipping Form', 'ultimate-store-kit'),
275 'type' => 'checkbox',
276 'default' => "off",
277 'widget_type' => 'pro',
278 'plugin_name' => 'woocommerce',
279 'plugin_path' => 'woocommerce/woocommerce.php',
280 'content_type' => 'checkout',
281 'demo_url' => 'https://storekit.pro/demo/checkout-shipping-form/',
282 'video_url' => '',
283 ],
284 [
285 'name' => 'compare-button',
286 'label' => esc_html__('Compare Button', 'ultimate-store-kit'),
287 'type' => 'checkbox',
288 'default' => "off",
289 'widget_type' => 'pro',
290 'plugin_name' => 'woocommerce',
291 'plugin_path' => 'woocommerce/woocommerce.php',
292 'content_type' => 'others',
293 'demo_url' => 'https://storekit.pro/demo/compare-button/',
294 'video_url' => '',
295 ],
296 [
297 'name' => 'compare-products',
298 'label' => esc_html__('Compare Products', 'ultimate-store-kit'),
299 'type' => 'checkbox',
300 'default' => "off",
301 'widget_type' => 'pro',
302 'plugin_name' => 'woocommerce',
303 'plugin_path' => 'woocommerce/woocommerce.php',
304 'content_type' => 'others',
305 'demo_url' => 'https://storekit.pro/demo/compare-products/',
306 'video_url' => '',
307 ],
308
309 [
310 'name' => 'florence-grid',
311 'label' => esc_html__('Florence Grid', 'ultimate-store-kit'),
312 'type' => 'checkbox',
313 'default' => "on",
314 'widget_type' => 'free',
315 'plugin_name' => 'woocommerce',
316 'plugin_path' => 'woocommerce/woocommerce.php',
317 'content_type' => 'woocommerce grid',
318 'demo_url' => 'https://storekit.pro/demo/florence-grid/',
319 'video_url' => 'https://youtu.be/5UDpy3MqFbU',
320 ],
321 [
322 'name' => 'florence-carousel',
323 'label' => esc_html__('Florence Carousel', 'ultimate-store-kit'),
324 'type' => 'checkbox',
325 'default' => "on",
326 'widget_type' => 'free',
327 'plugin_name' => 'woocommerce',
328 'plugin_path' => 'woocommerce/woocommerce.php',
329 'content_type' => 'woocommerce carousel',
330 'demo_url' => 'https://storekit.pro/demo/florence-carousel/',
331 'video_url' => 'https://youtu.be/eqAsEwqcKdM',
332 ],
333 [
334 'name' => 'glossy-grid',
335 'label' => esc_html__('Glossy Grid', 'ultimate-store-kit'),
336 'type' => 'checkbox',
337 'default' => "on",
338 'widget_type' => 'free',
339 'plugin_name' => 'woocommerce',
340 'plugin_path' => 'woocommerce/woocommerce.php',
341 'content_type' => 'woocommerce grid',
342 'demo_url' => 'https://storekit.pro/demo/glossy-grid/',
343 'video_url' => 'https://youtu.be/H-EwEpbeXFA',
344 ],
345 [
346 'name' => 'glossy-carousel',
347 'label' => esc_html__('Glossy Carousel', 'ultimate-store-kit'),
348 'type' => 'checkbox',
349 'default' => "on",
350 'widget_type' => 'free',
351 'plugin_name' => 'woocommerce',
352 'plugin_path' => 'woocommerce/woocommerce.php',
353 'content_type' => 'woocommerce carousel',
354 'demo_url' => 'https://storekit.pro/demo/glossy-carousel/',
355 'video_url' => 'https://youtu.be/P9proLYapgQ',
356 ],
357 [
358 'name' => 'heaven-slider',
359 'label' => esc_html__('Heaven Slider', 'ultimate-store-kit'),
360 'type' => 'checkbox',
361 'default' => "on",
362 'widget_type' => 'free',
363 'plugin_name' => 'woocommerce',
364 'plugin_path' => 'woocommerce/woocommerce.php',
365 'content_type' => 'woocommerce slider',
366 'demo_url' => 'https://storekit.pro/demo/heaven-slider/',
367 'video_url' => '',
368 ],
369 [
370 'name' => 'image-hotspot',
371 'label' => esc_html__('Image Hotspot', 'ultimate-store-kit'),
372 'type' => 'checkbox',
373 'default' => "off",
374 'plugin_name' => 'woocommerce',
375 'plugin_path' => 'woocommerce/woocommerce.php',
376 'widget_type' => 'free',
377 'content_type' => 'woocommerce new',
378 'demo_url' => 'https://storekit.pro/demo/image-hotspot/',
379 'video_url' => 'https://youtu.be/7vrY1aY5mMw',
380 ],
381 [
382 'name' => 'info-list',
383 'label' => esc_html__('Info List', 'ultimate-store-kit'),
384 'type' => 'checkbox',
385 'default' => "on",
386 'widget_type' => 'free',
387 'plugin_name' => 'woocommerce',
388 'plugin_path' => 'woocommerce/woocommerce.php',
389 'content_type' => 'others',
390 'demo_url' => 'https://storekit.pro/demo/info-list/',
391 'video_url' => 'https://youtu.be/vVCYUAPuqcg?si=ld1BjZ6KIy3OU62Y',
392 ],
393
394 [
395 'name' => 'mentor-slider',
396 'label' => esc_html__('Mentor Slider', 'ultimate-store-kit'),
397 'type' => 'checkbox',
398 'default' => "on",
399 'widget_type' => 'free',
400 'plugin_name' => 'woocommerce',
401 'plugin_path' => 'woocommerce/woocommerce.php',
402 'content_type' => 'woocommerce slider',
403 'demo_url' => 'https://storekit.pro/demo/mentor-slider/',
404 'video_url' => 'https://youtu.be/qO4BSo8OTkA',
405 ],
406 [
407 'name' => 'mini-cart',
408 'label' => esc_html__('Mini Cart', 'ultimate-store-kit'),
409 'type' => 'checkbox',
410 'default' => "on",
411 'widget_type' => 'free',
412 'plugin_name' => 'woocommerce',
413 'plugin_path' => 'woocommerce/woocommerce.php',
414 'content_type' => 'woocommerce others',
415 'demo_url' => 'https://storekit.pro/demo/mini-cart/',
416 'video_url' => '',
417 ],
418 [
419 'name' => 'page-cart',
420 'label' => esc_html__('Cart (Page)', 'ultimate-store-kit'),
421 'type' => 'checkbox',
422 'default' => "off",
423 'widget_type' => 'free',
424 'plugin_name' => 'woocommerce',
425 'plugin_path' => 'woocommerce/woocommerce.php',
426 'content_type' => 'woocommerce cart',
427 'demo_url' => 'https://storekit.pro/demo/page-cart/',
428 'video_url' => '',
429 ],
430 [
431 'name' => 'page-checkout',
432 'label' => esc_html__('Checkout (Page)', 'ultimate-store-kit'),
433 'type' => 'checkbox',
434 'default' => "off",
435 'widget_type' => 'free',
436 'plugin_name' => 'woocommerce',
437 'plugin_path' => 'woocommerce/woocommerce.php',
438 'content_type' => 'woocommerce checkout',
439 'demo_url' => 'https://storekit.pro/demo/page-checkout/',
440 'video_url' => '',
441 ],
442
443 [
444 'name' => 'page-my-account',
445 'label' => esc_html__('My Account (Page)', 'ultimate-store-kit'),
446 'type' => 'checkbox',
447 'default' => "off",
448 'widget_type' => 'pro',
449 'plugin_name' => 'woocommerce',
450 'plugin_path' => 'woocommerce/woocommerce.php',
451 'content_type' => 'woocommerce account',
452 'demo_url' => 'https://storekit.pro/demo/page-my-account/',
453 'video_url' => '',
454 ],
455 [
456 'name' => 'page-order',
457 'label' => esc_html__('Order (Page)', 'ultimate-store-kit'),
458 'type' => 'checkbox',
459 'default' => "off",
460 'widget_type' => 'free',
461 'plugin_name' => 'woocommerce',
462 'plugin_path' => 'woocommerce/woocommerce.php',
463 'content_type' => 'woocommerce order thank-you',
464 'demo_url' => 'https://storekit.pro/demo/page-order/',
465 'video_url' => '',
466 ],
467 [
468 'name' => 'page-single',
469 'label' => esc_html__('Single Product (Page)', 'ultimate-store-kit'),
470 'type' => 'checkbox',
471 'default' => "off",
472 'widget_type' => 'free',
473 'plugin_name' => 'woocommerce',
474 'plugin_path' => 'woocommerce/woocommerce.php',
475 'content_type' => 'woocommerce single',
476 'demo_url' => 'https://storekit.pro/demo/page-single/',
477 'video_url' => '',
478 ],
479 [
480 'name' => 'product-accordion',
481 'label' => esc_html__('Product Accordion', 'ultimate-store-kit'),
482 'type' => 'checkbox',
483 'default' => "on",
484 'widget_type' => 'free',
485 'plugin_name' => 'woocommerce',
486 'plugin_path' => 'woocommerce/woocommerce.php',
487 'content_type' => 'woocommerce others',
488 'demo_url' => 'https://storekit.pro/demo/product-accordion/',
489 'video_url' => 'https://youtu.be/uWSRAnKjEEU?si=VAxAf_aryJYvmqbQ',
490 ],
491 [
492 'name' => 'product-category',
493 'label' => esc_html__('Product Category', 'ultimate-store-kit'),
494 'type' => 'checkbox',
495 'default' => "on",
496 'widget_type' => 'free',
497 'plugin_name' => 'woocommerce',
498 'plugin_path' => 'woocommerce/woocommerce.php',
499 'content_type' => 'woocommerce others',
500 'demo_url' => 'https://storekit.pro/demo/product-category/',
501 'video_url' => '',
502 ],
503 [
504 'name' => 'product-category-carousel',
505 'label' => esc_html__('Product Category Carousel', 'ultimate-store-kit'),
506 'type' => 'checkbox',
507 'default' => "on",
508 'widget_type' => 'free',
509 'plugin_name' => 'woocommerce',
510 'plugin_path' => 'woocommerce/woocommerce.php',
511 'content_type' => 'woocommerce others',
512 'demo_url' => 'https://storekit.pro/demo/product-category-carousel/',
513 'video_url' => '',
514 ],
515 [
516 'name' => 'product-description',
517 'label' => esc_html__('Short Description (Single)', 'ultimate-store-kit'),
518 'type' => 'checkbox',
519 'default' => "on",
520 'widget_type' => 'free',
521 'plugin_name' => 'woocommerce',
522 'plugin_path' => 'woocommerce/woocommerce.php',
523 'content_type' => 'woocommerce',
524 'demo_url' => 'https://storekit.pro/demo/product-description/',
525 'video_url' => '',
526 ],
527 [
528 'name' => 'product-filters',
529 'label' => esc_html__('Product Filters', 'ultimate-store-kit'),
530 'type' => 'checkbox',
531 'default' => "on",
532 'widget_type' => 'pro',
533 'plugin_name' => 'woocommerce',
534 'plugin_path' => 'woocommerce/woocommerce.php',
535 'content_type' => 'woocommerce others new',
536 'demo_url' => 'https://storekit.pro/demo/product-filters/',
537 'video_url' => '',
538 ],
539 [
540 'name' => 'product-image',
541 'label' => esc_html__('Product Image (Single)', 'ultimate-store-kit'),
542 'type' => 'checkbox',
543 'default' => "off",
544 'widget_type' => 'pro',
545 'plugin_name' => 'woocommerce',
546 'plugin_path' => 'woocommerce/woocommerce.php',
547 'content_type' => 'woocommerce single',
548 'demo_url' => 'https://storekit.pro/demo/product-image/',
549 'video_url' => '',
550 ],
551 [
552 'name' => 'product-image-accordion',
553 'label' => esc_html__('Product Image Accordion', 'ultimate-store-kit'),
554 'type' => 'checkbox',
555 'default' => "on",
556 'widget_type' => 'free',
557 'plugin_name' => 'woocommerce',
558 'plugin_path' => 'woocommerce/woocommerce.php',
559 'content_type' => 'woocommerce others',
560 'demo_url' => 'https://storekit.pro/demo/product-image-accordion/',
561 'video_url' => '',
562 ],
563 [
564 'name' => 'product-list',
565 'label' => esc_html__('Product List', 'ultimate-store-kit'),
566 'type' => 'checkbox',
567 'default' => "on",
568 'widget_type' => 'free',
569 'plugin_name' => 'woocommerce',
570 'plugin_path' => 'woocommerce/woocommerce.php',
571 'content_type' => 'woocommerce others',
572 'demo_url' => 'https://storekit.pro/demo/product-list/',
573 'video_url' => 'https://youtu.be/qJQ9wfdoMKg',
574 ],
575 [
576 'name' => 'product-meta',
577 'label' => esc_html__('Product Meta (Single)', 'ultimate-store-kit'),
578 'type' => 'checkbox',
579 'default' => "off",
580 'widget_type' => 'pro',
581 'plugin_name' => 'woocommerce',
582 'plugin_path' => 'woocommerce/woocommerce.php',
583 'content_type' => 'single',
584 'demo_url' => 'https://storekit.pro/demo/product-meta/',
585 'video_url' => '',
586 ],
587 [
588 'name' => 'product-price',
589 'label' => esc_html__('Product Price (Single)', 'ultimate-store-kit'),
590 'type' => 'checkbox',
591 'default' => "off",
592 'widget_type' => 'pro',
593 'plugin_name' => 'woocommerce',
594 'plugin_path' => 'woocommerce/woocommerce.php',
595 'content_type' => 'single',
596 'demo_url' => 'https://storekit.pro/demo/product-price/',
597 'video_url' => '',
598 ],
599 [
600 'name' => 'product-rating',
601 'label' => esc_html__('Product Rating (Single)', 'ultimate-store-kit'),
602 'type' => 'checkbox',
603 'default' => "off",
604 'widget_type' => 'pro',
605 'plugin_name' => 'woocommerce',
606 'plugin_path' => 'woocommerce/woocommerce.php',
607 'content_type' => 'woocommerce single',
608 'demo_url' => 'https://storekit.pro/demo/product-rating/',
609 'video_url' => '',
610 ],
611 [
612 'name' => 'product-related',
613 'label' => esc_html__('Product Related (Single)', 'ultimate-store-kit'),
614 'type' => 'checkbox',
615 'default' => "off",
616 'widget_type' => 'pro',
617 'plugin_name' => 'woocommerce',
618 'plugin_path' => 'woocommerce/woocommerce.php',
619 'content_type' => 'woocommerce',
620 'demo_url' => 'https://storekit.pro/demo/product-related/',
621 'video_url' => '',
622 ],
623 [
624 'name' => 'product-reviews',
625 'label' => esc_html__('Product Reviews', 'ultimate-store-kit'),
626 'type' => 'checkbox',
627 'default' => "on",
628 'widget_type' => 'free',
629 'plugin_name' => 'woocommerce',
630 'plugin_path' => 'woocommerce/woocommerce.php',
631 'content_type' => 'woocommerce others',
632 'demo_url' => 'https://storekit.pro/demo/product-reviews/',
633 'video_url' => 'https://youtu.be/cjpkFVWBmH4',
634 ],
635 [
636 'name' => 'product-review-carousel',
637 'label' => esc_html__('Product Review Carousel', 'ultimate-store-kit'),
638 'type' => 'checkbox',
639 'default' => "on",
640 'widget_type' => 'free',
641 'plugin_name' => 'woocommerce',
642 'plugin_path' => 'woocommerce/woocommerce.php',
643 'content_type' => 'woocommerce others carousel',
644 'demo_url' => 'https://storekit.pro/demo/product-review-carousel/',
645 'video_url' => '',
646 ],
647 [
648 'name' => 'product-stock',
649 'label' => esc_html__('Product Stock (Single)', 'ultimate-store-kit'),
650 'type' => 'checkbox',
651 'default' => "off",
652 'widget_type' => 'pro',
653 'plugin_name' => 'woocommerce',
654 'plugin_path' => 'woocommerce/woocommerce.php',
655 'content_type' => 'woocommerce',
656 'demo_url' => 'https://storekit.pro/demo/product-stock/',
657 'video_url' => '',
658 ],
659 [
660 'name' => 'product-table',
661 'label' => esc_html__('Product Table', 'ultimate-store-kit'),
662 'type' => 'checkbox',
663 'default' => "on",
664 'widget_type' => 'free',
665 'plugin_name' => 'woocommerce',
666 'plugin_path' => 'woocommerce/woocommerce.php',
667 'content_type' => 'woocommerce others',
668 'demo_url' => 'https://storekit.pro/demo/product-table/',
669 'video_url' => '',
670 ],
671 [
672 'name' => 'product-tabs',
673 'label' => esc_html__('Product Tabs (Single)', 'ultimate-store-kit'),
674 'type' => 'checkbox',
675 'default' => "off",
676 'widget_type' => 'pro',
677 'plugin_name' => 'woocommerce',
678 'plugin_path' => 'woocommerce/woocommerce.php',
679 'content_type' => 'woocommerce',
680 'demo_url' => 'https://storekit.pro/demo/product-tabs/',
681 'video_url' => '',
682 ],
683 [
684 'name' => 'product-title',
685 'label' => esc_html__('Product Title (Single)', 'ultimate-store-kit'),
686 'type' => 'checkbox',
687 'default' => "off",
688 'widget_type' => 'pro',
689 'plugin_name' => 'woocommerce',
690 'plugin_path' => 'woocommerce/woocommerce.php',
691 'content_type' => 'woocommerce single',
692 'demo_url' => 'https://storekit.pro/demo/product-title/',
693 'video_url' => '',
694 ],
695 [
696 'name' => 'shiny-grid',
697 'label' => esc_html__('Shiny Grid', 'ultimate-store-kit'),
698 'type' => 'checkbox',
699 'default' => "on",
700 'widget_type' => 'free',
701 'plugin_name' => 'woocommerce',
702 'plugin_path' => 'woocommerce/woocommerce.php',
703 'content_type' => 'woocommerce grid',
704 'demo_url' => 'https://storekit.pro/demo/shiny-grid/',
705 'video_url' => '',
706 ],
707 [
708 'name' => 'shiny-carousel',
709 'label' => esc_html__('Shiny Carousel', 'ultimate-store-kit'),
710 'type' => 'checkbox',
711 'default' => "on",
712 'widget_type' => 'free',
713 'plugin_name' => 'woocommerce',
714 'plugin_path' => 'woocommerce/woocommerce.php',
715 'content_type' => 'woocommerce carousel',
716 'demo_url' => 'https://storekit.pro/demo/shiny-carousel/',
717 'video_url' => '',
718 ],
719 [
720 'name' => 'showcase-slider',
721 'label' => esc_html__('Showcase Slider', 'ultimate-store-kit'),
722 'type' => 'checkbox',
723 'default' => "on",
724 'widget_type' => 'free',
725 'plugin_name' => 'woocommerce',
726 'plugin_path' => 'woocommerce/woocommerce.php',
727 'content_type' => 'woocommerce slider',
728 'demo_url' => 'https://storekit.pro/demo/showcase-slider/',
729 'video_url' => '',
730 ],
731
732 [
733 'name' => 'sub-category',
734 'label' => esc_html__('Sub Category', 'ultimate-store-kit'),
735 'type' => 'checkbox',
736 'default' => "on",
737 'widget_type' => 'free',
738 'plugin_name' => 'woocommerce',
739 'plugin_path' => 'woocommerce/woocommerce.php',
740 'content_type' => 'woocommerce grid',
741 'demo_url' => 'https://storekit.pro/demo/sub-category/',
742 'video_url' => '',
743 ],
744 [
745 'name' => 'sub-category-carousel',
746 'label' => esc_html__('Sub Category Carousel', 'ultimate-store-kit'),
747 'type' => 'checkbox',
748 'default' => "on",
749 'widget_type' => 'free',
750 'plugin_name' => 'woocommerce',
751 'plugin_path' => 'woocommerce/woocommerce.php',
752 'content_type' => 'woocommerce carousel',
753 'demo_url' => 'https://storekit.pro/demo/sub-category-carousel/',
754 'video_url' => '',
755 ],
756
757 [
758 'name' => 'thankyou-order',
759 'label' => esc_html__('Thank You Order', 'ultimate-store-kit'),
760 'type' => 'checkbox',
761 'default' => "off",
762 'widget_type' => 'pro',
763 'plugin_name' => 'woocommerce',
764 'plugin_path' => 'woocommerce/woocommerce.php',
765 'content_type' => 'woocommerce thank-you order',
766 'demo_url' => 'https://storekit.pro/demo/thankyou-order/',
767 'video_url' => '',
768 ],
769 [
770 'name' => 'thankyou-order-details',
771 'label' => esc_html__('Thank You Order Details', 'ultimate-store-kit'),
772 'type' => 'checkbox',
773 'default' => "off",
774 'widget_type' => 'pro',
775 'plugin_name' => 'woocommerce',
776 'plugin_path' => 'woocommerce/woocommerce.php',
777 'content_type' => 'woocommerce thank-you order',
778 'demo_url' => 'https://storekit.pro/demo/thankyou-order-details/',
779 'video_url' => '',
780 ],
781 [
782 'name' => 'thankyou-order-customer-address',
783 'label' => esc_html__('Thank You Order Customer Address', 'ultimate-store-kit'),
784 'type' => 'checkbox',
785 'default' => "off",
786 'widget_type' => 'pro',
787 'plugin_name' => 'woocommerce',
788 'plugin_path' => 'woocommerce/woocommerce.php',
789 'content_type' => 'woocommerce thank-you order',
790 'demo_url' => 'https://storekit.pro/demo/thankyou-order-customer-address/',
791 'video_url' => '',
792 ],
793 [
794 'name' => 'thankyou-order-confirmation',
795 'label' => esc_html__('Thank You Order Confirmation', 'ultimate-store-kit'),
796 'type' => 'checkbox',
797 'default' => "off",
798 'widget_type' => 'pro',
799 'plugin_name' => 'woocommerce',
800 'plugin_path' => 'woocommerce/woocommerce.php',
801 'content_type' => 'woocommerce thank-you order',
802 'demo_url' => 'https://storekit.pro/demo/thankyou-order-confirmation/',
803 'video_url' => '',
804 ],
805 [
806 'name' => 'wishlist-button',
807 'label' => esc_html__('Wishlist Button', 'ultimate-store-kit'),
808 'type' => 'checkbox',
809 'default' => "on",
810 'widget_type' => 'pro',
811 'plugin_name' => 'woocommerce',
812 'plugin_path' => 'woocommerce/woocommerce.php',
813 'content_type' => 'woocommerce others',
814 'demo_url' => 'https://storekit.pro/demo/wishlist-button/',
815 'video_url' => '',
816 ],
817 [
818 'name' => 'wishlist-products',
819 'label' => esc_html__('Wishlist Products', 'ultimate-store-kit'),
820 'type' => 'checkbox',
821 'default' => "on",
822 'widget_type' => 'pro',
823 'plugin_name' => 'woocommerce',
824 'plugin_path' => 'woocommerce/woocommerce.php',
825 'content_type' => 'woocommerce others',
826 'demo_url' => 'https://storekit.pro/demo/wishlist-products/',
827 'video_url' => '',
828 ],
829 [
830 'name' => 'up-sells',
831 'label' => esc_html__('Upsells', 'ultimate-store-kit'),
832 'type' => 'checkbox',
833 'default' => "off",
834 'widget_type' => 'free',
835 'plugin_name' => 'woocommerce',
836 'plugin_path' => 'woocommerce/woocommerce.php',
837 'content_type' => 'woocommerce others',
838 'demo_url' => 'https://storekit.pro/demo/up-sells/',
839 'video_url' => '',
840 ],
841 ],
842 'ultimate_store_kit_edd_modules' => [
843 [
844 'name' => 'edd-category-grid',
845 'label' => esc_html__('EDD Category Grid', 'ultimate-store-kit'),
846 'type' => 'checkbox',
847 'default' => "on",
848 'plugin_name' => 'easy-digital-downloads',
849 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
850 'widget_type' => 'free',
851 'content_type' => 'edd grid',
852 'demo_url' => 'https://storekit.pro/demo/edd-category-grid/',
853 'video_url' => '',
854 ],
855 [
856 'name' => 'edd-category-carousel',
857 'label' => esc_html__('EDD Category Carousel', 'ultimate-store-kit'),
858 'type' => 'checkbox',
859 'default' => "on",
860 'plugin_name' => 'easy-digital-downloads',
861 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
862 'widget_type' => 'free',
863 'content_type' => 'edd carousel',
864 'demo_url' => 'https://storekit.pro/demo/edd-category-carousel/',
865 'video_url' => '',
866 ],
867 [
868 'name' => 'edd-beauty-grid',
869 'label' => esc_html__('EDD Beauty Grid', 'ultimate-store-kit'),
870 'type' => 'checkbox',
871 'default' => "on",
872 'plugin_name' => 'easy-digital-downloads',
873 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
874 'widget_type' => 'free',
875 'content_type' => 'edd grid',
876 'demo_url' => 'https://storekit.pro/demo/edd-beauty-grid/',
877 'video_url' => '',
878 ],
879 [
880 'name' => 'edd-beauty-carousel',
881 'label' => esc_html__('EDD Beauty Carousel', 'ultimate-store-kit'),
882 'type' => 'checkbox',
883 'default' => "on",
884 'plugin_name' => 'easy-digital-downloads',
885 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
886 'widget_type' => 'free',
887 'content_type' => 'edd carousel',
888 'demo_url' => 'https://storekit.pro/demo/edd-beauty-carousel/',
889 'video_url' => 'https://youtu.be/YxPfPZUu_3M?si=8zJ9aWZ1NV4iOubs',
890 ],
891 [
892 'name' => 'edd-classic-grid',
893 'label' => esc_html__('EDD Classic Grid', 'ultimate-store-kit'),
894 'type' => 'checkbox',
895 'default' => "on",
896 'plugin_name' => 'easy-digital-downloads',
897 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
898 'widget_type' => 'free',
899 'content_type' => 'edd grid',
900 'demo_url' => 'https://storekit.pro/demo/edd-classic-grid/',
901 'video_url' => '',
902 ],
903 [
904 'name' => 'edd-classic-carousel',
905 'label' => esc_html__('EDD Classic Carousel', 'ultimate-store-kit'),
906 'type' => 'checkbox',
907 'default' => "on",
908 'plugin_name' => 'easy-digital-downloads',
909 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
910 'widget_type' => 'free',
911 'content_type' => 'edd carousel',
912 'demo_url' => 'https://storekit.pro/demo/edd-classic-carousel/',
913 'video_url' => '',
914 ],
915 [
916 'name' => 'edd-product-reviews',
917 'label' => esc_html__('EDD Product Review', 'ultimate-store-kit'),
918 'type' => 'checkbox',
919 'default' => "off",
920 'plugin_name' => 'easy-digital-downloads',
921 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
922 'widget_type' => 'pro',
923 'content_type' => 'edd',
924 'demo_url' => 'https://storekit.pro/demo/edd-product-reviews/',
925 'video_url' => '',
926 ],
927 [
928 'name' => 'edd-product-review-carousel',
929 'label' => esc_html__('EDD Product Review Carousel', 'ultimate-store-kit'),
930 'type' => 'checkbox',
931 'default' => "off",
932 'plugin_name' => 'easy-digital-downloads',
933 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
934 'widget_type' => 'pro',
935 'content_type' => 'edd',
936 'demo_url' => 'https://storekit.pro/demo/edd-product-review-carousel/',
937 'video_url' => '',
938 ],
939 [
940 'name' => 'edd-standard-grid',
941 'label' => esc_html__('EDD Standard Grid', 'ultimate-store-kit'),
942 'type' => 'checkbox',
943 'default' => "on",
944 'plugin_name' => 'easy-digital-downloads',
945 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
946 'widget_type' => 'free',
947 'content_type' => 'edd grid',
948 'demo_url' => 'https://storekit.pro/demo/edd-standard-grid/',
949 'video_url' => '',
950 ],
951 [
952 'name' => 'edd-standard-carousel',
953 'label' => esc_html__('EDD Standard Carousel', 'ultimate-store-kit'),
954 'type' => 'checkbox',
955 'default' => "on",
956 'plugin_name' => 'easy-digital-downloads',
957 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
958 'widget_type' => 'free',
959 'content_type' => 'edd carousel',
960 'demo_url' => 'https://storekit.pro/demo/edd-standard-carousel/',
961 'video_url' => '',
962 ],
963 [
964 'name' => 'edd-trendy-grid',
965 'label' => esc_html__('EDD Trendy Grid', 'ultimate-store-kit'),
966 'type' => 'checkbox',
967 'default' => "on",
968 'plugin_name' => 'easy-digital-downloads',
969 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
970 'widget_type' => 'free',
971 'content_type' => 'edd grid',
972 'demo_url' => 'https://storekit.pro/demo/edd-trendy-grid/',
973 'video_url' => '',
974 ],
975 [
976 'name' => 'edd-trendy-carousel',
977 'label' => esc_html__('EDD Trendy Carousel', 'ultimate-store-kit'),
978 'type' => 'checkbox',
979 'default' => "on",
980 'plugin_name' => 'easy-digital-downloads',
981 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
982 'widget_type' => 'free',
983 'content_type' => 'edd carousel',
984 'demo_url' => 'https://storekit.pro/demo/edd-trendy-carousel/',
985 'video_url' => '',
986 ]
987 ],
988 'ultimate_store_kit_general_modules' => [
989 [
990 'name' => 'brand-grid',
991 'label' => esc_html__('Brand Grid', 'ultimate-store-kit'),
992 'type' => 'checkbox',
993 'default' => "on",
994 'widget_type' => 'free',
995 'content_type' => 'grid',
996 'demo_url' => 'https://storekit.pro/demo/brand-grid/',
997 'video_url' => '',
998 ],
999 [
1000 'name' => 'brand-carousel',
1001 'label' => esc_html__('Brand Carousel', 'ultimate-store-kit'),
1002 'type' => 'checkbox',
1003 'default' => "on",
1004 'widget_type' => 'free',
1005 'content_type' => 'carousel',
1006 'demo_url' => 'https://storekit.pro/demo/brand-carousel/',
1007 'video_url' => '',
1008 ],
1009 [
1010 'name' => 'featured-box',
1011 'label' => esc_html__('Featured Box', 'ultimate-store-kit'),
1012 'type' => 'checkbox',
1013 'default' => "on",
1014 'widget_type' => 'free',
1015 'content_type' => 'others',
1016 'demo_url' => 'https://storekit.pro/demo/featured-box/',
1017 'video_url' => '',
1018 ],
1019 [
1020 'name' => 'qr-code',
1021 'label' => esc_html__('QR Code', 'ultimate-store-kit'),
1022 'type' => 'checkbox',
1023 'default' => "on",
1024 'widget_type' => 'pro',
1025 'content_type' => 'others',
1026 'demo_url' => 'https://storekit.pro/demo/qr-code/',
1027 'video_url' => '',
1028 ],
1029 [
1030 'name' => 'marquee',
1031 'label' => esc_html__('Marquee', 'ultimate-store-kit'),
1032 'type' => 'checkbox',
1033 'default' => "off",
1034 'widget_type' => 'pro',
1035 'content_type' => 'others new',
1036 'demo_url' => 'https://storekit.pro/demo/marquee/',
1037 'video_url' => '',
1038 ],
1039 [
1040 'name' => 'mobile-menu',
1041 'label' => esc_html__('Mobile Menu', 'ultimate-store-kit'),
1042 'type' => 'checkbox',
1043 'default' => "off",
1044 'widget_type' => 'free',
1045 'content_type' => 'others new',
1046 'demo_url' => 'https://storekit.pro/demo/mobile-menu/',
1047 'video_url' => '',
1048 ]
1049 ],
1050 'ultimate_store_kit_other_settings' => []
1051 ];
1052
1053 $settings = [];
1054 $settings['settings_fields'] = $settings_fields;
1055
1056 return $callable($settings);
1057 }
1058
1059 private static function _is_plugin_installed($plugin, $plugin_path) {
1060 if (!function_exists('get_plugins')) {
1061 require_once ABSPATH . 'wp-admin/includes/plugin.php';
1062 }
1063
1064 $installed_plugins = get_plugins();
1065 return isset($installed_plugins[$plugin_path]);
1066 }
1067
1068 public static function is_module_active($module_id, $options, $module_path = BDTUSK_MODULES_PATH) {
1069 if (!isset($options[$module_id])) {
1070 if (file_exists($module_path . $module_id . '/module.info.php')) {
1071 $module_data = require $module_path . $module_id . '/module.info.php';
1072 return $module_data['default_activation'];
1073 }
1074 } else {
1075 return $options[$module_id] == 'on';
1076 }
1077 }
1078
1079 public static function is_plugin_active($plugin_path) {
1080 if ($plugin_path) {
1081 if (!function_exists('is_plugin_active')) {
1082 require_once ABSPATH . 'wp-admin/includes/plugin.php';
1083 }
1084
1085 return is_plugin_active($plugin_path);
1086 }
1087 }
1088
1089 public static function has_module_style($module_id, $module_path = BDTUSK_MODULES_PATH) {
1090 if (file_exists($module_path . $module_id . '/module.info.php')) {
1091 $module_data = require $module_path . $module_id . '/module.info.php';
1092
1093 if (isset($module_data['has_style'])) {
1094 return $module_data['has_style'];
1095 }
1096 }
1097 }
1098
1099 public static function has_module_script($module_id, $module_path = BDTUSK_MODULES_PATH) {
1100 if (file_exists($module_path . $module_id . '/module.info.php')) {
1101 $module_data = require $module_path . $module_id . '/module.info.php';
1102
1103 if (isset($module_data['has_script'])) {
1104 return $module_data['has_script'];
1105 }
1106 }
1107 }
1108 }
1109