PluginProbe
Pixel Gallery Addons for Elementor – Easy Grid, Creative Gallery, Drag and Drop Grid, Custom Grid Layout, Portfolio Gallery / trunk
Pixel Gallery Addons for Elementor – Easy Grid, Creative Gallery, Drag and Drop Grid, Custom Grid Layout, Portfolio Gallery vtrunk
2.1.14 2.1.13 2.1.12 2.1.11 2.1.10 2.1.9 2.1.8 2.1.7 trunk 1.2.2 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4.0 1.4.1 1.4.10 1.4.11 1.4.2 1.4.3 1.4.5 1.4.6 All 74 releases
pixel-gallery / admin / module-settings.php

module-settings.php in Pixel Gallery Addons for Elementor – Easy Grid, Creative Gallery, Drag and Drop Grid, Custom Grid Layout, Portfolio Gallery trunk, at admin/module-settings.php

732 lines 33.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace PixelGallery\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
21 $settings_fields = [
22 'pixel_gallery_active_modules' => [
23 [
24 'name' => 'alien',
25 'label' => esc_html__('Alien', 'pixel-gallery'),
26 'type' => 'checkbox',
27 'default' => 'off',
28 'widget_type' => 'free',
29 'content_type' => 'custom new',
30 'demo_url' => 'https://pixelgallery.pro/demo/alien/',
31 'video_url' => 'https://youtu.be/O4YS5LNJI2g',
32 ],
33 [
34 'name' => 'aware',
35 'label' => esc_html__('Aware', 'pixel-gallery'),
36 'type' => 'checkbox',
37 'default' => 'off',
38 'widget_type' => 'free',
39 'content_type' => 'custom new',
40 'demo_url' => 'https://pixelgallery.pro/demo/aware/',
41 'video_url' => 'https://youtu.be/r6XFiNTDFOA',
42 ],
43 [
44 'name' => 'axen',
45 'label' => esc_html__('Axen', 'pixel-gallery'),
46 'type' => 'checkbox',
47 'default' => 'on',
48 'widget_type' => 'free',
49 'content_type' => 'custom',
50 'demo_url' => 'https://pixelgallery.pro/demo/axen/',
51 'video_url' => 'https://youtu.be/2g6YB1oRug8',
52 ],
53 [
54 'name' => 'amaze',
55 'label' => esc_html__('Amaze', 'pixel-gallery'),
56 'type' => 'checkbox',
57 'default' => 'on',
58 'widget_type' => 'pro',
59 'content_type' => 'custom',
60 'demo_url' => 'https://pixelgallery.pro/demo/amaze/',
61 'video_url' => 'https://youtu.be/WPwS_wjGBIk?si=3V3eH4H2Qrn2-H3v',
62 ],
63 [
64 'name' => 'craze',
65 'label' => esc_html__('Craze', 'pixel-gallery'),
66 'type' => 'checkbox',
67 'default' => 'on',
68 'widget_type' => 'free',
69 'content_type' => 'custom',
70 'demo_url' => 'https://pixelgallery.pro/demo/craze/',
71 'video_url' => 'https://youtu.be/4_TsiUOKS64',
72 ],
73 [
74 'name' => 'crop',
75 'label' => esc_html__('Crop', 'pixel-gallery'),
76 'type' => 'checkbox',
77 'default' => 'off',
78 'widget_type' => 'free',
79 'content_type' => 'custom new',
80 'demo_url' => 'https://pixelgallery.pro/demo/crop/',
81 'video_url' => 'https://youtu.be/EbxYzM47GAs',
82 ],
83 // [
84 // 'name' => 'coslide',
85 // 'label' => esc_html__('Coslide', 'pixel-gallery'),
86 // 'type' => 'checkbox',
87 // 'default' => 'off',
88 // 'widget_type' => 'pro',
89 // 'content_type' => 'custom new',
90 // 'demo_url' => 'https://pixelgallery.pro/demo/coslide/',
91 // 'video_url' => '',
92 // ],
93 [
94 'name' => 'diamond',
95 'label' => esc_html__('Diamond', 'pixel-gallery'),
96 'type' => 'checkbox',
97 'default' => 'off',
98 'widget_type' => 'pro',
99 'content_type' => 'custom new',
100 'demo_url' => 'https://pixelgallery.pro/demo/diamond/',
101 'video_url' => 'https://youtu.be/a6wrnjc-tPk',
102 ],
103 [
104 'name' => 'doodle',
105 'label' => esc_html__('Doodle', 'pixel-gallery'),
106 'type' => 'checkbox',
107 'default' => 'on',
108 'widget_type' => 'free',
109 'content_type' => 'custom',
110 'demo_url' => 'https://pixelgallery.pro/demo/doodle/',
111 'video_url' => 'https://youtu.be/T9QmOd9o550',
112 ],
113 [
114 'name' => 'draggable',
115 'label' => esc_html__('Draggable', 'pixel-gallery'),
116 'type' => 'checkbox',
117 'default' => 'off',
118 'widget_type' => 'pro',
119 'content_type' => 'custom new',
120 'demo_url' => 'https://pixelgallery.pro/demo/draggable/',
121 'video_url' => '',
122 ],
123 [
124 'name' => 'dream',
125 'label' => esc_html__('Dream', 'pixel-gallery'),
126 'type' => 'checkbox',
127 'default' => 'on',
128 'widget_type' => 'pro',
129 'content_type' => 'custom',
130 'demo_url' => 'https://pixelgallery.pro/demo/dream/',
131 'video_url' => 'https://youtu.be/eGGVcn2LL-c?si=tRXJbJuirEjlBcLj',
132 ],
133 [
134 'name' => 'elixir',
135 'label' => esc_html__('Elixir', 'pixel-gallery'),
136 'type' => 'checkbox',
137 'default' => 'on',
138 'widget_type' => 'free',
139 'content_type' => 'custom',
140 'demo_url' => 'https://pixelgallery.pro/demo/elixir/',
141 'video_url' => 'https://youtu.be/WaKwrJX9z-g',
142 ],
143 [
144 'name' => 'epoch',
145 'label' => esc_html__('Epoch', 'pixel-gallery'),
146 'type' => 'checkbox',
147 'default' => 'on',
148 'widget_type' => 'free',
149 'content_type' => 'custom',
150 'demo_url' => 'https://pixelgallery.pro/demo/epoch/',
151 'video_url' => 'https://youtu.be/BPIfzG7RMw8',
152 ],
153 [
154 'name' => 'evolve',
155 'label' => esc_html__('Evolve', 'pixel-gallery'),
156 'type' => 'checkbox',
157 'default' => 'on',
158 'widget_type' => 'pro',
159 'content_type' => 'custom',
160 'demo_url' => 'https://pixelgallery.pro/demo/evolve/',
161 'video_url' => 'https://youtu.be/yJ3HR4cNg_s?si=-SU8_FJjefyucD7n',
162 ],
163 [
164 'name' => 'fabric',
165 'label' => esc_html__('Fabric', 'pixel-gallery'),
166 'type' => 'checkbox',
167 'default' => 'on',
168 'widget_type' => 'free',
169 'content_type' => 'custom',
170 'demo_url' => 'https://pixelgallery.pro/demo/fabric/',
171 'video_url' => 'https://youtu.be/Jms62u57nMI',
172 ],
173 [
174 'name' => 'fever',
175 'label' => esc_html__('Fever', 'pixel-gallery'),
176 'type' => 'checkbox',
177 'default' => 'on',
178 'widget_type' => 'free',
179 'content_type' => 'custom',
180 'demo_url' => 'https://pixelgallery.pro/demo/fever/',
181 'video_url' => 'https://youtu.be/SyUvB6zcqp0',
182 ],
183 [
184 'name' => 'fixer',
185 'label' => esc_html__('Fixer', 'pixel-gallery'),
186 'type' => 'checkbox',
187 'default' => 'on',
188 'widget_type' => 'free',
189 'content_type' => 'custom new',
190 'demo_url' => 'https://pixelgallery.pro/demo/fixer/',
191 'video_url' => '',
192 ],
193 [
194 'name' => 'flame',
195 'label' => esc_html__('Flame', 'pixel-gallery'),
196 'type' => 'checkbox',
197 'default' => 'on',
198 'widget_type' => 'free',
199 'content_type' => 'custom',
200 'demo_url' => 'https://pixelgallery.pro/demo/flame/',
201 'video_url' => 'https://youtu.be/xng4Uoskm9I',
202 ],
203 [
204 'name' => 'flash',
205 'label' => esc_html__('Flash', 'pixel-gallery'),
206 'type' => 'checkbox',
207 'default' => 'on',
208 'widget_type' => 'pro',
209 'content_type' => 'custom',
210 'demo_url' => 'https://pixelgallery.pro/demo/flash/',
211 'video_url' => 'https://youtu.be/SIdaSB9mjnk?si=uyCsv08oBZdVbwdz',
212 ],
213 [
214 'name' => 'fluid',
215 'label' => esc_html__('Fluid', 'pixel-gallery'),
216 'type' => 'checkbox',
217 'default' => 'on',
218 'widget_type' => 'free',
219 'content_type' => 'custom',
220 'demo_url' => 'https://pixelgallery.pro/demo/fluid/',
221 'video_url' => 'https://youtu.be/1Ca7lCGxVdE',
222 ],
223 [
224 'name' => 'floral',
225 'label' => esc_html__('Floral', 'pixel-gallery'),
226 'type' => 'checkbox',
227 'default' => 'on',
228 'widget_type' => 'pro',
229 'content_type' => 'custom',
230 'demo_url' => 'https://pixelgallery.pro/demo/floral/',
231 'video_url' => 'https://youtu.be/DWkgliNNKPA?si=LSOAZHyL-vqe2zOq',
232 ],
233 [
234 'name' => 'glam',
235 'label' => esc_html__('Glam', 'pixel-gallery'),
236 'type' => 'checkbox',
237 'default' => 'on',
238 'widget_type' => 'free',
239 'content_type' => 'custom',
240 'demo_url' => 'https://pixelgallery.pro/demo/glam/',
241 'video_url' => '',
242 ],
243 [
244 'name' => 'glaze',
245 'label' => esc_html__('Glaze', 'pixel-gallery'),
246 'type' => 'checkbox',
247 'default' => 'on',
248 'widget_type' => 'free',
249 'content_type' => 'custom',
250 'demo_url' => 'https://pixelgallery.pro/demo/glaze/',
251 'video_url' => 'https://youtu.be/AiYE9aRqTvQ',
252 ],
253 [
254 'name' => 'ridex',
255 'label' => esc_html__('Ridex', 'pixel-gallery'),
256 'type' => 'checkbox',
257 'default' => 'off',
258 'widget_type' => 'pro',
259 'content_type' => 'custom new',
260 'demo_url' => 'https://pixelgallery.pro/demo/ridex/',
261 'video_url' => 'https://youtu.be/6e8ELgxVmyo',
262 ],
263 [
264 'name' => 'heron',
265 'label' => esc_html__('Heron', 'pixel-gallery'),
266 'type' => 'checkbox',
267 'default' => 'on',
268 'widget_type' => 'pro',
269 'content_type' => 'custom',
270 'demo_url' => 'https://pixelgallery.pro/demo/heron/',
271 'video_url' => '',
272 ],
273 [
274 'name' => 'humble',
275 'label' => esc_html__('Humble', 'pixel-gallery'),
276 'type' => 'checkbox',
277 'default' => 'on',
278 'widget_type' => 'free',
279 'content_type' => 'custom new',
280 'demo_url' => 'https://pixelgallery.pro/demo/humble/',
281 'video_url' => '',
282 ],
283 [
284 'name' => 'insta',
285 'label' => esc_html__('Insta', 'pixel-gallery'),
286 'type' => 'checkbox',
287 'default' => 'on',
288 'widget_type' => 'free',
289 'content_type' => 'custom new',
290 'demo_url' => 'https://pixelgallery.pro/demo/insta/',
291 'video_url' => '',
292 ],
293 [
294 'name' => 'kitec',
295 'label' => esc_html__('Kitec', 'pixel-gallery'),
296 'type' => 'checkbox',
297 'default' => 'off',
298 'widget_type' => 'pro',
299 'content_type' => 'custom new',
300 'demo_url' => 'https://pixelgallery.pro/demo/kitec/',
301 'video_url' => 'https://youtu.be/NJXfdAwMIxM',
302 ],
303 [
304 'name' => 'koral',
305 'label' => esc_html__('Koral', 'pixel-gallery'),
306 'type' => 'checkbox',
307 'default' => 'on',
308 'widget_type' => 'free',
309 'content_type' => 'custom',
310 'demo_url' => 'https://pixelgallery.pro/demo/koral/',
311 'video_url' => 'https://youtu.be/wR2yfKdbTbg',
312 ],
313 [
314 'name' => 'lumen',
315 'label' => esc_html__('Lumen', 'pixel-gallery'),
316 'type' => 'checkbox',
317 'default' => 'on',
318 'widget_type' => 'free',
319 'content_type' => 'custom new',
320 'demo_url' => 'https://pixelgallery.pro/demo/lumen/',
321 'video_url' => '',
322 ],
323 [
324 'name' => 'lunar',
325 'label' => esc_html__('Lunar', 'pixel-gallery'),
326 'type' => 'checkbox',
327 'default' => 'on',
328 'widget_type' => 'free',
329 'content_type' => 'custom',
330 'demo_url' => 'https://pixelgallery.pro/demo/lunar/',
331 'video_url' => '',
332 ],
333 [
334 'name' => 'lytical',
335 'label' => esc_html__('Lytical', 'pixel-gallery'),
336 'type' => 'checkbox',
337 'default' => 'on',
338 'widget_type' => 'free',
339 'content_type' => 'custom',
340 'demo_url' => 'https://pixelgallery.pro/demo/lytical/',
341 'video_url' => '',
342 ],
343 [
344 'name' => 'marron',
345 'label' => esc_html__('Marron', 'pixel-gallery'),
346 'type' => 'checkbox',
347 'default' => 'on',
348 'widget_type' => 'free',
349 'content_type' => 'custom',
350 'demo_url' => 'https://pixelgallery.pro/demo/marron/',
351 'video_url' => '',
352 ],
353 [
354 'name' => 'maven',
355 'label' => esc_html__('Maven', 'pixel-gallery'),
356 'type' => 'checkbox',
357 'default' => 'on',
358 'widget_type' => 'pro',
359 'content_type' => 'custom',
360 'demo_url' => 'https://pixelgallery.pro/demo/maven/',
361 'video_url' => 'https://youtu.be/Ojb7RzSmb2g?si=y-cyd379WE6JUFtM',
362 ],
363 [
364 'name' => 'mastery',
365 'label' => esc_html__('Mastery', 'pixel-gallery'),
366 'type' => 'checkbox',
367 'default' => 'on',
368 'widget_type' => 'free',
369 'content_type' => 'custom',
370 'demo_url' => 'https://pixelgallery.pro/demo/mastery/',
371 'video_url' => '',
372 ],
373 [
374 'name' => 'mosaic',
375 'label' => esc_html__('Mosaic', 'pixel-gallery'),
376 'type' => 'checkbox',
377 'default' => 'on',
378 'widget_type' => 'free',
379 'content_type' => 'custom',
380 'demo_url' => 'https://pixelgallery.pro/demo/mosaic/',
381 'video_url' => '',
382 ],
383 [
384 'name' => 'mystic',
385 'label' => esc_html__('Mystic', 'pixel-gallery'),
386 'type' => 'checkbox',
387 'default' => 'on',
388 'widget_type' => 'free',
389 'content_type' => 'custom',
390 'demo_url' => 'https://pixelgallery.pro/demo/mystic/',
391 'video_url' => 'https://youtu.be/VnFKJguCK7g',
392 ],
393 [
394 'name' => 'menuz',
395 'label' => esc_html__('Menuz', 'pixel-gallery'),
396 'type' => 'checkbox',
397 'default' => 'on',
398 'widget_type' => 'pro',
399 'content_type' => 'custom',
400 'demo_url' => 'https://pixelgallery.pro/demo/menuz/',
401 'video_url' => '',
402 ],
403 [
404 'name' => 'nexus',
405 'label' => esc_html__('Nexus', 'pixel-gallery'),
406 'type' => 'checkbox',
407 'default' => 'on',
408 'widget_type' => 'free',
409 'content_type' => 'custom',
410 'demo_url' => 'https://pixelgallery.pro/demo/nexus/',
411 'video_url' => 'https://youtu.be/At7BhTM-9Gs',
412 ],
413 [
414 'name' => 'ocean',
415 'label' => esc_html__('Ocean', 'pixel-gallery'),
416 'type' => 'checkbox',
417 'default' => 'off',
418 'widget_type' => 'free',
419 'content_type' => 'custom new',
420 'demo_url' => 'https://pixelgallery.pro/demo/ocean/',
421 'video_url' => 'https://youtu.be/150N81SaAHQ',
422 ],
423 [
424 'name' => 'orbit',
425 'label' => esc_html__('Orbit', 'pixel-gallery'),
426 'type' => 'checkbox',
427 'default' => 'on',
428 'widget_type' => 'free',
429 'content_type' => 'custom',
430 'demo_url' => 'https://pixelgallery.pro/demo/orbit/',
431 'video_url' => 'https://youtu.be/gleOj0ByQpc',
432 ],
433 [
434 'name' => 'panda',
435 'label' => esc_html__('Panda', 'pixel-gallery'),
436 'type' => 'checkbox',
437 'default' => 'on',
438 'widget_type' => 'free',
439 'content_type' => 'custom',
440 'demo_url' => 'https://pixelgallery.pro/demo/panda/',
441 'video_url' => 'https://youtu.be/2qnNCDyiXpg',
442 ],
443 [
444 'name' => 'polo',
445 'label' => esc_html__('Polo', 'pixel-gallery'),
446 'type' => 'checkbox',
447 'default' => 'off',
448 'widget_type' => 'pro',
449 'content_type' => 'custom new',
450 'demo_url' => 'https://pixelgallery.pro/demo/polo/',
451 'video_url' => 'https://youtu.be/l67_lQN9FNA?si=_SOVMq1ulBaC2m56',
452 ],
453 [
454 'name' => 'pastel',
455 'label' => esc_html__('Pastel', 'pixel-gallery'),
456 'type' => 'checkbox',
457 'default' => 'on',
458 'widget_type' => 'pro',
459 'content_type' => 'others',
460 'demo_url' => 'https://pixelgallery.pro/demo/pastel/',
461 'video_url' => '',
462 ],
463 [
464 'name' => 'plex',
465 'label' => esc_html__('Plex', 'pixel-gallery'),
466 'type' => 'checkbox',
467 'default' => 'on',
468 'widget_type' => 'free',
469 'content_type' => 'custom',
470 'demo_url' => 'https://pixelgallery.pro/demo/plex/',
471 'video_url' => 'https://youtu.be/RIiCTpHo0W0',
472 ],
473 [
474 'name' => 'plumb',
475 'label' => esc_html__('Plumb', 'pixel-gallery'),
476 'type' => 'checkbox',
477 'default' => 'on',
478 'widget_type' => 'free',
479 'content_type' => 'custom',
480 'demo_url' => 'https://pixelgallery.pro/demo/plumb/',
481 'video_url' => 'https://youtu.be/H4Pz6KPRuKI',
482 ],
483 [
484 'name' => 'punch',
485 'label' => esc_html__('Punch', 'pixel-gallery'),
486 'type' => 'checkbox',
487 'default' => 'on',
488 'widget_type' => 'free',
489 'content_type' => 'custom',
490 'demo_url' => 'https://pixelgallery.pro/demo/punch/',
491 'video_url' => '',
492 ],
493 [
494 'name' => 'ranch',
495 'label' => esc_html__('Ranch', 'pixel-gallery'),
496 'type' => 'checkbox',
497 'default' => 'on',
498 'widget_type' => 'free',
499 'content_type' => 'custom',
500 'demo_url' => 'https://pixelgallery.pro/demo/ranch/',
501 'video_url' => 'https://youtu.be/IBjHSszBflk',
502 ],
503 [
504 'name' => 'remix',
505 'label' => esc_html__('Remix', 'pixel-gallery'),
506 'type' => 'checkbox',
507 'default' => 'on',
508 'widget_type' => 'free',
509 'content_type' => 'custom',
510 'demo_url' => 'https://pixelgallery.pro/demo/remix/',
511 'video_url' => 'https://youtu.be/DM_VPJjn7TQ',
512 ],
513
514 [
515 'name' => 'ruby',
516 'label' => esc_html__('Ruby', 'pixel-gallery'),
517 'type' => 'checkbox',
518 'default' => 'on',
519 'widget_type' => 'free',
520 'content_type' => 'custom',
521 'demo_url' => 'https://pixelgallery.pro/demo/ruby/',
522 'video_url' => 'https://youtu.be/mQCrx2jVRRI',
523 ],
524 [
525 'name' => 'shark',
526 'label' => esc_html__('Shark', 'pixel-gallery'),
527 'type' => 'checkbox',
528 'default' => 'on',
529 'widget_type' => 'free',
530 'content_type' => 'custom',
531 'demo_url' => 'https://pixelgallery.pro/demo/shark/',
532 'video_url' => 'https://youtu.be/LqZyTJAPUmM',
533 ],
534 // [
535 // 'name' => 'scrovis',
536 // 'label' => esc_html__('Scrovis', 'pixel-gallery'),
537 // 'type' => 'checkbox',
538 // 'default' => 'on',
539 // 'widget_type' => 'pro',
540 // 'content_type' => 'custom',
541 // 'demo_url' => 'https://pixelgallery.pro/demo/scrovis/',
542 // 'video_url' => '',
543 // ],
544 [
545 'name' => 'sonic',
546 'label' => esc_html__('Sonic', 'pixel-gallery'),
547 'type' => 'checkbox',
548 'default' => 'on',
549 'widget_type' => 'free',
550 'content_type' => 'custom',
551 'demo_url' => 'https://pixelgallery.pro/demo/sonic/',
552 'video_url' => 'https://youtu.be/8KkaSa-v8l8',
553 ],
554 [
555 'name' => 'spirit',
556 'label' => esc_html__('Spirit', 'pixel-gallery'),
557 'type' => 'checkbox',
558 'default' => 'on',
559 'widget_type' => 'free',
560 'content_type' => 'custom',
561 'demo_url' => 'https://pixelgallery.pro/demo/spirit/',
562 'video_url' => 'https://youtu.be/kBMiCVbo68w?si=H5lrUXK86gQfGYrA',
563 ],
564 [
565 'name' => 'tour',
566 'label' => esc_html__('Tour', 'pixel-gallery'),
567 'type' => 'checkbox',
568 'default' => 'on',
569 'widget_type' => 'free',
570 'content_type' => 'custom',
571 'demo_url' => 'https://pixelgallery.pro/demo/tour/',
572 'video_url' => 'https://youtu.be/kDB1kUXChP0',
573 ],
574 [
575 'name' => 'trance',
576 'label' => esc_html__('Trance', 'pixel-gallery'),
577 'type' => 'checkbox',
578 'default' => 'on',
579 'widget_type' => 'free',
580 'content_type' => 'custom new',
581 'demo_url' => 'https://pixelgallery.pro/demo/trance/',
582 'video_url' => '',
583 ],
584 [
585 'name' => 'tread',
586 'label' => esc_html__('Tread', 'pixel-gallery'),
587 'type' => 'checkbox',
588 'default' => 'on',
589 'widget_type' => 'pro',
590 'content_type' => 'custom',
591 'demo_url' => 'https://pixelgallery.pro/demo/tread/',
592 'video_url' => 'https://youtu.be/WYEDNZfwDlM?si=nsm8D8ZOuCvuAeSO',
593 ],
594 [
595 'name' => 'turbo',
596 'label' => esc_html__('Turbo', 'pixel-gallery'),
597 'type' => 'checkbox',
598 'default' => 'on',
599 'widget_type' => 'free',
600 'content_type' => 'custom',
601 'demo_url' => 'https://pixelgallery.pro/demo/turbo/',
602 'video_url' => 'https://youtu.be/2wVj9Uhgti4',
603 ],
604 [
605 'name' => 'verse',
606 'label' => esc_html__('Verse', 'pixel-gallery'),
607 'type' => 'checkbox',
608 'default' => 'on',
609 'widget_type' => 'free',
610 'content_type' => 'custom',
611 'demo_url' => 'https://pixelgallery.pro/demo/verse/',
612 'video_url' => 'https://youtu.be/yBWjJcFjLJ4',
613 ],
614 [
615 'name' => 'walden',
616 'label' => esc_html__('Walden', 'pixel-gallery'),
617 'type' => 'checkbox',
618 'default' => 'on',
619 'widget_type' => 'free',
620 'content_type' => 'custom',
621 'demo_url' => 'https://pixelgallery.pro/demo/walden/',
622 'video_url' => 'https://youtu.be/lwkQIcLuE0k',
623 ],
624 [
625 'name' => 'wisdom',
626 'label' => esc_html__('Wisdom', 'pixel-gallery'),
627 'type' => 'checkbox',
628 'default' => 'on',
629 'widget_type' => 'free',
630 'content_type' => 'custom',
631 'demo_url' => 'https://pixelgallery.pro/demo/wisdom/',
632 'video_url' => 'https://youtu.be/OsMmP5IPGKc',
633 ],
634 [
635 'name' => 'xero',
636 'label' => esc_html__('Xero', 'pixel-gallery'),
637 'type' => 'checkbox',
638 'default' => 'on',
639 'widget_type' => 'pro',
640 'content_type' => 'custom',
641 'demo_url' => 'https://pixelgallery.pro/demo/xero/',
642 'video_url' => '',
643 ],
644 [
645 'name' => 'zilax',
646 'label' => esc_html__('Zilax', 'pixel-gallery'),
647 'type' => 'checkbox',
648 'default' => 'on',
649 'widget_type' => 'free',
650 'content_type' => 'custom',
651 'demo_url' => 'https://pixelgallery.pro/demo/zilax/',
652 'video_url' => 'https://youtu.be/XTTuvGCPnuI',
653 ],
654
655 ],
656
657 'pixel_gallery_elementor_extend' => [
658 [
659 'name' => 'animations',
660 'label' => esc_html__('Animations', 'pixel-gallery'),
661 'type' => 'checkbox',
662 'default' => "off",
663 'widget_type' => 'free',
664 'content_type' => 'new',
665 'demo_url' => '',
666 'video_url' => '',
667 ]
668 ],
669
670 'pixel_gallery_other_settings' => [
671 [
672 'name' => 'asset-manager',
673 'label' => esc_html__('Asset Manager', 'pixel-gallery'),
674 'tooltip' => __('If you want to combine your JS and css and load in a single file so enable it. When you enable it all widgets css and JS will combine in a single file.', 'pixel-gallery'),
675 'type' => 'checkbox',
676 'default' => 'off',
677 'widget_type' => 'free',
678 'demo_url' => 'https://bdthemes.com/knowledge-base/asset-manager/',
679 'video_url' => 'https://youtu.be/nytQFZv_CSs',
680 ],
681 ]
682 ];
683
684 $settings = [];
685 $settings['settings_fields'] = $settings_fields;
686
687 return $callable($settings);
688 }
689
690 private static function _is_plugin_installed($plugin, $plugin_path) {
691 $installed_plugins = get_plugins();
692 return isset($installed_plugins[$plugin_path]);
693 }
694
695 public static function is_module_active($module_id, $options, $module_path = BDTPG_MODULES_PATH) {
696 if (!isset($options[$module_id])) {
697 if (file_exists($module_path . $module_id . '/module.info.php')) {
698 $module_data = require $module_path . $module_id . '/module.info.php';
699 return $module_data['default_activation'];
700 }
701 } else {
702 return $options[$module_id] == 'on';
703 }
704 }
705
706 public static function is_plugin_active($plugin_path) {
707 if ($plugin_path) {
708 return is_plugin_active($plugin_path);
709 }
710 }
711
712 public static function has_module_style($module_id, $module_path = BDTPG_MODULES_PATH) {
713 if (file_exists($module_path . $module_id . '/module.info.php')) {
714 $module_data = require $module_path . $module_id . '/module.info.php';
715
716 if (isset($module_data['has_style'])) {
717 return $module_data['has_style'];
718 }
719 }
720 }
721
722 public static function has_module_script($module_id, $module_path = BDTPG_MODULES_PATH) {
723 if (file_exists($module_path . $module_id . '/module.info.php')) {
724 $module_data = require $module_path . $module_id . '/module.info.php';
725
726 if (isset($module_data['has_script'])) {
727 return $module_data['has_script'];
728 }
729 }
730 }
731 }
732