PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 2.0.0
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v2.0.0
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 2.0.0, at admin/module-settings.php

1,071 lines 53.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 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 [
179 'name' => 'call-for-price',
180 'label' => esc_html__( 'Call for Price (Single)', 'ultimate-store-kit' ),
181 'type' => 'checkbox',
182 'default' => "off",
183 'plugin_name' => 'woocommerce',
184 'plugin_path' => 'woocommerce/woocommerce.php',
185 'widget_type' => 'pro',
186 'content_type' => 'woocommerce single',
187 'demo_url' => '#https://storekit.pro/demo/call-for-price/',
188 'video_url' => '',
189 ],
190 // CHECKOUT
191 [
192 'name' => 'checkout-additional-info',
193 'label' => esc_html__('Checkout Additional Info', '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-additional-info/',
201 'video_url' => '',
202 ],
203 [
204 'name' => 'checkout-billing-address',
205 'label' => esc_html__('Checkout Billing Address', '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-billing-address/',
213 'video_url' => '',
214 ],
215 [
216 'name' => 'checkout-coupon-form',
217 'label' => esc_html__('Checkout Coupon 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-coupon-form/',
225 'video_url' => '',
226 ],
227 [
228 'name' => 'checkout-login-form',
229 'label' => esc_html__('Checkout Login Form', '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-login-form/',
237 'video_url' => '',
238 ],
239 [
240 'name' => 'checkout-order-review',
241 'label' => esc_html__('Checkout Order Review', '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-order-review/',
249 'video_url' => '',
250 ],
251 [
252 'name' => 'checkout-payment',
253 'label' => esc_html__('Checkout Payment', '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-payment/',
261 'video_url' => '',
262 ],
263 [
264 'name' => 'checkout-shipping-methods',
265 'label' => esc_html__('Checkout Shipping Methods', '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-methods/',
273 'video_url' => '',
274 ],
275 [
276 'name' => 'checkout-shipping-form',
277 'label' => esc_html__('Checkout Shipping Form', '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' => 'checkout',
284 'demo_url' => 'https://storekit.pro/demo/checkout-shipping-form/',
285 'video_url' => '',
286 ],
287 [
288 'name' => 'compare-button',
289 'label' => esc_html__('Compare Button', '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-button/',
297 'video_url' => '',
298 ],
299 [
300 'name' => 'compare-products',
301 'label' => esc_html__('Compare Products', 'ultimate-store-kit'),
302 'type' => 'checkbox',
303 'default' => "off",
304 'widget_type' => 'pro',
305 'plugin_name' => 'woocommerce',
306 'plugin_path' => 'woocommerce/woocommerce.php',
307 'content_type' => 'others',
308 'demo_url' => 'https://storekit.pro/demo/compare-products/',
309 'video_url' => '',
310 ],
311
312 [
313 'name' => 'florence-grid',
314 'label' => esc_html__('Florence Grid', '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 grid',
321 'demo_url' => 'https://storekit.pro/demo/florence-grid/',
322 'video_url' => 'https://youtu.be/5UDpy3MqFbU',
323 ],
324 [
325 'name' => 'florence-carousel',
326 'label' => esc_html__('Florence Carousel', '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 carousel',
333 'demo_url' => 'https://storekit.pro/demo/florence-carousel/',
334 'video_url' => 'https://youtu.be/eqAsEwqcKdM',
335 ],
336 [
337 'name' => 'glossy-grid',
338 'label' => esc_html__('Glossy Grid', '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 grid',
345 'demo_url' => 'https://storekit.pro/demo/glossy-grid/',
346 'video_url' => 'https://youtu.be/H-EwEpbeXFA',
347 ],
348 [
349 'name' => 'glossy-carousel',
350 'label' => esc_html__('Glossy Carousel', '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 carousel',
357 'demo_url' => 'https://storekit.pro/demo/glossy-carousel/',
358 'video_url' => 'https://youtu.be/P9proLYapgQ',
359 ],
360 [
361 'name' => 'heaven-slider',
362 'label' => esc_html__('Heaven Slider', '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' => 'woocommerce slider',
369 'demo_url' => 'https://storekit.pro/demo/heaven-slider/',
370 'video_url' => '',
371 ],
372 [
373 'name' => 'info-list',
374 'label' => esc_html__('Info List', 'ultimate-store-kit'),
375 'type' => 'checkbox',
376 'default' => "on",
377 'widget_type' => 'free',
378 'plugin_name' => 'woocommerce',
379 'plugin_path' => 'woocommerce/woocommerce.php',
380 'content_type' => 'others',
381 'demo_url' => 'https://storekit.pro/demo/info-list/',
382 'video_url' => 'https://youtu.be/vVCYUAPuqcg?si=ld1BjZ6KIy3OU62Y',
383 ],
384
385 [
386 'name' => 'mentor-slider',
387 'label' => esc_html__('Mentor Slider', '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 slider',
394 'demo_url' => 'https://storekit.pro/demo/mentor-slider/',
395 'video_url' => '',
396 ],
397 [
398 'name' => 'mini-cart',
399 'label' => esc_html__('Mini Cart', 'ultimate-store-kit'),
400 'type' => 'checkbox',
401 'default' => "on",
402 'widget_type' => 'free',
403 'plugin_name' => 'woocommerce',
404 'plugin_path' => 'woocommerce/woocommerce.php',
405 'content_type' => 'woocommerce others',
406 'demo_url' => 'https://storekit.pro/demo/mini-cart/',
407 'video_url' => '',
408 ],
409 [
410 'name' => 'page-cart',
411 'label' => esc_html__('Cart (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 cart',
418 'demo_url' => 'https://storekit.pro/demo/page-cart/',
419 'video_url' => '',
420 ],
421 [
422 'name' => 'page-checkout',
423 'label' => esc_html__('Checkout (Page)', 'ultimate-store-kit'),
424 'type' => 'checkbox',
425 'default' => "off",
426 'widget_type' => 'free',
427 'plugin_name' => 'woocommerce',
428 'plugin_path' => 'woocommerce/woocommerce.php',
429 'content_type' => 'woocommerce checkout',
430 'demo_url' => 'https://storekit.pro/demo/page-checkout/',
431 'video_url' => '',
432 ],
433
434 // [
435 // 'name' => 'page-my-account',
436 // 'label' => esc_html__('My Account (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 account',
443 // 'demo_url' => 'https://storekit.pro/demo/page-my-account/',
444 // 'video_url' => '',
445 // ],
446 [
447 'name' => 'page-order',
448 'label' => esc_html__('Order (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 order thankyou',
455 'demo_url' => 'https://storekit.pro/demo/page-order/',
456 'video_url' => '',
457 ],
458 [
459 'name' => 'page-single',
460 'label' => esc_html__('Single Product (Page)', 'ultimate-store-kit'),
461 'type' => 'checkbox',
462 'default' => "off",
463 'widget_type' => 'free',
464 'plugin_name' => 'woocommerce',
465 'plugin_path' => 'woocommerce/woocommerce.php',
466 'content_type' => 'woocommerce single',
467 'demo_url' => 'https://storekit.pro/demo/page-single/',
468 'video_url' => '',
469 ],
470 [
471 'name' => 'product-accordion',
472 'label' => esc_html__('Product Accordion', '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-accordion/',
480 'video_url' => 'https://youtu.be/uWSRAnKjEEU?si=VAxAf_aryJYvmqbQ',
481 ],
482 [
483 'name' => 'product-category',
484 'label' => esc_html__('Product Category', '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/',
492 'video_url' => '',
493 ],
494 [
495 'name' => 'product-category-carousel',
496 'label' => esc_html__('Product Category Carousel', '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 others',
503 'demo_url' => 'https://storekit.pro/demo/product-category-carousel/',
504 'video_url' => '',
505 ],
506 [
507 'name' => 'product-description',
508 'label' => esc_html__('Short Description (Single)', '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' => 'woocommerce',
515 'demo_url' => 'https://storekit.pro/demo/product-description/',
516 'video_url' => '',
517 ],
518 // [
519 // 'name' => 'product-filter',
520 // 'label' => esc_html__('Product Filter', 'ultimate-store-kit'),
521 // 'type' => 'checkbox',
522 // 'default' => "on",
523 // 'widget_type' => 'free',
524 // 'plugin_name' => 'woocommerce',
525 // 'plugin_path' => 'woocommerce/woocommerce.php',
526 // 'content_type' => 'archive',
527 // 'demo_url' => 'https://storekit.pro/demo/product-filter/',
528 // 'video_url' => '',
529 // ],
530 [
531 'name' => 'product-image',
532 'label' => esc_html__('Product Image (Single)', 'ultimate-store-kit'),
533 'type' => 'checkbox',
534 'default' => "off",
535 'widget_type' => 'pro',
536 'plugin_name' => 'woocommerce',
537 'plugin_path' => 'woocommerce/woocommerce.php',
538 'content_type' => 'woocommerce single',
539 'demo_url' => 'https://storekit.pro/demo/product-image/',
540 'video_url' => '',
541 ],
542 [
543 'name' => 'product-image-accordion',
544 'label' => esc_html__('Product Image Accordion', '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-image-accordion/',
552 'video_url' => '',
553 ],
554 [
555 'name' => 'product-list',
556 'label' => esc_html__('Product List', 'ultimate-store-kit'),
557 'type' => 'checkbox',
558 'default' => "on",
559 'widget_type' => 'free',
560 'plugin_name' => 'woocommerce',
561 'plugin_path' => 'woocommerce/woocommerce.php',
562 'content_type' => 'woocommerce others',
563 'demo_url' => 'https://storekit.pro/demo/product-list/',
564 'video_url' => 'https://youtu.be/qJQ9wfdoMKg',
565 ],
566 [
567 'name' => 'product-meta',
568 'label' => esc_html__('Product Meta (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-meta/',
576 'video_url' => '',
577 ],
578 [
579 'name' => 'product-price',
580 'label' => esc_html__('Product Price (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' => 'single',
587 'demo_url' => 'https://storekit.pro/demo/product-price/',
588 'video_url' => '',
589 ],
590 [
591 'name' => 'product-rating',
592 'label' => esc_html__('Product Rating (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 single',
599 'demo_url' => 'https://storekit.pro/demo/product-rating/',
600 'video_url' => '',
601 ],
602 [
603 'name' => 'product-related',
604 'label' => esc_html__('Product Related (Single)', 'ultimate-store-kit'),
605 'type' => 'checkbox',
606 'default' => "off",
607 'widget_type' => 'pro',
608 'plugin_name' => 'woocommerce',
609 'plugin_path' => 'woocommerce/woocommerce.php',
610 'content_type' => 'woocommerce',
611 'demo_url' => 'https://storekit.pro/demo/product-related/',
612 'video_url' => '',
613 ],
614 [
615 'name' => 'product-reviews',
616 'label' => esc_html__('Product Reviews', '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',
623 'demo_url' => 'https://storekit.pro/demo/product-reviews/',
624 'video_url' => 'https://youtu.be/cjpkFVWBmH4',
625 ],
626 [
627 'name' => 'product-review-carousel',
628 'label' => esc_html__('Product Review Carousel', 'ultimate-store-kit'),
629 'type' => 'checkbox',
630 'default' => "on",
631 'widget_type' => 'free',
632 'plugin_name' => 'woocommerce',
633 'plugin_path' => 'woocommerce/woocommerce.php',
634 'content_type' => 'woocommerce others carousel',
635 'demo_url' => 'https://storekit.pro/demo/product-review-carousel/',
636 'video_url' => '',
637 ],
638 [
639 'name' => 'product-stock',
640 'label' => esc_html__('Product Stock (Single)', 'ultimate-store-kit'),
641 'type' => 'checkbox',
642 'default' => "off",
643 'widget_type' => 'pro',
644 'plugin_name' => 'woocommerce',
645 'plugin_path' => 'woocommerce/woocommerce.php',
646 'content_type' => 'woocommerce',
647 'demo_url' => 'https://storekit.pro/demo/product-stock/',
648 'video_url' => '',
649 ],
650 [
651 'name' => 'product-table',
652 'label' => esc_html__('Product Table', 'ultimate-store-kit'),
653 'type' => 'checkbox',
654 'default' => "on",
655 'widget_type' => 'free',
656 'plugin_name' => 'woocommerce',
657 'plugin_path' => 'woocommerce/woocommerce.php',
658 'content_type' => 'woocommerce others',
659 'demo_url' => 'https://storekit.pro/demo/product-table/',
660 'video_url' => '',
661 ],
662 [
663 'name' => 'product-tabs',
664 'label' => esc_html__('Product Tabs (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',
671 'demo_url' => 'https://storekit.pro/demo/product-tabs/',
672 'video_url' => '',
673 ],
674 [
675 'name' => 'product-title',
676 'label' => esc_html__('Product Title (Single)', 'ultimate-store-kit'),
677 'type' => 'checkbox',
678 'default' => "off",
679 'widget_type' => 'pro',
680 'plugin_name' => 'woocommerce',
681 'plugin_path' => 'woocommerce/woocommerce.php',
682 'content_type' => 'woocommerce single',
683 'demo_url' => 'https://storekit.pro/demo/product-title/',
684 'video_url' => '',
685 ],
686 [
687 'name' => 'shiny-grid',
688 'label' => esc_html__('Shiny Grid', '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 grid',
695 'demo_url' => 'https://storekit.pro/demo/shiny-grid/',
696 'video_url' => '',
697 ],
698 [
699 'name' => 'shiny-carousel',
700 'label' => esc_html__('Shiny Carousel', '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 carousel',
707 'demo_url' => 'https://storekit.pro/demo/shiny-carousel/',
708 'video_url' => '',
709 ],
710 [
711 'name' => 'showcase-slider',
712 'label' => esc_html__('Showcase Slider', 'ultimate-store-kit'),
713 'type' => 'checkbox',
714 'default' => "on",
715 'widget_type' => 'free',
716 'plugin_name' => 'woocommerce',
717 'plugin_path' => 'woocommerce/woocommerce.php',
718 'content_type' => 'woocommerce slider',
719 'demo_url' => 'https://storekit.pro/demo/showcase-slider/',
720 'video_url' => '',
721 ],
722
723 [
724 'name' => 'sub-category',
725 'label' => esc_html__('Sub Category', '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 grid',
732 'demo_url' => 'https://storekit.pro/demo/sub-category/',
733 'video_url' => '',
734 ],
735 [
736 'name' => 'sub-category-carousel',
737 'label' => esc_html__('Sub Category Carousel', 'ultimate-store-kit'),
738 'type' => 'checkbox',
739 'default' => "on",
740 'widget_type' => 'free',
741 'plugin_name' => 'woocommerce',
742 'plugin_path' => 'woocommerce/woocommerce.php',
743 'content_type' => 'woocommerce carousel',
744 'demo_url' => 'https://storekit.pro/demo/sub-category-carousel/',
745 'video_url' => '',
746 ],
747
748 [
749 'name' => 'thankyou-order',
750 'label' => esc_html__('Thank You Order', '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/',
758 'video_url' => '',
759 ],
760 [
761 'name' => 'thankyou-order-details',
762 'label' => esc_html__('Thank You Order Details', '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-details/',
770 'video_url' => '',
771 ],
772 [
773 'name' => 'thankyou-order-customer-address',
774 'label' => esc_html__('Thank You Order Customer Address', '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-customer-address/',
782 'video_url' => '',
783 ],
784 [
785 'name' => 'thankyou-order-confirmation',
786 'label' => esc_html__('Thank You Order Confirmation', 'ultimate-store-kit'),
787 'type' => 'checkbox',
788 'default' => "off",
789 'widget_type' => 'pro',
790 'plugin_name' => 'woocommerce',
791 'plugin_path' => 'woocommerce/woocommerce.php',
792 'content_type' => 'woocommerce thank-you order',
793 'demo_url' => 'https://storekit.pro/demo/thankyou-order-confirmation/',
794 'video_url' => '',
795 ],
796 [
797 'name' => 'wishlist-button',
798 'label' => esc_html__('Wishlist Button', '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-button/',
806 'video_url' => '',
807 ],
808 [
809 'name' => 'wishlist-products',
810 'label' => esc_html__('Wishlist Products', 'ultimate-store-kit'),
811 'type' => 'checkbox',
812 'default' => "on",
813 'widget_type' => 'pro',
814 'plugin_name' => 'woocommerce',
815 'plugin_path' => 'woocommerce/woocommerce.php',
816 'content_type' => 'woocommerce others',
817 'demo_url' => 'https://storekit.pro/demo/wishlist-products/',
818 'video_url' => '',
819 ],
820 [
821 'name' => 'up-sells',
822 'label' => esc_html__('Upsells', 'ultimate-store-kit'),
823 'type' => 'checkbox',
824 'default' => "off",
825 'widget_type' => 'free',
826 'plugin_name' => 'woocommerce',
827 'plugin_path' => 'woocommerce/woocommerce.php',
828 'content_type' => 'woocommerce others',
829 'demo_url' => 'https://storekit.pro/demo/up-sells/',
830 'video_url' => '',
831 ],
832 ],
833 'ultimate_store_kit_edd_modules' => [
834 [
835 'name' => 'edd-category-grid',
836 'label' => esc_html__('EDD Category Grid', '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 grid',
843 'demo_url' => 'https://storekit.pro/demo/edd-category-grid/',
844 'video_url' => '',
845 ],
846 [
847 'name' => 'edd-category-carousel',
848 'label' => esc_html__('EDD Category Carousel', '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 carousel',
855 'demo_url' => 'https://storekit.pro/demo/edd-category-carousel/',
856 'video_url' => '',
857 ],
858 [
859 'name' => 'edd-beauty-grid',
860 'label' => esc_html__('EDD Beauty Grid', '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 grid',
867 'demo_url' => 'https://storekit.pro/demo/edd-beauty-grid/',
868 'video_url' => '',
869 ],
870 [
871 'name' => 'edd-beauty-carousel',
872 'label' => esc_html__('EDD Beauty Carousel', '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 carousel',
879 'demo_url' => 'https://storekit.pro/demo/edd-beauty-carousel/',
880 'video_url' => 'https://youtu.be/YxPfPZUu_3M?si=8zJ9aWZ1NV4iOubs',
881 ],
882 [
883 'name' => 'edd-classic-grid',
884 'label' => esc_html__('EDD Classic Grid', '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 grid',
891 'demo_url' => 'https://storekit.pro/demo/edd-classic-grid/',
892 'video_url' => '',
893 ],
894 [
895 'name' => 'edd-classic-carousel',
896 'label' => esc_html__('EDD Classic Carousel', 'ultimate-store-kit'),
897 'type' => 'checkbox',
898 'default' => "on",
899 'plugin_name' => 'easy-digital-downloads',
900 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
901 'widget_type' => 'free',
902 'content_type' => 'edd carousel',
903 'demo_url' => 'https://storekit.pro/demo/edd-classic-carousel/',
904 'video_url' => '',
905 ],
906 [
907 'name' => 'edd-product-reviews',
908 'label' => esc_html__('EDD Product Review', '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-reviews/',
916 'video_url' => '',
917 ],
918 [
919 'name' => 'edd-product-review-carousel',
920 'label' => esc_html__('EDD Product Review Carousel', 'ultimate-store-kit'),
921 'type' => 'checkbox',
922 'default' => "off",
923 'plugin_name' => 'easy-digital-downloads',
924 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
925 'widget_type' => 'pro',
926 'content_type' => 'edd',
927 'demo_url' => 'https://storekit.pro/demo/edd-product-review-carousel/',
928 'video_url' => '',
929 ],
930 [
931 'name' => 'edd-standard-grid',
932 'label' => esc_html__('EDD Standard Grid', '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 grid',
939 'demo_url' => 'https://storekit.pro/demo/edd-standard-grid/',
940 'video_url' => '',
941 ],
942 [
943 'name' => 'edd-standard-carousel',
944 'label' => esc_html__('EDD Standard Carousel', '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 carousel',
951 'demo_url' => 'https://storekit.pro/demo/edd-standard-carousel/',
952 'video_url' => '',
953 ],
954 [
955 'name' => 'edd-trendy-grid',
956 'label' => esc_html__('EDD Trendy Grid', '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 grid',
963 'demo_url' => 'https://storekit.pro/demo/edd-trendy-grid/',
964 'video_url' => '',
965 ],
966 [
967 'name' => 'edd-trendy-carousel',
968 'label' => esc_html__('EDD Trendy Carousel', 'ultimate-store-kit'),
969 'type' => 'checkbox',
970 'default' => "on",
971 'plugin_name' => 'easy-digital-downloads',
972 'plugin_path' => 'easy-digital-downloads/easy-digital-downloads.php',
973 'widget_type' => 'free',
974 'content_type' => 'edd carousel',
975 'demo_url' => 'https://storekit.pro/demo/edd-trendy-carousel/',
976 'video_url' => '',
977 ]
978 ],
979 'ultimate_store_kit_general_modules' => [
980 [
981 'name' => 'brand-grid',
982 'label' => esc_html__('Brand Grid', 'ultimate-store-kit'),
983 'type' => 'checkbox',
984 'default' => "on",
985 'widget_type' => 'free',
986 'content_type' => 'grid',
987 'demo_url' => 'https://storekit.pro/demo/brand-grid/',
988 'video_url' => '',
989 ],
990 [
991 'name' => 'brand-carousel',
992 'label' => esc_html__('Brand Carousel', 'ultimate-store-kit'),
993 'type' => 'checkbox',
994 'default' => "on",
995 'widget_type' => 'free',
996 'content_type' => 'carousel',
997 'demo_url' => 'https://storekit.pro/demo/brand-carousel/',
998 'video_url' => '',
999 ],
1000 [
1001 'name' => 'featured-box',
1002 'label' => esc_html__('Featured Box', 'ultimate-store-kit'),
1003 'type' => 'checkbox',
1004 'default' => "on",
1005 'widget_type' => 'free',
1006 'content_type' => 'others',
1007 'demo_url' => 'https://storekit.pro/demo/featured-box/',
1008 'video_url' => '',
1009 ],
1010 [
1011 'name' => 'qr-code',
1012 'label' => esc_html__('QR Code', 'ultimate-store-kit'),
1013 'type' => 'checkbox',
1014 'default' => "on",
1015 'widget_type' => 'pro',
1016 'content_type' => 'others',
1017 'demo_url' => 'https://storekit.pro/demo/qr-code/',
1018 'video_url' => '',
1019 ],
1020 ],
1021 ];
1022
1023 $settings = [];
1024 $settings['settings_fields'] = $settings_fields;
1025
1026 return $callable($settings);
1027 }
1028
1029 private static function _is_plugin_installed($plugin, $plugin_path) {
1030 $installed_plugins = get_plugins();
1031 return isset($installed_plugins[$plugin_path]);
1032 }
1033
1034 public static function is_module_active($module_id, $options, $module_path = BDTUSK_MODULES_PATH) {
1035 if (!isset($options[$module_id])) {
1036 if (file_exists($module_path . $module_id . '/module.info.php')) {
1037 $module_data = require $module_path . $module_id . '/module.info.php';
1038 return $module_data['default_activation'];
1039 }
1040 } else {
1041 return $options[$module_id] == 'on';
1042 }
1043 }
1044
1045 public static function is_plugin_active($plugin_path) {
1046 if ($plugin_path) {
1047 return is_plugin_active($plugin_path);
1048 }
1049 }
1050
1051 public static function has_module_style($module_id, $module_path = BDTUSK_MODULES_PATH) {
1052 if (file_exists($module_path . $module_id . '/module.info.php')) {
1053 $module_data = require $module_path . $module_id . '/module.info.php';
1054
1055 if (isset($module_data['has_style'])) {
1056 return $module_data['has_style'];
1057 }
1058 }
1059 }
1060
1061 public static function has_module_script($module_id, $module_path = BDTUSK_MODULES_PATH) {
1062 if (file_exists($module_path . $module_id . '/module.info.php')) {
1063 $module_data = require $module_path . $module_id . '/module.info.php';
1064
1065 if (isset($module_data['has_script'])) {
1066 return $module_data['has_script'];
1067 }
1068 }
1069 }
1070 }
1071