PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 1.6.2
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v1.6.2
3.1.4 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 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 All 93 releases
ultimate-store-kit / admin / module-settings.php

module-settings.php in Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder 1.6.2, at admin/module-settings.php

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