PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.1.11
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.1.11
4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 All 146 releases
ultimate-post-kit / admin / module-settings.php

module-settings.php in Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets 4.1.11, at admin/module-settings.php

1,131 lines 55.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace UltimatePostKit\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 public static function get_widget_settings($callable) {
18
19 $settings_fields = [
20 'ultimate_post_kit_active_modules' => [
21 [
22 'name' => 'alex-grid',
23 'label' => esc_html__('Alex Grid', 'ultimate-post-kit'),
24 'type' => 'checkbox',
25 'default' => "on",
26 'widget_type' => 'free',
27 'content_type' => 'grid',
28 'demo_url' => 'https://postkit.pro/demo/alex-grid/',
29 'video_url' => 'https://youtu.be/criKI7Mm-5g',
30 ],
31 [
32 'name' => 'alex-carousel',
33 'label' => esc_html__('Alex Carousel', 'ultimate-post-kit'),
34 'type' => 'checkbox',
35 'default' => "on",
36 'widget_type' => 'free',
37 'content_type' => 'carousel',
38 'demo_url' => 'https://postkit.pro/demo/alex-carousel/',
39 'video_url' => 'https://youtu.be/nmMajegrTiM',
40 ],
41 [
42 'name' => 'alice-grid',
43 'label' => esc_html__('Alice Grid', 'ultimate-post-kit'),
44 'type' => 'checkbox',
45 'default' => "on",
46 'widget_type' => 'free',
47 'content_type' => 'grid',
48 'demo_url' => 'https://postkit.pro/demo/alice-grid/',
49 'video_url' => 'https://youtu.be/E7W5WSAvxbA',
50 ],
51 [
52 'name' => 'alice-carousel',
53 'label' => esc_html__('Alice Carousel', 'ultimate-post-kit'),
54 'type' => 'checkbox',
55 'default' => "on",
56 'widget_type' => 'free',
57 'content_type' => 'carousel',
58 'demo_url' => 'https://postkit.pro/demo/alice-carousel/',
59 'video_url' => 'https://youtu.be/I0i6q45j6Ps',
60 ],
61 [
62 'name' => 'alter-grid',
63 'label' => esc_html__('Alter Grid', 'ultimate-post-kit'),
64 'type' => 'checkbox',
65 'default' => "on",
66 'widget_type' => 'free',
67 'content_type' => 'grid',
68 'demo_url' => 'https://postkit.pro/demo/alter-grid/',
69 'video_url' => 'https://youtu.be/lJdoW-aPAe8',
70 ],
71 [
72 'name' => 'alter-carousel',
73 'label' => esc_html__('Alter Carousel', 'ultimate-post-kit'),
74 'type' => 'checkbox',
75 'default' => "on",
76 'widget_type' => 'free',
77 'content_type' => 'carousel',
78 'demo_url' => 'https://postkit.pro/demo/alter-carousel/',
79 'video_url' => 'https://youtu.be/KInlL05e_lk',
80 ],
81 [
82 'name' => 'amox-grid',
83 'label' => esc_html__('Amox Grid', 'ultimate-post-kit'),
84 'type' => 'checkbox',
85 'default' => "on",
86 'widget_type' => 'free',
87 'content_type' => 'grid',
88 'demo_url' => 'https://postkit.pro/demo/amox-grid/',
89 'video_url' => 'https://youtu.be/BeJ77OLErAk',
90 ],
91 [
92 'name' => 'amox-carousel',
93 'label' => esc_html__('Amox Carousel', 'ultimate-post-kit'),
94 'type' => 'checkbox',
95 'default' => "on",
96 'widget_type' => 'free',
97 'content_type' => 'carousel',
98 'demo_url' => 'https://postkit.pro/demo/amox-carousel/',
99 'video_url' => 'https://youtu.be/3FoLaHsyB0g',
100 ],
101
102 [
103 'name' => 'atlas-slider',
104 'label' => esc_html__('Atlas Slider', 'ultimate-post-kit'),
105 'type' => 'checkbox',
106 'default' => "on",
107 'widget_type' => 'pro',
108 'content_type' => 'slider',
109 'demo_url' => 'https://postkit.pro/demo/atlas-slider/',
110 'video_url' => 'https://youtu.be/kM1G84F5Pb4',
111 ],
112 [
113 'name' => 'author',
114 'label' => esc_html__('Author', 'ultimate-post-kit'),
115 'type' => 'checkbox',
116 'default' => "on",
117 'widget_type' => 'free',
118 'content_type' => 'others',
119 'demo_url' => 'https://postkit.pro/demo/author/',
120 'video_url' => 'https://youtu.be/rW8rTtw62ko',
121 ],
122
123 [
124 'name' => 'banner',
125 'label' => esc_html__('Banner', 'ultimate-post-kit'),
126 'type' => 'checkbox',
127 'default' => "off",
128 'widget_type' => 'free',
129 'content_type' => 'others',
130 'demo_url' => 'https://postkit.pro/demo/banner/',
131 'video_url' => 'https://youtu.be/ESZvXD-knVQ',
132 ],
133
134 [
135 'name' => 'berlin-slider',
136 'label' => esc_html__('Berlin Slider', 'ultimate-post-kit'),
137 'type' => 'checkbox',
138 'default' => "on",
139 'widget_type' => 'pro',
140 'content_type' => 'slider',
141 'demo_url' => 'https://postkit.pro/demo/berlin-slider/',
142 'video_url' => 'https://youtu.be/VErUARoiMKo',
143 ],
144 [
145 'name' => 'buzz-list',
146 'label' => esc_html__('Buzz List', 'ultimate-post-kit'),
147 'type' => 'checkbox',
148 'default' => "on",
149 'widget_type' => 'free',
150 'content_type' => 'list',
151 'demo_url' => 'https://postkit.pro/demo/buzz-list/',
152 'video_url' => 'https://youtu.be/fxjL-ugL_Ls',
153 ],
154 [
155 'name' => 'buzz-list-carousel',
156 'label' => esc_html__('Buzz List Carousel', 'ultimate-post-kit'),
157 'type' => 'checkbox',
158 'default' => "on",
159 'widget_type' => 'free',
160 'content_type' => 'carousel',
161 'demo_url' => 'https://postkit.pro/demo/buzz-list-carousel/',
162 'video_url' => 'https://youtu.be/fxjL-ugL_Ls',
163 ],
164 [
165 'name' => 'camux-slider',
166 'label' => esc_html__('Camux Slider', 'ultimate-post-kit'),
167 'type' => 'checkbox',
168 'default' => "on",
169 'widget_type' => 'free',
170 'content_type' => 'slider',
171 'demo_url' => 'https://postkit.pro/demo/camux-slider/',
172 'video_url' => 'https://youtu.be/3IFFXN69IgQ',
173 ],
174 [
175 'name' => 'candy-list',
176 'label' => esc_html__('Candy List', 'ultimate-post-kit'),
177 'type' => 'checkbox',
178 'default' => "on",
179 'widget_type' => 'pro',
180 'content_type' => 'list',
181 'demo_url' => 'https://postkit.pro/demo/candy-list/',
182 'video_url' => 'https://youtu.be/kolpoGg8uLA?si=OiXtr2eHb_b4pqCm',
183 ],
184 [
185 'name' => 'checkerboard',
186 'label' => esc_html__('Checkerboard', 'ultimate-post-kit'),
187 'type' => 'checkbox',
188 'default' => "off",
189 'widget_type' => 'pro',
190 'content_type' => 'timeline',
191 'demo_url' => 'https://postkit.pro/demo/checkerboard/',
192 'video_url' => 'https://youtu.be/nqB_bGNPSts?si=KTWQOARPuL5lTdjM',
193 ],
194 [
195 'name' => 'classic-list',
196 'label' => esc_html__('Classic List', 'ultimate-post-kit'),
197 'type' => 'checkbox',
198 'default' => "on",
199 'widget_type' => 'pro',
200 'content_type' => 'list',
201 'demo_url' => 'https://postkit.pro/demo/classic-list/',
202 'video_url' => 'https://youtu.be/A6z4z_Ki1kw',
203 ],
204 [
205 'name' => 'crystal-slider',
206 'label' => esc_html__('Crystal Slider', 'ultimate-post-kit'),
207 'type' => 'checkbox',
208 'default' => "on",
209 'widget_type' => 'free',
210 'content_type' => 'slider',
211 'demo_url' => 'https://postkit.pro/demo/crystal-slider/',
212 'video_url' => 'https://youtu.be/wZNw_prt-uI',
213 ],
214 [
215 'name' => 'carbon-slider',
216 'label' => esc_html__('Carbon Slider', 'ultimate-post-kit'),
217 'type' => 'checkbox',
218 'default' => "on",
219 'widget_type' => 'free',
220 'content_type' => 'slider',
221 'demo_url' => 'https://postkit.pro/demo/carbon-slider/',
222 'video_url' => 'https://youtu.be/1NNnJRZxxpc',
223 ],
224 [
225 'name' => 'dynamic-grid',
226 'label' => esc_html__('Dynamic Grid', 'ultimate-post-kit'),
227 'type' => 'checkbox',
228 'default' => "off",
229 'widget_type' => 'pro',
230 'content_type' => 'loop grid new',
231 'demo_url' => 'https://postkit.pro/demo/dynamic-grid/',
232 'video_url' => '',
233 ],
234 [
235 'name' => 'dynamic-carousel',
236 'label' => esc_html__('Dynamic Carousel', 'ultimate-post-kit'),
237 'type' => 'checkbox',
238 'default' => "off",
239 'widget_type' => 'pro',
240 'content_type' => 'loop carousel new',
241 'demo_url' => 'https://postkit.pro/demo/dynamic-carousel/',
242 'video_url' => '',
243 ],
244 [
245 'name' => 'dynamic-accordion',
246 'label' => esc_html__('Dynamic Accordion', 'ultimate-post-kit'),
247 'type' => 'checkbox',
248 'default' => "off",
249 'widget_type' => 'pro',
250 'content_type' => 'loop new',
251 'demo_url' => 'https://postkit.pro/demo/dynamic-accordion/',
252 'video_url' => '',
253 ],
254 [
255 'name' => 'dynamic-tabs',
256 'label' => esc_html__('Dynamic Tabs', 'ultimate-post-kit'),
257 'type' => 'checkbox',
258 'default' => "off",
259 'widget_type' => 'pro',
260 'content_type' => 'loop new',
261 'demo_url' => 'https://postkit.pro/demo/dynamic-tabs/',
262 'video_url' => '',
263 ],
264 [
265 'name' => 'eldora-carousel',
266 'label' => esc_html__('Eldora Carousel', 'ultimate-post-kit'),
267 'type' => 'checkbox',
268 'default' => "on",
269 'widget_type' => 'pro',
270 'content_type' => 'carousel',
271 'demo_url' => 'https://postkit.pro/demo/eldora-carousel/',
272 'video_url' => 'https://youtu.be/oJXRzQpowJo',
273 ],
274 [
275 'name' => 'elite-grid',
276 'label' => esc_html__('Elite Grid', 'ultimate-post-kit'),
277 'type' => 'checkbox',
278 'default' => "on",
279 'widget_type' => 'free',
280 'content_type' => 'grid',
281 'demo_url' => 'https://postkit.pro/demo/elite-grid/',
282 'video_url' => 'https://youtu.be/J0AfZvRWClw',
283 ],
284 [
285 'name' => 'elite-carousel',
286 'label' => esc_html__('Elite Carousel', 'ultimate-post-kit'),
287 'type' => 'checkbox',
288 'default' => "on",
289 'widget_type' => 'free',
290 'content_type' => 'carousel',
291 'demo_url' => 'https://postkit.pro/demo/elite-carousel/',
292 'video_url' => 'https://youtu.be/iod230fVndQ',
293 ],
294 [
295 'name' => 'exotic-list',
296 'label' => esc_html__('Exotic List', 'ultimate-post-kit'),
297 'type' => 'checkbox',
298 'default' => "on",
299 'widget_type' => 'free',
300 'content_type' => 'list',
301 'demo_url' => 'https://postkit.pro/demo/exotic-list/',
302 'video_url' => 'https://youtu.be/WROTolCKOmE',
303 ],
304 [
305 'name' => 'fanel-list',
306 'label' => esc_html__('Fanel List', 'ultimate-post-kit'),
307 'type' => 'checkbox',
308 'default' => "on",
309 'widget_type' => 'free',
310 'content_type' => 'list',
311 'demo_url' => 'https://postkit.pro/demo/fanel-list/',
312 'video_url' => 'https://youtu.be/nGAoLOoNYk4',
313 ],
314 [
315 'name' => 'featured-list',
316 'label' => esc_html__('Featured List', 'ultimate-post-kit'),
317 'type' => 'checkbox',
318 'default' => "on",
319 'widget_type' => 'free',
320 'content_type' => 'list',
321 'demo_url' => 'https://postkit.pro/demo/featured-list/',
322 'video_url' => 'https://youtu.be/Q-Pm-6Kkmr4',
323 ],
324 [
325 'name' => 'featured-gallery',
326 'label' => esc_html__('Featured Gallery', 'ultimate-post-kit'),
327 'type' => 'checkbox',
328 'default' => "off",
329 'widget_type' => 'pro',
330 'content_type' => 'list new',
331 'demo_url' => 'https://postkit.pro/demo/featured-gallery/',
332 'video_url' => '',
333 ],
334 [
335 'name' => 'forbes-tabs',
336 'label' => esc_html__('Forbes Tabs', 'ultimate-post-kit'),
337 'type' => 'checkbox',
338 'default' => "on",
339 'widget_type' => 'pro',
340 'content_type' => 'tabs',
341 'demo_url' => 'https://postkit.pro/demo/forbes-tabs/',
342 'video_url' => 'https://youtu.be/lc0WNMtjP_k',
343 ],
344 [
345 'name' => 'foxico-slider',
346 'label' => esc_html__('Foxico Slider', 'ultimate-post-kit'),
347 'type' => 'checkbox',
348 'default' => "on",
349 'widget_type' => 'pro',
350 'content_type' => 'slider',
351 'demo_url' => 'https://postkit.pro/demo/foxico-slider/',
352 'video_url' => 'https://youtu.be/pxCXF5UblQk',
353 ],
354 [
355 'name' => 'gratis-carousel',
356 'label' => esc_html__('Gratis Carousel', 'ultimate-post-kit'),
357 'type' => 'checkbox',
358 'default' => "off",
359 'widget_type' => 'pro',
360 'content_type' => 'carousel',
361 'demo_url' => 'https://postkit.pro/demo/gratis-carousel/',
362 'video_url' => 'https://youtu.be/D1OqHYn6w-o',
363 ],
364 [
365 'name' => 'gratis-grid',
366 'label' => esc_html__('Gratis Grid', 'ultimate-post-kit'),
367 'type' => 'checkbox',
368 'default' => "off",
369 'widget_type' => 'free',
370 'content_type' => 'grid',
371 'demo_url' => 'https://postkit.pro/demo/gratis-grid/',
372 'video_url' => 'https://youtu.be/jLBLAqxEOwQ',
373 ],
374 [
375 'name' => 'grove-timeline',
376 'label' => esc_html__('Grove Timeline', 'ultimate-post-kit'),
377 'type' => 'checkbox',
378 'default' => "on",
379 'widget_type' => 'pro',
380 'content_type' => 'timeline',
381 'demo_url' => 'https://postkit.pro/demo/grove-timeline/',
382 'video_url' => 'https://youtu.be/FPkHDXCMrjk',
383 ],
384 [
385 'name' => 'hansel-slider',
386 'label' => esc_html__('Hansel Slider', 'ultimate-post-kit'),
387 'type' => 'checkbox',
388 'default' => "on",
389 'widget_type' => 'pro',
390 'content_type' => 'slider',
391 'demo_url' => 'https://postkit.pro/demo/hansel-slider/',
392 'video_url' => 'https://youtu.be/tC7WGeMQkSQ',
393 ],
394 [
395 'name' => 'harold-list',
396 'label' => esc_html__('Harold List', 'ultimate-post-kit'),
397 'type' => 'checkbox',
398 'default' => "on",
399 'widget_type' => 'free',
400 'content_type' => 'list',
401 'demo_url' => 'https://postkit.pro/demo/harold-list/',
402 'video_url' => 'https://youtu.be/gmMpNuw4LD8',
403 ],
404 [
405 'name' => 'harold-carousel',
406 'label' => esc_html__('Harold List carousel', 'ultimate-post-kit'),
407 'type' => 'checkbox',
408 'default' => "on",
409 'widget_type' => 'free',
410 'content_type' => 'carousel',
411 'demo_url' => 'https://postkit.pro/demo/harold-carousel/',
412 'video_url' => 'https://youtu.be/M9GruY3beAk',
413 ],
414 [
415 'name' => 'hazel-grid',
416 'label' => esc_html__('Hazel Grid', 'ultimate-post-kit'),
417 'type' => 'checkbox',
418 'default' => "on",
419 'widget_type' => 'free',
420 'content_type' => 'grid',
421 'demo_url' => 'https://postkit.pro/demo/hazel-grid/',
422 'video_url' => 'https://youtu.be/Uy_rOg8lQJM',
423 ],
424 [
425 'name' => 'hazel-carousel',
426 'label' => esc_html__('Hazel Carousel', 'ultimate-post-kit'),
427 'type' => 'checkbox',
428 'default' => "on",
429 'widget_type' => 'free',
430 'content_type' => 'carousel',
431 'demo_url' => 'https://postkit.pro/demo/hazel-carousel/',
432 'video_url' => 'https://youtu.be/N1f6AanD3gM',
433 ],
434 [
435 'name' => 'holux-tabs',
436 'label' => esc_html__('Holux Tabs', 'ultimate-post-kit'),
437 'type' => 'checkbox',
438 'default' => "on",
439 'widget_type' => 'pro',
440 'content_type' => 'tabs',
441 'demo_url' => 'https://postkit.pro/demo/holux-tabs/',
442 'video_url' => 'https://youtu.be/P-y7v3RRP1M',
443 ],
444 [
445 'name' => 'iconic-slider',
446 'label' => esc_html__('Iconic Slider', 'ultimate-post-kit'),
447 'type' => 'checkbox',
448 'default' => "off",
449 'widget_type' => 'pro',
450 'content_type' => 'slider',
451 'demo_url' => 'https://postkit.pro/demo/iconic-slider/',
452 'video_url' => 'https://youtu.be/vsqsA_iwMU4?si=cnHyH-dOvGRgfvPX',
453 ],
454 [
455 'name' => 'instagram-gallery',
456 'label' => esc_html__('Instagram Gallery', 'ultimate-post-kit'),
457 'type' => 'checkbox',
458 'default' => "off",
459 'widget_type' => 'pro',
460 'content_type' => 'instagram',
461 'demo_url' => 'https://postkit.pro/demo/instagram-gallery/',
462 'video_url' => '',
463 ],
464 [
465 'name' => 'kalon-grid',
466 'label' => esc_html__('Kalon Grid', 'ultimate-post-kit'),
467 'type' => 'checkbox',
468 'default' => "on",
469 'widget_type' => 'pro',
470 'content_type' => 'grid',
471 'demo_url' => 'https://postkit.pro/demo/kalon-grid/',
472 'video_url' => 'https://youtu.be/sxePbXHbVdw',
473 ],
474 [
475 'name' => 'kalon-carousel',
476 'label' => esc_html__('Kalon Carousel', 'ultimate-post-kit'),
477 'type' => 'checkbox',
478 'default' => "on",
479 'widget_type' => 'pro',
480 'content_type' => 'carousel',
481 'demo_url' => 'https://postkit.pro/demo/kalon-carousel/',
482 'video_url' => 'https://youtu.be/zTS25x7KWTA',
483 ],
484 [
485 'name' => 'maple-grid',
486 'label' => esc_html__('Maple Grid', 'ultimate-post-kit'),
487 'type' => 'checkbox',
488 'default' => "on",
489 'widget_type' => 'free',
490 'content_type' => 'grid',
491 'demo_url' => 'https://postkit.pro/demo/maple-grid/',
492 'video_url' => 'https://youtu.be/teraPP36sgQ',
493 ],
494 [
495 'name' => 'maple-carousel',
496 'label' => esc_html__('Maple Carousel', 'ultimate-post-kit'),
497 'type' => 'checkbox',
498 'default' => "on",
499 'widget_type' => 'free',
500 'content_type' => 'carousel',
501 'demo_url' => 'https://postkit.pro/demo/maple-carousel/',
502 'video_url' => 'https://youtu.be/h9KTG-DIbm4',
503 ],
504 [
505 'name' => 'news-ticker',
506 'label' => esc_html__('News Ticker', 'ultimate-post-kit'),
507 'type' => 'checkbox',
508 'default' => "on",
509 'widget_type' => 'free',
510 'content_type' => 'others',
511 'demo_url' => 'https://postkit.pro/demo/news-ticker/',
512 'video_url' => 'https://youtu.be/xiKwQActvwk',
513 ],
514 [
515 'name' => 'newsletter',
516 'label' => esc_html__('Newsletter', 'ultimate-post-kit'),
517 'type' => 'checkbox',
518 'default' => "on",
519 'widget_type' => 'free',
520 'content_type' => 'others',
521 'demo_url' => 'https://postkit.pro/demo/newsletter/',
522 'video_url' => 'https://youtu.be/8ZgQVoSPEyw',
523 ],
524 [
525 'name' => 'noxe-slider',
526 'label' => esc_html__('Noxe Slider', 'ultimate-post-kit'),
527 'type' => 'checkbox',
528 'default' => "on",
529 'widget_type' => 'free',
530 'content_type' => 'slider',
531 'demo_url' => 'https://postkit.pro/demo/noxe-slider/',
532 'video_url' => 'https://youtu.be/CyhG4NK8_lo',
533 ],
534 [
535 'name' => 'optick-slider',
536 'label' => esc_html__('Optick Slider', 'ultimate-post-kit'),
537 'type' => 'checkbox',
538 'default' => "on",
539 'widget_type' => 'pro',
540 'content_type' => 'slider',
541 'demo_url' => 'https://postkit.pro/demo/optick-slider/',
542 'video_url' => 'https://youtu.be/gqTNcaH7Qy4',
543 ],
544 [
545 'name' => 'timeline',
546 'label' => esc_html__('Oras Timeline', 'ultimate-post-kit'),
547 'type' => 'checkbox',
548 'default' => "on",
549 'widget_type' => 'free',
550 'content_type' => 'timeline',
551 'demo_url' => 'https://postkit.pro/demo/timeline/',
552 'video_url' => 'https://youtu.be/2iYuNgP4K0A',
553 ],
554 [
555 'name' => 'paradox-slider',
556 'label' => esc_html__('Paradox Slider', 'ultimate-post-kit'),
557 'type' => 'checkbox',
558 'default' => "on",
559 'widget_type' => 'free',
560 'content_type' => 'slider',
561 'demo_url' => 'https://postkit.pro/demo/paradox-slider/',
562 'video_url' => 'https://youtu.be/2ZYnLz__uA4',
563 ],
564 [
565 'name' => 'pholox-slider',
566 'label' => esc_html__('Pholox Slider', 'ultimate-post-kit'),
567 'type' => 'checkbox',
568 'default' => "on",
569 'widget_type' => 'free',
570 'content_type' => 'slider',
571 'demo_url' => 'https://postkit.pro/demo/pholox-slider/',
572 'video_url' => 'https://youtu.be/Et_-wFgOn0M',
573 ],
574 [
575 'name' => 'pixina-grid',
576 'label' => esc_html__('Pixina Grid', 'ultimate-post-kit'),
577 'type' => 'checkbox',
578 'default' => "on",
579 'widget_type' => 'pro',
580 'content_type' => 'grid',
581 'demo_url' => 'https://postkit.pro/demo/pixina-grid/',
582 'video_url' => 'https://youtu.be/oCPys6NyKDo',
583 ],
584 [
585 'name' => 'pixina-carousel',
586 'label' => esc_html__('Pixina Carousel', 'ultimate-post-kit'),
587 'type' => 'checkbox',
588 'default' => "on",
589 'widget_type' => 'pro',
590 'content_type' => 'carousel',
591 'demo_url' => 'https://postkit.pro/demo/pixina-carousel/',
592 'video_url' => 'https://youtu.be/ebSyK__cMhw',
593 ],
594 [
595 'name' => 'post-accordion',
596 'label' => esc_html__('Post Accordion', 'ultimate-post-kit'),
597 'type' => 'checkbox',
598 'default' => "on",
599 'widget_type' => 'free',
600 'content_type' => 'others',
601 'demo_url' => 'https://postkit.pro/demo/post-accordion/',
602 'video_url' => 'https://youtu.be/lxGeTthE_lA',
603 ],
604 [
605 'name' => 'post-calendar',
606 'label' => esc_html__('Post Calendar', 'ultimate-post-kit'),
607 'type' => 'checkbox',
608 'default' => "on",
609 'widget_type' => 'pro',
610 'content_type' => 'others',
611 'demo_url' => 'https://postkit.pro/demo/post-calendar/',
612 'video_url' => 'https://youtu.be/_MhyGAgj8yw',
613 ],
614 [
615 'name' => 'post-category',
616 'label' => esc_html__('Category', 'ultimate-post-kit'),
617 'type' => 'checkbox',
618 'default' => "on",
619 'widget_type' => 'free',
620 'content_type' => 'others',
621 'demo_url' => 'https://postkit.pro/demo/post-category/',
622 'video_url' => 'https://youtu.be/3S5hRqxTDTo',
623 ],
624 [
625 'name' => 'post-comments',
626 'label' => esc_html__('Post Comments', 'ultimate-post-kit'),
627 'type' => 'checkbox',
628 'default' => "on",
629 'widget_type' => 'pro',
630 'content_type' => 'template-builder',
631 'demo_url' => 'https://postkit.pro/archive/',
632 ],
633 [
634 'name' => 'post-content',
635 'label' => esc_html__('Post Content', 'ultimate-post-kit'),
636 'type' => 'checkbox',
637 'default' => "on",
638 'widget_type' => 'pro',
639 'content_type' => 'template-builder',
640 'demo_url' => 'https://postkit.pro/archive/',
641 'video_url' => 'https://youtu.be/rfU_LqHpbb8?si=O32oHaQ43RTdRucM',
642 ],
643 [
644 'name' => 'post-featured-image',
645 'label' => esc_html__('Post Featured Image', 'ultimate-post-kit'),
646 'type' => 'checkbox',
647 'default' => "on",
648 'widget_type' => 'pro',
649 'content_type' => 'template-builder',
650 'demo_url' => 'https://postkit.pro/archive/',
651 'video_url' => 'https://youtu.be/rfU_LqHpbb8?si=O32oHaQ43RTdRucM',
652 ],
653 [
654 'name' => 'post-info',
655 'label' => esc_html__('Post Info', 'ultimate-post-kit'),
656 'type' => 'checkbox',
657 'default' => "on",
658 'widget_type' => 'pro',
659 'content_type' => 'template-builder',
660 'demo_url' => 'https://postkit.pro/archive/',
661 'video_url' => 'https://youtu.be/rfU_LqHpbb8?si=O32oHaQ43RTdRucM',
662 ],
663 [
664 'name' => 'post-title',
665 'label' => esc_html__('Post Title', 'ultimate-post-kit'),
666 'type' => 'checkbox',
667 'default' => "on",
668 'widget_type' => 'pro',
669 'content_type' => 'template-builder',
670 'demo_url' => 'https://postkit.pro/archive/',
671 'video_url' => 'https://youtu.be/rfU_LqHpbb8?si=O32oHaQ43RTdRucM',
672 ],
673 [
674 'name' => 'category-carousel',
675 'label' => esc_html__('Category Carousel', 'ultimate-post-kit'),
676 'type' => 'checkbox',
677 'default' => "on",
678 'widget_type' => 'free',
679 'content_type' => 'carousel',
680 'demo_url' => 'https://postkit.pro/demo/category-carousel/',
681 'video_url' => 'https://youtu.be/kNA3mYIMkLM',
682 ],
683 [
684 'name' => 'ramble-grid',
685 'label' => esc_html__('Ramble Grid', 'ultimate-post-kit'),
686 'type' => 'checkbox',
687 'default' => "on",
688 'widget_type' => 'free',
689 'content_type' => 'grid',
690 'demo_url' => 'https://postkit.pro/demo/ramble-grid/',
691 'video_url' => 'https://youtu.be/mKdxqk3M2qI',
692 ],
693 [
694 'name' => 'ramble-carousel',
695 'label' => esc_html__('Ramble Carousel', 'ultimate-post-kit'),
696 'type' => 'checkbox',
697 'default' => "on",
698 'widget_type' => 'free',
699 'content_type' => 'carousel',
700 'demo_url' => 'https://postkit.pro/demo/ramble-carousel/',
701 'video_url' => 'https://youtu.be/vv10IM0pCHA',
702 ],
703 [
704 'name' => 'reading-progress',
705 'label' => esc_html__('Reading Progress Bar', 'ultimate-post-kit'),
706 'type' => 'checkbox',
707 'default' => "on",
708 'widget_type' => 'free',
709 'content_type' => 'others',
710 'demo_url' => 'https://postkit.pro/demo/reading-progress/',
711 'video_url' => 'https://youtu.be/9N_2WDXUjo0',
712 ],
713 [
714 'name' => 'reading-progress-circle',
715 'label' => esc_html__('Reading Progress Circle', 'ultimate-post-kit'),
716 'type' => 'checkbox',
717 'default' => "on",
718 'widget_type' => 'pro',
719 'content_type' => 'others',
720 'demo_url' => 'https://postkit.pro/demo/reading-progress-circle/',
721 'video_url' => 'https://youtu.be/yiC3w8cphJE',
722 ],
723 [
724 'name' => 'recent-comments',
725 'label' => esc_html__('Recent Comments', 'ultimate-post-kit'),
726 'type' => 'checkbox',
727 'default' => "on",
728 'widget_type' => 'free',
729 'content_type' => 'others',
730 'demo_url' => 'https://postkit.pro/demo/recent-comments/',
731 'video_url' => 'https://youtu.be/_RFwr9Lx7Gs',
732 ],
733 [
734 'name' => 'remote-arrows',
735 'label' => esc_html__('Remote Arrows', 'ultimate-post-kit'),
736 'type' => 'checkbox',
737 'default' => 'off',
738 'widget_type' => 'pro',
739 'content_type' => 'carousel new',
740 'demo_url' => 'https://postkit.pro/demo/remote-arrows/',
741 'video_url' => 'https://youtu.be/w0CEROpvjjA',
742 ],
743 [
744 'name' => 'remote-fraction',
745 'label' => esc_html__('Remote Fraction', 'ultimate-post-kit'),
746 'type' => 'checkbox',
747 'default' => 'off',
748 'widget_type' => 'pro',
749 'content_type' => 'carousel new',
750 'demo_url' => 'https://postkit.pro/demo/remote-fraction/',
751 'video_url' => 'https://youtu.be/UfmwcTjX7L8',
752 ],
753 [
754 'name' => 'remote-pagination',
755 'label' => esc_html__('Remote Pagination', 'ultimate-post-kit'),
756 'type' => 'checkbox',
757 'default' => 'off',
758 'widget_type' => 'pro',
759 'content_type' => 'carousel new',
760 'demo_url' => 'https://postkit.pro/demo/remote-pagination/',
761 'video_url' => 'https://youtu.be/eZWSkb7HeUA',
762 ],
763 [
764 'name' => 'remote-thumbs',
765 'label' => esc_html__('Remote Thumbs', 'ultimate-post-kit'),
766 'type' => 'checkbox',
767 'default' => 'off',
768 'widget_type' => 'pro',
769 'content_type' => 'carousel new',
770 'demo_url' => 'https://postkit.pro/demo/remote-thumbs/',
771 'video_url' => 'https://youtu.be/PKKnqB0vhzE',
772 ],
773 [
774 'name' => 'scott-list',
775 'label' => esc_html__('Scott List', 'ultimate-post-kit'),
776 'type' => 'checkbox',
777 'default' => "on",
778 'widget_type' => 'free',
779 'content_type' => 'list',
780 'demo_url' => 'https://postkit.pro/demo/scott-list/',
781 'video_url' => 'https://youtu.be/twaysnvoWkM',
782 ],
783 [
784 'name' => 'skide-slider',
785 'label' => esc_html__('Skide Slider', 'ultimate-post-kit'),
786 'type' => 'checkbox',
787 'default' => "on",
788 'widget_type' => 'free',
789 'content_type' => 'slider',
790 'demo_url' => 'https://postkit.pro/demo/skide-slider/',
791 'video_url' => 'https://youtu.be/7-7PbdFi_Ks',
792 ],
793 [
794 'name' => 'soft-timeline',
795 'label' => esc_html__('Soft Timeline', 'ultimate-post-kit'),
796 'type' => 'checkbox',
797 'default' => "on",
798 'widget_type' => 'pro',
799 'content_type' => 'timeline',
800 'demo_url' => 'https://postkit.pro/demo/soft-timeline/',
801 'video_url' => 'https://youtu.be/5scXg5bsGDc',
802 ],
803 [
804 'name' => 'sline-slider',
805 'label' => esc_html__('Sline Slider', 'ultimate-post-kit'),
806 'type' => 'checkbox',
807 'default' => "on",
808 'widget_type' => 'pro',
809 'content_type' => 'slider',
810 'demo_url' => 'https://postkit.pro/demo/sline-slider/',
811 'video_url' => 'https://youtu.be/CevH3uPjuGI',
812 ],
813 [
814 'name' => 'stone-hover',
815 'label' => esc_html__('Stone Hover', 'ultimate-post-kit'),
816 'type' => 'checkbox',
817 'default' => "off",
818 'widget_type' => 'pro',
819 'content_type' => 'others',
820 'demo_url' => 'https://postkit.pro/demo/stone-hover/',
821 'video_url' => 'https://youtu.be/7Gz3ElKbb2Q',
822 ],
823 [
824 'name' => 'snog-slider',
825 'label' => esc_html__('Snog Slider', 'ultimate-post-kit'),
826 'type' => 'checkbox',
827 'default' => "off",
828 'widget_type' => 'free',
829 'content_type' => 'slider',
830 'demo_url' => 'https://postkit.pro/demo/snog-slider/',
831 'video_url' => 'https://youtu.be/UKZIEgYg0gs?si=exkIDYa-j2c7E34t',
832 ],
833 [
834 'name' => 'snap-timeline',
835 'label' => esc_html__('Snap Timeline', 'ultimate-post-kit'),
836 'type' => 'checkbox',
837 'default' => "on",
838 'widget_type' => 'pro',
839 'content_type' => 'timeline',
840 'demo_url' => 'https://postkit.pro/demo/snap-timeline/',
841 'video_url' => 'https://youtu.be/KCBjzS_1lE0',
842 ],
843 [
844 'name' => 'static-social-count',
845 'label' => esc_html__('Social Count(Static)', 'ultimate-post-kit'),
846 'type' => 'checkbox',
847 'default' => "on",
848 'widget_type' => 'free',
849 'content_type' => 'others',
850 'demo_url' => 'https://postkit.pro/demo/static-social-count/',
851 'video_url' => 'https://youtu.be/MmbdYPee9qw',
852 ],
853 [
854 'name' => 'social-share',
855 'label' => esc_html__('Social Share', 'ultimate-post-kit'),
856 'type' => 'checkbox',
857 'default' => "on",
858 'widget_type' => 'free',
859 'content_type' => 'others',
860 'demo_url' => 'https://postkit.pro/demo/social-share/',
861 'video_url' => 'https://youtu.be/77S087dzK3Q',
862 ],
863 [
864 'name' => 'social-link',
865 'label' => esc_html__('Social Link', 'ultimate-post-kit'),
866 'type' => 'checkbox',
867 'default' => "on",
868 'widget_type' => 'pro',
869 'content_type' => 'others',
870 'demo_url' => 'https://postkit.pro/demo/social-link/',
871 'video_url' => 'https://youtu.be/MCH3v8iwrTw',
872 ],
873 [
874 'name' => 'tag-cloud',
875 'label' => esc_html__('Tag Cloud', 'ultimate-post-kit'),
876 'type' => 'checkbox',
877 'default' => "on",
878 'widget_type' => 'free',
879 'content_type' => 'others',
880 'demo_url' => 'https://postkit.pro/demo/tag-cloud/',
881 'video_url' => 'https://youtu.be/DLl_bqh_E2M',
882 ],
883 [
884 'name' => 'tiny-list',
885 'label' => esc_html__('Tiny List', 'ultimate-post-kit'),
886 'type' => 'checkbox',
887 'default' => "on",
888 'widget_type' => 'free',
889 'content_type' => 'list',
890 'demo_url' => 'https://postkit.pro/demo/tiny-list/',
891 'video_url' => 'https://youtu.be/PZlXofIOy68',
892 ],
893 [
894 'name' => 'wixer-grid',
895 'label' => esc_html__('Wixer Grid', 'ultimate-post-kit'),
896 'type' => 'checkbox',
897 'default' => "on",
898 'widget_type' => 'pro',
899 'content_type' => 'grid',
900 'demo_url' => 'https://postkit.pro/demo/wixer-grid/',
901 'video_url' => 'https://youtu.be/MeR0jXdpYc0',
902 ],
903 [
904 'name' => 'wixer-carousel',
905 'label' => esc_html__('Wixer Carousel', 'ultimate-post-kit'),
906 'type' => 'checkbox',
907 'default' => "on",
908 'widget_type' => 'pro',
909 'content_type' => 'carousel',
910 'demo_url' => 'https://postkit.pro/demo/wixer-carousel/',
911 'video_url' => 'https://youtu.be/NxelaRS-a9o',
912 ],
913 [
914 'name' => 'welsh-list',
915 'label' => esc_html__('Welsh List', 'ultimate-post-kit'),
916 'type' => 'checkbox',
917 'default' => "on",
918 'widget_type' => 'pro',
919 'content_type' => 'list',
920 'demo_url' => 'https://postkit.pro/demo/welsh-list/',
921 'video_url' => 'https://youtu.be/f_sXqkUMfDg',
922 ]
923 ],
924
925 'ultimate_post_kit_elementor_extend' => [
926 [
927 'name' => 'animations',
928 'label' => esc_html__('Animations', 'ultimate-post-kit'),
929 'type' => 'checkbox',
930 'default' => "on",
931 'widget_type' => 'free',
932 'demo_url' => '',
933 'video_url' => '',
934 ],
935 [
936 'name' => 'multicolor-item',
937 'label' => esc_html__('MultiColor Item', 'ultimate-post-kit'),
938 'type' => 'checkbox',
939 'default' => "off",
940 'widget_type' => 'pro',
941 'content_type' => 'new',
942 'demo_url' => '',
943 'video_url' => 'https://youtu.be/U_UaEQA1cqU',
944 ]
945 ],
946 'ultimate_post_kit_api_settings' => [
947 [
948 'name' => 'mailchimp_group_start',
949 'label' => esc_html__('Mailchimp Access', 'ultimate-post-kit'),
950 'desc' => __('Go to your Mailchimp > Website > Domains > Extras > API Keys (<a href="http://prntscr.com/xqo78x" target="_blank">http://prntscr.com/xqo78x</a>) then create a key and paste here. You will get the audience ID here: <a href="http://prntscr.com/xqnt5z" target="_blank">http://prntscr.com/xqnt5z</a>', 'ultimate-post-kit'),
951 'type' => 'start_group',
952
953 ],
954 [
955 'name' => 'mailchimp_api_key',
956 'label' => esc_html__('Mailchimp API Key', 'ultimate-post-kit'),
957 'placeholder' => '',
958 'type' => 'text',
959 'sanitize_callback' => 'sanitize_text_field'
960
961 ],
962 [
963 'name' => 'mailchimp_list_id',
964 'label' => esc_html__('Audience ID', 'ultimate-post-kit'),
965 'placeholder' => '',
966 'type' => 'text',
967 'sanitize_callback' => 'sanitize_text_field'
968
969 ],
970 [
971 'name' => 'mailchimp_group_end',
972 'type' => 'end_group',
973 ],
974
975
976 [
977 'name' => 'instagram_group_start',
978 'label' => esc_html__('Instagram Access', 'ultimate-post-kit'),
979 'desc' => __('Go to <a href="https://developers.facebook.com/docs/instagram-basic-display-api/getting-started" target="_blank">https://developers.facebook.com/docs/instagram-basic-display-api/getting-started</a> for create your Consumer key and Access Token.', 'ultimate-post-kit'),
980 'type' => 'start_group',
981 'video_url' => 'https://youtu.be/IrQVteaaAow',
982 ],
983
984 [
985 'name' => 'instagram_app_id',
986 'label' => esc_html__('Instagram App ID', 'ultimate-post-kit'),
987 'placeholder' => '---------------',
988 'type' => 'text',
989 'sanitize_callback' => 'sanitize_text_field'
990 ],
991 [
992 'name' => 'instagram_app_secret',
993 'label' => esc_html__('Instagram App Secret', 'ultimate-post-kit'),
994 'placeholder' => '---------------',
995 'type' => 'text',
996 'sanitize_callback' => 'sanitize_text_field'
997 ],
998
999 [
1000 'name' => 'instagram_access_token',
1001 'label' => esc_html__('Instagram Access Token', 'ultimate-post-kit'),
1002 'desc' => __('Go to <a href="https://developers.facebook.com/docs/instagram-basic-display-api/getting-started" target="_blank">This Link</a> and Generate the access token then copy and paste here.', 'ultimate-post-kit'),
1003 'placeholder' => '---------------',
1004 'type' => 'text',
1005 'sanitize_callback' => 'sanitize_text_field'
1006 ],
1007
1008 [
1009 'name' => 'instagram_group_end',
1010 'type' => 'end_group',
1011 ],
1012
1013 ],
1014 'ultimate_post_kit_other_settings' => [
1015
1016 [
1017 'name' => 'dynamic-content',
1018 'label' => esc_html__('Dynamic Content', 'ultimate-post-kit'),
1019 'tooltip' => __('The Dynamic Content feature allows users to automatically populate Elementor widgets with real-time data from WordPress.', 'ultimate-post-kit'),
1020 'type' => 'checkbox',
1021 'default' => 'off',
1022 'widget_type' => 'pro',
1023 'content_type' => 'new',
1024 'demo_url' => 'https://postkit.pro/demo/dynamic-content/',
1025 'video_url' => 'https://youtu.be/JEqXbIETdDE',
1026
1027 ],
1028
1029 [
1030 'name' => 'category_image',
1031 'label' => esc_html__('Category Image', 'ultimate-post-kit'),
1032 'tooltip' => __('Display exclusive category avatar by turning on this switcher. The Category image will be visible for all post widgets if the category is turned on from the widget controls.', 'ultimate-post-kit'),
1033 'type' => 'checkbox',
1034 'default' => "off",
1035 'widget_type' => 'free',
1036 ],
1037
1038 [
1039 'name' => 'duplicator',
1040 'label' => esc_html__('Duplicator', 'ultimate-post-kit'),
1041 'tooltip' => __('Just hit the button below to enable the duplicator. It can duplicate anything like posts,pages and elementor templates. A masterclass duplication with just one click.', 'ultimate-post-kit'),
1042 'type' => 'checkbox',
1043 'default' => 'off',
1044 'widget_type' => 'free',
1045 'demo_url' => 'https://www.ultimatepostkit.pro/knowledge-base/how-to-use-ultimate-post-kit-duplicator/',
1046 'video_url' => '',
1047 ],
1048
1049 [
1050 'name' => 'live-copy',
1051 'label' => esc_html__('Live Copy Paste', 'ultimate-post-kit'),
1052 'tooltip' => __('Live copy is a copy feature that allow you to copy and paste content from one domain to another. For example you can copy demo content directly from our demo website.', 'ultimate-post-kit'),
1053 'type' => 'checkbox',
1054 'default' => 'off',
1055 'widget_type' => 'free',
1056 'demo_url' => 'https://www.ultimatepostkit.pro/knowledge-base/how-to-use-live-copy-option/',
1057 'video_url' => 'https://youtu.be/jOdWVw2TCmo',
1058
1059 ],
1060
1061 [
1062 'name' => 'audio_link',
1063 'label' => esc_html__('Audio Link', 'ultimate-post-kit'),
1064 'tooltip' => __('If you need to display Audio features in your website so please enable this option.', 'ultimate-post-kit'),
1065 'type' => 'checkbox',
1066 'default' => "off",
1067 'widget_type' => 'free',
1068 'content_type' => 'new',
1069 ],
1070
1071 [
1072 'name' => 'video_link',
1073 'label' => esc_html__('Video Link', 'ultimate-post-kit'),
1074 'tooltip' => __('If you need to display video features in your website so please enable this option.', 'ultimate-post-kit'),
1075 'type' => 'checkbox',
1076 'default' => "off",
1077 'widget_type' => 'free',
1078 ],
1079
1080 ]
1081 ];
1082
1083 $settings = [];
1084 $settings['settings_fields'] = $settings_fields;
1085
1086 return $callable($settings);
1087 }
1088
1089 private static function _is_plugin_installed($plugin, $plugin_path) {
1090 $installed_plugins = get_plugins();
1091 return isset($installed_plugins[$plugin_path]);
1092 }
1093
1094 public static function is_module_active($module_id, $options, $module_path = BDTUPK_MODULES_PATH) {
1095 if (!isset($options[$module_id])) {
1096 if (file_exists($module_path . $module_id . '/module.info.php')) {
1097 $module_data = require $module_path . $module_id . '/module.info.php';
1098 return $module_data['default_activation'];
1099 }
1100 } else {
1101 return $options[$module_id] == 'on';
1102 }
1103 }
1104
1105 public static function is_plugin_active($plugin_path) {
1106 if ($plugin_path) {
1107 return is_plugin_active($plugin_path);
1108 }
1109 }
1110
1111 public static function has_module_style($module_id, $module_path = BDTUPK_MODULES_PATH) {
1112 if (file_exists($module_path . $module_id . '/module.info.php')) {
1113 $module_data = require $module_path . $module_id . '/module.info.php';
1114
1115 if (isset($module_data['has_style'])) {
1116 return $module_data['has_style'];
1117 }
1118 }
1119 }
1120
1121 public static function has_module_script($module_id, $module_path = BDTUPK_MODULES_PATH) {
1122 if (file_exists($module_path . $module_id . '/module.info.php')) {
1123 $module_data = require $module_path . $module_id . '/module.info.php';
1124
1125 if (isset($module_data['has_script'])) {
1126 return $module_data['has_script'];
1127 }
1128 }
1129 }
1130 }
1131