PluginProbe
Sky Addons for Elementor / trunk
Sky Addons for Elementor vtrunk
3.8.5 3.8.4 3.8.3 3.8.2 3.8.0 3.8.1 3.3.3 3.3.2 trunk 1.0.0 1.0.10 1.0.2 1.0.6 1.0.7 1.0.8 1.0.9 1.5.0 2.0.0 2.0.8 2.5.10 2.5.11 2.5.12 2.5.13 2.5.15 2.5.16 All 52 releases
sky-elementor-addons / includes / admin.php

admin.php in Sky Addons for Elementor trunk, at includes/admin.php

1,667 lines 64.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Sky_Addons\Admin;
4
5 use Elementor\Modules\Usage\Module;
6 use Elementor\Tracker;
7
8 defined( 'ABSPATH' ) || exit;
9
10 /**
11 * The Admin class
12 */
13 class Sky_Addons_Admin {
14
15 const WIDGETS_DB_KEY = 'sky_addons_inactive_widgets';
16 const WIDGETS_3RD_PARTY_DB_KEY = 'sky_addons_inactive_3rd_party_widgets';
17 const EXTENSIONS_DB_KEY = 'sky_addons_inactive_extensions';
18 const API_DB_KEY = 'sky_addons_api';
19
20 public static $widget_list = null;
21 public static $widgets_name = null;
22
23 private function __construct() {
24 $this->dispatch_actions();
25 // add_action( 'wp_ajax_sky_black_friday_notice_dismiss', [ $this, 'sky_black_friday_notice_dismiss' ] );
26 }
27
28 public function dispatch_actions() {
29
30 // add_action('sky_addons_license_manager', 'sky_addons_license_content');
31 // admin js
32 add_action( 'admin_enqueue_scripts', [ $this, 'load_admin_scripts' ] );
33
34 if ( class_exists( 'Tracker' ) && ! Tracker::is_allow_track() ) {
35 // add_action( 'sky_allow_tracker_notice', [ $this, 'allow_tracker_notice' ], 10, 3 );
36 }
37
38 // add_action( 'admin_notices', [ $this, 'black_friday_notice' ] );
39 }
40
41 /**
42 * Notice for 70% Black Friday & Cyber Monday Deal
43 * Link: https://skyaddons.com/pricing/
44 * Notice will be not show after 10 Dec 2024
45 *
46 * Success notice
47 * Transient for 3 days
48 */
49 public function black_friday_notice() {
50 $black_friday_date = strtotime( '2024-12-10' );
51 $today = strtotime( gmdate( 'Y-m-d' ) );
52
53 // Check if the transient is set, and display the notice
54 $transitent = get_transient( 'sky_black_friday_notice' );
55 if ( $transitent ) {
56 return;
57 }
58
59 if ( $today < $black_friday_date ) {
60 ?>
61 <div class="notice notice-success sky_black_friday_notice is-dismissible">
62 <p><?php echo esc_html__( 'Get 70% OFF on Sky Addons Pro. Limited Time Offer! ', 'sky-elementor-addons' ); ?><a href="https://skyaddons.com/pricing/?coupon=BFCY2024" target="_blank"><?php echo esc_html__( 'Get Pro', 'sky-elementor-addons' ); ?></a></p>
63 </div>
64 <?php
65 }
66 }
67
68 /**
69 * Dismiss Black Friday Notice
70 */
71 public function sky_black_friday_notice_dismiss() {
72 set_transient( 'sky_black_friday_notice', true, 3 * DAY_IN_SECONDS );
73 }
74
75 public function allow_tracker_notice() {
76 ?>
77 <div class="sa-allow-tracker sa-d-flex sa-align-items-center sa-p-3 sa-mb-2 sa-border sa-rounded">
78 <?php
79 echo wp_kses_post( __( '<strong>Widgets Analytics not working. </strong> Please activate Data Sharing features to make it workable from here - <strong> Elementor > Settings > General > Usage Data Sharing</strong>', 'sky-elementor-addons' ) );
80 ?>
81 </div>
82 <?php
83 }
84
85 public function load_admin_scripts() {
86 wp_register_script( 'sky-admin-js', SKY_ADDONS_ASSETS_URL . 'admin/sky-admin.js', [
87 'jquery',
88 ], SKY_ADDONS_VERSION, true );
89
90 wp_enqueue_script( 'sky-admin-js' );
91
92 $direction_suffix = is_rtl() ? '.rtl' : '';
93
94 wp_register_style( 'sky-widget-icons', SKY_ADDONS_ASSETS_URL . 'css/sky-widget-icons' . $direction_suffix . '.css', [], SKY_ADDONS_VERSION );
95 wp_enqueue_style( 'sky-widget-icons' );
96 }
97
98 public static function get_inactive_widgets() {
99 return get_option( self::WIDGETS_DB_KEY, [] );
100 }
101
102 public static function get_inactive_3rd_party_widgets() {
103 return get_option( self::WIDGETS_3RD_PARTY_DB_KEY, [] );
104 }
105
106 public static function get_inactive_extensions() {
107 return get_option( self::EXTENSIONS_DB_KEY, [] );
108 }
109
110 public static function get_saved_api() {
111 return get_option( self::API_DB_KEY, [] );
112 }
113
114 /**
115 * Get Used modules.
116 *
117 * @access public
118 * @return array
119 * @since 1.0.6
120 */
121 public static function get_used_widgets() {
122
123 $used_widgets = [];
124
125 if ( class_exists( 'Elementor\Modules\Usage\Module' ) ) {
126
127 $module = Module::instance();
128 $elements = $module->get_formatted_usage( 'raw' );
129 $widgets = self::get_widgets_names();
130
131 if ( is_array( $elements ) || is_object( $elements ) ) {
132
133 foreach ( $elements as $post_type => $data ) {
134 foreach ( $data['elements'] as $element => $count ) {
135 if ( in_array( $element, $widgets, true ) ) {
136 if ( isset( $used_widgets[ $element ] ) ) {
137 $used_widgets[ $element ] += $count;
138 } else {
139 $used_widgets[ $element ] = $count;
140 }
141 }
142 }
143 }
144 }
145 }
146
147 return $used_widgets;
148 }
149
150 /**
151 * Get Unused Widgets.
152 *
153 * @access public
154 * @return array
155 * @since 1.0.6
156 */
157 public static function get_unused_widgets() {
158
159 if ( ! current_user_can( 'install_plugins' ) ) {
160 die();
161 }
162
163 $widgets = self::get_widgets_names();
164
165 $used_widgets = self::get_used_widgets();
166
167 $unused_widgets = array_diff( $widgets, array_keys( $used_widgets ) );
168
169 return $unused_widgets;
170 }
171
172 /**
173 * Get Widgets Name
174 *
175 * @access public
176 * @return array
177 * @since 1.0.6
178 */
179 public static function get_widgets_names() {
180 $names = self::$widgets_name;
181
182 if ( null === $names ) {
183 $names = array_map(
184 function ( $item ) {
185 return isset( $item['name'] ) ? 'sky-' . str_replace( '_', '-', $item['name'] ) : 'none';
186 },
187 self::$widget_list
188 );
189 }
190
191 return $names;
192 }
193
194 /**
195 * Elements List
196 */
197 public static function get_element_list() {
198
199 $inactive_widgets = self::get_inactive_widgets();
200 $inactive_3rd_party_widgets = self::get_inactive_3rd_party_widgets();
201 $inactive_extensions = self::get_inactive_extensions();
202 $saved_api = self::get_saved_api();
203
204 $widgets_fields = [
205 'sky_addons_widgets' => [
206 [
207 'name' => 'advanced-accordion',
208 'label' => esc_html__( 'Advanced Accordion', 'sky-elementor-addons' ),
209 'type' => 'checkbox',
210 'value' => ! in_array( 'advanced-accordion', $inactive_widgets ) ? 'on' : 'off',
211 'default' => 'on',
212 'video_url' => '#',
213 'content_type' => 'custom',
214 'feature_type' => 'free',
215 'demo_url' => 'https://skyaddons.com/elementor/advanced-accordion-widget/',
216 ],
217 [
218 'name' => 'advanced-counter',
219 'label' => esc_html__( 'Advanced Counter', 'sky-elementor-addons' ),
220 'type' => 'checkbox',
221 'value' => ! in_array( 'advanced-counter', $inactive_widgets ) ? 'on' : 'off',
222 'default' => 'on',
223 'video_url' => '#',
224 'content_type' => 'custom',
225 'feature_type' => 'pro',
226 'demo_url' => 'https://skyaddons.com/elementor/advanced-counter-widget/',
227 ],
228 [
229 'name' => 'advanced-skill-bars',
230 'label' => esc_html__( 'Advanced Skill Bars', 'sky-elementor-addons' ),
231 'type' => 'checkbox',
232 'value' => ! in_array( 'advanced-skill-bars', $inactive_widgets ) ? 'on' : 'off',
233 'default' => 'on',
234 'video_url' => '#',
235 'content_type' => 'custom',
236 'feature_type' => 'free',
237 'demo_url' => 'https://skyaddons.com/elementor/advanced-skill-bars-widget/',
238 ],
239 [
240 'name' => 'advanced-slider',
241 'label' => esc_html__( 'Advanced Slider', 'sky-elementor-addons' ),
242 'type' => 'checkbox',
243 'value' => ! in_array( 'advanced-slider', $inactive_widgets ) ? 'on' : 'off',
244 'default' => 'on',
245 'video_url' => '#',
246 'content_type' => 'custom',
247 'feature_type' => 'free',
248 'demo_url' => 'https://skyaddons.com/elementor/advanced-slider-widget/',
249 ],
250 [
251 'name' => 'animated-heading',
252 'label' => esc_html__( 'Animated Heading', 'sky-elementor-addons' ),
253 'type' => 'checkbox',
254 'value' => ! in_array( 'animated-heading', $inactive_widgets ) ? 'on' : 'off',
255 'default' => 'on',
256 'video_url' => '#',
257 'content_type' => 'custom',
258 'feature_type' => 'free',
259 'demo_url' => 'https://skyaddons.com/elementor/animated-heading-widget/',
260 ],
261 [
262 'name' => 'audio-player',
263 'label' => esc_html__( 'Audio Player', 'sky-elementor-addons' ),
264 'type' => 'checkbox',
265 'value' => ! in_array( 'audio-player', $inactive_widgets ) ? 'on' : 'off',
266 'default' => 'on',
267 'video_url' => '#',
268 'content_type' => 'custom',
269 'feature_type' => 'free',
270 'demo_url' => 'https://skyaddons.com/elementor/audio-player-widget/',
271 ],
272 [
273 'name' => 'breadcrumbs',
274 'label' => esc_html__( 'Breadcrumbs', 'sky-elementor-addons' ),
275 'type' => 'checkbox',
276 'value' => ! in_array( 'breadcrumbs', $inactive_widgets ) ? 'on' : 'off',
277 'default' => 'on',
278 'video_url' => '#',
279 'content_type' => 'custom',
280 'feature_type' => 'pro',
281 'demo_url' => 'https://skyaddons.com/elementor/breadcrumbs-widget/',
282 ],
283 [
284 'name' => 'card',
285 'label' => esc_html__( 'Card', 'sky-elementor-addons' ),
286 'type' => 'checkbox',
287 'value' => ! in_array( 'card', $inactive_widgets ) ? 'on' : 'off',
288 'default' => 'on',
289 'video_url' => 'https://youtu.be/Ib9jDrC2caQ',
290 'content_type' => 'custom',
291 'feature_type' => 'free',
292 'demo_url' => 'https://skyaddons.com/elementor/card-widget/',
293 ],
294 [
295 'name' => 'changelog',
296 'label' => esc_html__( 'Changelog', 'sky-elementor-addons' ),
297 'type' => 'checkbox',
298 'value' => ! in_array( 'changelog', $inactive_widgets ) ? 'on' : 'off',
299 'default' => 'on',
300 'video_url' => '#',
301 'content_type' => 'custom',
302 'feature_type' => 'free',
303 'demo_url' => 'https://skyaddons.com/elementor/changelog-widget/',
304 ],
305 [
306 'name' => 'content-switcher',
307 'label' => esc_html__( 'Content Switcher', 'sky-elementor-addons' ),
308 'type' => 'checkbox',
309 'value' => ! in_array( 'content-switcher', $inactive_widgets ) ? 'on' : 'off',
310 'default' => 'on',
311 'video_url' => '#',
312 'content_type' => 'custom',
313 'feature_type' => 'free',
314 'demo_url' => 'https://skyaddons.com/elementor/content-switcher-widget/',
315 ],
316 [
317 'name' => 'dark-mode',
318 'label' => esc_html__( 'Dark Mode', 'sky-elementor-addons' ),
319 'type' => 'checkbox',
320 'value' => ! in_array( 'dark-mode', $inactive_widgets ) ? 'on' : 'off',
321 'default' => 'on',
322 'video_url' => '#',
323 'content_type' => 'custom',
324 'feature_type' => 'pro',
325 'demo_url' => 'https://skyaddons.com/elementor/dark-mode-widget/',
326 ],
327 [
328 'name' => 'diamond-gallery',
329 'label' => esc_html__( 'Diamond Gallery', 'sky-elementor-addons' ),
330 'type' => 'checkbox',
331 'value' => ! in_array( 'diamond-gallery', $inactive_widgets ) ? 'on' : 'off',
332 'default' => 'on',
333 'video_url' => '#',
334 'content_type' => 'custom new',
335 'feature_type' => 'pro',
336 'demo_url' => 'https://skyaddons.com/elementor/diamond-gallery-widget/',
337 ],
338 [
339 'name' => 'table',
340 'label' => esc_html__( 'Table', 'sky-elementor-addons' ),
341 'type' => 'checkbox',
342 'value' => ! in_array( 'table', $inactive_widgets ) ? 'on' : 'off',
343 'default' => 'on',
344 'video_url' => '#',
345 'content_type' => 'custom',
346 'feature_type' => 'pro',
347 'demo_url' => 'https://skyaddons.com/elementor/data-table-widget/',
348 ],
349 [
350 'name' => 'dual-button',
351 'label' => esc_html__( 'Dual Button', 'sky-elementor-addons' ),
352 'type' => 'checkbox',
353 'value' => ! in_array( 'dual-button', $inactive_widgets ) ? 'on' : 'off',
354 'default' => 'on',
355 'video_url' => '#',
356 'content_type' => 'custom',
357 'feature_type' => 'free',
358 'demo_url' => 'https://skyaddons.com/elementor/dual-button-widget/',
359 ],
360 [
361 'name' => 'fellow-slider',
362 'label' => esc_html__( 'Fellow Slider', 'sky-elementor-addons' ),
363 'type' => 'checkbox',
364 'value' => ! in_array( 'fellow-slider', $inactive_widgets ) ? 'on' : 'off',
365 'default' => 'on',
366 'video_url' => '#',
367 'content_type' => 'post',
368 'feature_type' => 'free',
369 'demo_url' => 'https://skyaddons.com/elementor/fellow-slider-widget/',
370 ],
371 [
372 'name' => 'flow-slider',
373 'label' => esc_html__( 'Flow Slider', 'sky-elementor-addons' ),
374 'type' => 'checkbox',
375 'value' => ! in_array( 'flow-slider', $inactive_widgets ) ? 'on' : 'off',
376 'default' => 'on',
377 'video_url' => '#',
378 'content_type' => 'custom',
379 'feature_type' => 'pro',
380 'demo_url' => 'https://skyaddons.com/elementor/flow-slider-widget/',
381 ],
382 [
383 'name' => 'form-builder',
384 'label' => esc_html__( 'Form Builder', 'sky-elementor-addons' ),
385 'type' => 'checkbox',
386 'value' => ! in_array( 'form-builder', $inactive_widgets ) ? 'on' : 'off',
387 'default' => 'on',
388 'video_url' => '#',
389 'content_type' => 'custom',
390 'feature_type' => 'pro',
391 'demo_url' => 'https://skyaddons.com/elementor/form-builder-widget/',
392 ],
393 [
394 'name' => 'fullpage-menu',
395 'label' => esc_html__( 'Full Page Menu', 'sky-elementor-addons' ),
396 'type' => 'checkbox',
397 'value' => ! in_array( 'fullpage-menu', $inactive_widgets ) ? 'on' : 'off',
398 'default' => 'on',
399 'video_url' => '#',
400 'content_type' => 'custom new',
401 'feature_type' => 'pro',
402 'demo_url' => 'https://skyaddons.com/elementor/full-page-menu-widget/',
403 ],
404 [
405 'name' => 'hover-video',
406 'label' => esc_html__( 'Hover Video', 'sky-elementor-addons' ),
407 'type' => 'checkbox',
408 'value' => ! in_array( 'hover-video', $inactive_widgets ) ? 'on' : 'off',
409 'default' => 'on',
410 'video_url' => '#',
411 'content_type' => 'custom',
412 'feature_type' => 'pro',
413 'demo_url' => 'https://skyaddons.com/elementor/hover-video-widget/',
414 ],
415 [
416 'name' => 'generic-grid',
417 'label' => esc_html__( 'Generic Grid', 'sky-elementor-addons' ),
418 'type' => 'checkbox',
419 'value' => ! in_array( 'generic-grid', $inactive_widgets ) ? 'on' : 'off',
420 'default' => 'on',
421 'video_url' => '#',
422 'content_type' => 'post',
423 'feature_type' => 'free',
424 'demo_url' => 'https://skyaddons.com/elementor/generic-grid-widget/',
425 ],
426 [
427 'name' => 'generic-carousel',
428 'label' => esc_html__( 'Generic Carousel', 'sky-elementor-addons' ),
429 'type' => 'checkbox',
430 'value' => ! in_array( 'generic-carousel', $inactive_widgets ) ? 'on' : 'off',
431 'default' => 'on',
432 'video_url' => '#',
433 'content_type' => 'post',
434 'feature_type' => 'free',
435 'demo_url' => 'https://skyaddons.com/elementor/generic-carousel-widget/',
436 ],
437 [
438 'name' => 'glory-slider',
439 'label' => esc_html__( 'Glory Slider', 'sky-elementor-addons' ),
440 'type' => 'checkbox',
441 'value' => ! in_array( 'glory-slider', $inactive_widgets ) ? 'on' : 'off',
442 'default' => 'on',
443 'video_url' => '#',
444 'content_type' => 'custom',
445 'feature_type' => 'free',
446 'demo_url' => 'https://skyaddons.com/elementor/glory-slider-widget/',
447 ],
448 [
449 'name' => 'iframe',
450 'label' => esc_html__( 'Iframe', 'sky-elementor-addons' ),
451 'type' => 'checkbox',
452 'value' => ! in_array( 'iframe', $inactive_widgets ) ? 'on' : 'off',
453 'default' => 'on',
454 'video_url' => '#',
455 'content_type' => 'custom',
456 'feature_type' => 'pro',
457 'demo_url' => 'https://skyaddons.com/elementor/iframe-widget/',
458 ],
459 [
460 'name' => 'image-accordion',
461 'label' => esc_html__( 'Image Accordion', 'sky-elementor-addons' ),
462 'type' => 'checkbox',
463 'value' => ! in_array( 'image-accordion', $inactive_widgets ) ? 'on' : 'off',
464 'default' => 'on',
465 'video_url' => '#',
466 'content_type' => 'custom new',
467 'feature_type' => 'pro',
468 'demo_url' => 'https://skyaddons.com/elementor/image-accordion-widget/',
469 ],
470 [
471 'name' => 'nav-menu',
472 'label' => esc_html__( 'Nav Menu', 'sky-elementor-addons' ),
473 'type' => 'checkbox',
474 'value' => ! in_array( 'nav-menu', $inactive_widgets ) ? 'on' : 'off',
475 'default' => 'on',
476 'video_url' => '#',
477 'content_type' => 'custom new',
478 'feature_type' => 'pro',
479 'demo_url' => 'https://skyaddons.com/elementor/nav-menu-widget/',
480 ],
481 [
482 'name' => 'news-ticker',
483 'label' => esc_html__( 'News Ticker', 'sky-elementor-addons' ),
484 'type' => 'checkbox',
485 'value' => ! in_array( 'news-ticker', $inactive_widgets ) ? 'on' : 'off',
486 'default' => 'on',
487 'video_url' => '#',
488 'content_type' => 'custom new',
489 'feature_type' => 'pro',
490 'demo_url' => 'https://skyaddons.com/elementor/news-ticker-widget/',
491 ],
492 [
493 'name' => 'off-canvas-menu',
494 'label' => esc_html__( 'Off Canvas Menu', 'sky-elementor-addons' ),
495 'type' => 'checkbox',
496 'value' => ! in_array( 'off-canvas-menu', $inactive_widgets ) ? 'on' : 'off',
497 'default' => 'on',
498 'video_url' => '#',
499 'content_type' => 'custom',
500 'feature_type' => 'pro',
501 'demo_url' => 'https://skyaddons.com/elementor/off-canvas-menu-widget/',
502 ],
503 [
504 'name' => 'image-compare',
505 'label' => esc_html__( 'Image Compare', 'sky-elementor-addons' ),
506 'type' => 'checkbox',
507 'value' => ! in_array( 'image-compare', $inactive_widgets ) ? 'on' : 'off',
508 'default' => 'on',
509 'video_url' => '#',
510 'content_type' => 'custom',
511 'feature_type' => 'free',
512 'demo_url' => 'https://skyaddons.com/elementor/image-compare-widget/',
513 ],
514 [
515 'name' => 'info-box',
516 'label' => esc_html__( 'Info Box', 'sky-elementor-addons' ),
517 'type' => 'checkbox',
518 'value' => ! in_array( 'info-box', $inactive_widgets ) ? 'on' : 'off',
519 'default' => 'on',
520 'video_url' => '#',
521 'content_type' => 'custom',
522 'feature_type' => 'free',
523 'demo_url' => 'https://skyaddons.com/elementor/info-box-widget/',
524 ],
525 [
526 'name' => 'list-group',
527 'label' => esc_html__( 'List Group', 'sky-elementor-addons' ),
528 'type' => 'checkbox',
529 'value' => ! in_array( 'list-group', $inactive_widgets ) ? 'on' : 'off',
530 'default' => 'on',
531 'video_url' => '#',
532 'content_type' => 'custom',
533 'feature_type' => 'free',
534 'demo_url' => 'https://skyaddons.com/elementor/list-group-widget/',
535 ],
536 [
537 'name' => 'logo-carousel',
538 'label' => esc_html__( 'Logo Carousel', 'sky-elementor-addons' ),
539 'type' => 'checkbox',
540 'value' => ! in_array( 'logo-carousel', $inactive_widgets ) ? 'on' : 'off',
541 'default' => 'on',
542 'video_url' => '#',
543 'content_type' => 'custom',
544 'feature_type' => 'free',
545 'demo_url' => 'https://skyaddons.com/elementor/logo-carousel-widget/',
546 ],
547 [
548 'name' => 'logo-grid',
549 'label' => esc_html__( 'Logo Grid', 'sky-elementor-addons' ),
550 'type' => 'checkbox',
551 'value' => ! in_array( 'logo-grid', $inactive_widgets ) ? 'on' : 'off',
552 'default' => 'on',
553 'video_url' => '#',
554 'content_type' => 'custom',
555 'feature_type' => 'free',
556 'demo_url' => 'https://skyaddons.com/elementor/logo-grid-widget/',
557 ],
558 [
559 'name' => 'luster-grid',
560 'label' => esc_html__( 'Luster Grid', 'sky-elementor-addons' ),
561 'type' => 'checkbox',
562 'value' => ! in_array( 'luster-grid', $inactive_widgets ) ? 'on' : 'off',
563 'default' => 'on',
564 'video_url' => '#',
565 'content_type' => 'post',
566 'feature_type' => 'free',
567 'demo_url' => 'https://skyaddons.com/elementor/luster-grid-widget/',
568 ],
569 [
570 'name' => 'luster-carousel',
571 'label' => esc_html__( 'Luster Carousel', 'sky-elementor-addons' ),
572 'type' => 'checkbox',
573 'value' => ! in_array( 'luster-carousel', $inactive_widgets ) ? 'on' : 'off',
574 'default' => 'on',
575 'video_url' => '#',
576 'content_type' => 'post',
577 'feature_type' => 'free',
578 'demo_url' => 'https://skyaddons.com/elementor/luster-carousel-widget/',
579 ],
580 [
581 'name' => 'mate-list',
582 'label' => esc_html__( 'Mate List', 'sky-elementor-addons' ),
583 'type' => 'checkbox',
584 'value' => ! in_array( 'mate-list', $inactive_widgets ) ? 'on' : 'off',
585 'default' => 'on',
586 'video_url' => '#',
587 'content_type' => 'post',
588 'feature_type' => 'free',
589 'demo_url' => 'https://skyaddons.com/elementor/mate-list-widget/',
590 ],
591 [
592 'name' => 'mate-slider',
593 'label' => esc_html__( 'Mate Slider', 'sky-elementor-addons' ),
594 'type' => 'checkbox',
595 'value' => ! in_array( 'mate-slider', $inactive_widgets ) ? 'on' : 'off',
596 'default' => 'on',
597 'video_url' => '#',
598 'content_type' => 'post',
599 'feature_type' => 'free',
600 'demo_url' => 'https://skyaddons.com/elementor/mate-slider-widget/',
601 ],
602 [
603 'name' => 'mate-carousel',
604 'label' => esc_html__( 'Mate Carousel', 'sky-elementor-addons' ),
605 'type' => 'checkbox',
606 'value' => ! in_array( 'mate-carousel', $inactive_widgets ) ? 'on' : 'off',
607 'default' => 'on',
608 'video_url' => '#',
609 'content_type' => 'post',
610 'feature_type' => 'free',
611 'demo_url' => 'https://skyaddons.com/elementor/mate-carousel-widget/',
612 ],
613 [
614 'name' => 'momentum-slider',
615 'label' => esc_html__( 'Momentum Slider', 'sky-elementor-addons' ),
616 'type' => 'checkbox',
617 'value' => ! in_array( 'momentum-slider', $inactive_widgets ) ? 'on' : 'off',
618 'default' => 'on',
619 'video_url' => '#',
620 'content_type' => 'custom',
621 'feature_type' => 'free',
622 'demo_url' => 'https://skyaddons.com/elementor/momentum-slider-widget/',
623 ],
624 [
625 'name' => 'naive-list',
626 'label' => esc_html__( 'Naive List', 'sky-elementor-addons' ),
627 'type' => 'checkbox',
628 'value' => ! in_array( 'naive-list', $inactive_widgets ) ? 'on' : 'off',
629 'default' => 'on',
630 'video_url' => '#',
631 'content_type' => 'post',
632 'feature_type' => 'free',
633 'demo_url' => 'https://skyaddons.com/elementor/naive-list-widget/',
634 ],
635 [
636 'name' => 'naive-carousel',
637 'label' => esc_html__( 'Naive Carousel', 'sky-elementor-addons' ),
638 'type' => 'checkbox',
639 'value' => ! in_array( 'naive-carousel', $inactive_widgets ) ? 'on' : 'off',
640 'default' => 'on',
641 'video_url' => '#',
642 'content_type' => 'post',
643 'feature_type' => 'free',
644 'demo_url' => 'https://skyaddons.com/elementor/naive-carousel-widget/',
645 ],
646 [
647 'name' => 'offcanvas',
648 'label' => esc_html__( 'Off-Canvas', 'sky-elementor-addons' ),
649 'type' => 'checkbox',
650 'value' => ! in_array( 'offcanvas', $inactive_widgets ) ? 'on' : 'off',
651 'default' => 'on',
652 'video_url' => '#',
653 'content_type' => 'custom new',
654 'feature_type' => 'pro',
655 'demo_url' => 'https://skyaddons.com/elementor/offcanvas-widget/',
656 ],
657 [
658 'name' => 'offcanvas-menu',
659 'label' => esc_html__( 'Off-Canvas Menu', 'sky-elementor-addons' ),
660 'type' => 'checkbox',
661 'value' => ! in_array( 'offcanvas-menu', $inactive_widgets ) ? 'on' : 'off',
662 'default' => 'on',
663 'video_url' => '#',
664 'content_type' => 'custom new',
665 'feature_type' => 'pro',
666 'demo_url' => 'https://skyaddons.com/elementor/offcanvas-menu-widget/',
667 ],
668 [
669 'name' => 'pace-slider',
670 'label' => esc_html__( 'Pace Slider', 'sky-elementor-addons' ),
671 'type' => 'checkbox',
672 'value' => ! in_array( 'pace-slider', $inactive_widgets ) ? 'on' : 'off',
673 'default' => 'on',
674 'video_url' => '#',
675 'content_type' => 'custom',
676 'feature_type' => 'pro',
677 'demo_url' => 'https://skyaddons.com/elementor/pace-slider-widget/',
678 ],
679 [
680 'name' => 'panel-slider',
681 'label' => esc_html__( 'Panel Slider', 'sky-elementor-addons' ),
682 'type' => 'checkbox',
683 'value' => ! in_array( 'panel-slider', $inactive_widgets ) ? 'on' : 'off',
684 'default' => 'on',
685 'video_url' => '#',
686 'content_type' => 'custom',
687 'feature_type' => 'pro',
688 'demo_url' => 'https://skyaddons.com/elementor/panel-slider-widget/',
689 ],
690 [
691 'name' => 'pdf-viewer',
692 'label' => esc_html__( 'PDF Viewer', 'sky-elementor-addons' ),
693 'type' => 'checkbox',
694 'value' => ! in_array( 'pdf-viewer', $inactive_widgets ) ? 'on' : 'off',
695 'default' => 'on',
696 'video_url' => '#',
697 'content_type' => 'custom',
698 'feature_type' => 'free',
699 'demo_url' => 'https://skyaddons.com/elementor/pdf-viewer-widget/',
700 ],
701 [
702 'name' => 'post-comments',
703 'label' => esc_html__( 'Post Comments', 'sky-elementor-addons' ),
704 'type' => 'checkbox',
705 'value' => ! in_array( 'post-comments', $inactive_widgets ) ? 'on' : 'off',
706 'default' => 'on',
707 'video_url' => '#',
708 'content_type' => 'post',
709 'feature_type' => 'free',
710 'demo_url' => 'https://skyaddons.com/elementor/post-comments-widget/',
711 ],
712 [
713 'name' => 'post-list',
714 'label' => esc_html__( 'Post List', 'sky-elementor-addons' ),
715 'type' => 'checkbox',
716 'value' => ! in_array( 'post-list', $inactive_widgets ) ? 'on' : 'off',
717 'default' => 'on',
718 'video_url' => '#',
719 'content_type' => 'post',
720 'feature_type' => 'free',
721 'demo_url' => 'https://skyaddons.com/elementor/post-list-widget/',
722 ],
723 [
724 'name' => 'portion-effect',
725 'label' => esc_html__( 'Portion Effect', 'sky-elementor-addons' ),
726 'type' => 'checkbox',
727 'value' => ! in_array( 'portion-effect', $inactive_widgets ) ? 'on' : 'off',
728 'default' => 'on',
729 'video_url' => '#',
730 'content_type' => 'custom',
731 'feature_type' => 'free',
732 'demo_url' => 'https://skyaddons.com/elementor/portion-effect-widget/',
733 ],
734 [
735 'name' => 'pricing-table',
736 'label' => esc_html__( 'Pricing Table', 'sky-elementor-addons' ),
737 'type' => 'checkbox',
738 'value' => ! in_array( 'pricing-table', $inactive_widgets ) ? 'on' : 'off',
739 'default' => 'on',
740 'video_url' => '#',
741 'content_type' => 'custom',
742 'feature_type' => 'pro',
743 'demo_url' => 'https://skyaddons.com/elementor/pricing-table-widget/',
744 ],
745 [
746 'name' => 'qr-code',
747 'label' => esc_html__( 'QR Code', 'sky-elementor-addons' ),
748 'type' => 'checkbox',
749 'value' => ! in_array( 'qr-code', $inactive_widgets ) ? 'on' : 'off',
750 'default' => 'on',
751 'video_url' => '#',
752 'content_type' => 'custom',
753 'feature_type' => 'pro',
754 'demo_url' => 'https://skyaddons.com/elementor/qr-code-widget/',
755 ],
756 [
757 'name' => 'reading-progress',
758 'label' => esc_html__( 'Reading Progress', 'sky-elementor-addons' ),
759 'type' => 'checkbox',
760 'value' => ! in_array( 'reading-progress', $inactive_widgets ) ? 'on' : 'off',
761 'default' => 'on',
762 'video_url' => '#',
763 'content_type' => 'custom',
764 'feature_type' => 'free',
765 'demo_url' => 'https://skyaddons.com/elementor/reading-progress-widget/',
766 ],
767 [
768 'name' => 'review',
769 'label' => esc_html__( 'Review', 'sky-elementor-addons' ),
770 'type' => 'checkbox',
771 'value' => ! in_array( 'review', $inactive_widgets ) ? 'on' : 'off',
772 'default' => 'on',
773 'video_url' => '#',
774 'content_type' => 'custom',
775 'feature_type' => 'free',
776 'demo_url' => 'https://skyaddons.com/elementor/review-widget/',
777 ],
778 [
779 'name' => 'review-carousel',
780 'label' => esc_html__( 'Review Carousel', 'sky-elementor-addons' ),
781 'type' => 'checkbox',
782 'value' => ! in_array( 'review-carousel', $inactive_widgets ) ? 'on' : 'off',
783 'default' => 'on',
784 'video_url' => '#',
785 'content_type' => 'custom',
786 'feature_type' => 'pro',
787 'demo_url' => 'https://skyaddons.com/elementor/review-carousel-widget/',
788 ],
789 [
790 'name' => 'remote-arrows',
791 'label' => esc_html__( 'Remote Arrows', 'sky-elementor-addons' ),
792 'type' => 'checkbox',
793 'value' => ! in_array( 'remote-arrows', $inactive_widgets ) ? 'on' : 'off',
794 'default' => 'on',
795 'video_url' => '#',
796 'content_type' => 'custom',
797 'feature_type' => 'pro',
798 'demo_url' => 'https://skyaddons.com/elementor/remote-arrows-widget/',
799 ],
800 [
801 'name' => 'remote-pagination',
802 'label' => esc_html__( 'Remote Pagination', 'sky-elementor-addons' ),
803 'type' => 'checkbox',
804 'value' => ! in_array( 'remote-pagination', $inactive_widgets ) ? 'on' : 'off',
805 'default' => 'on',
806 'video_url' => '#',
807 'content_type' => 'custom',
808 'feature_type' => 'pro',
809 'demo_url' => 'https://skyaddons.com/elementor/remote-pagination-widget/',
810 ],
811 [
812 'name' => 'remote-thumbs',
813 'label' => esc_html__( 'Remote Thumbs', 'sky-elementor-addons' ),
814 'type' => 'checkbox',
815 'value' => ! in_array( 'remote-thumbs', $inactive_widgets ) ? 'on' : 'off',
816 'default' => 'on',
817 'video_url' => '#',
818 'content_type' => 'custom',
819 'feature_type' => 'pro',
820 'demo_url' => 'https://skyaddons.com/elementor/remote-thumbs-widget/',
821 ],
822 [
823 'name' => 'rounded-cursor',
824 'label' => esc_html__( 'Rounded Cursor', 'sky-elementor-addons' ),
825 'type' => 'checkbox',
826 'value' => ! in_array( 'rounded-cursor', $inactive_widgets ) ? 'on' : 'off',
827 'default' => 'on',
828 'video_url' => '#',
829 'content_type' => 'custom new',
830 'feature_type' => 'pro',
831 'demo_url' => 'https://skyaddons.com/elementor/rounded-cursor-widget/',
832 ],
833 [
834 'name' => 'reveal-gallery',
835 'label' => esc_html__( 'Reveal Gallery', 'sky-elementor-addons' ),
836 'type' => 'checkbox',
837 'value' => ! in_array( 'reveal-gallery', $inactive_widgets ) ? 'on' : 'off',
838 'default' => 'on',
839 'video_url' => '#',
840 'content_type' => 'custom new',
841 'feature_type' => 'pro',
842 'demo_url' => 'https://skyaddons.com/elementor/reveal-gallery-widget/',
843 ],
844 [
845 'name' => 'scrolling-gallery',
846 'label' => esc_html__( 'Scrolling Gallery', 'sky-elementor-addons' ),
847 'type' => 'checkbox',
848 'value' => ! in_array( 'scrolling-gallery', $inactive_widgets ) ? 'on' : 'off',
849 'default' => 'on',
850 'video_url' => '#',
851 'content_type' => 'custom new',
852 'feature_type' => 'pro',
853 'demo_url' => 'https://skyaddons.com/elementor/scrolling-gallery-widget/',
854 ],
855 [
856 'name' => 'sapling-grid',
857 'label' => esc_html__( 'Sapling Grid', 'sky-elementor-addons' ),
858 'type' => 'checkbox',
859 'value' => ! in_array( 'sapling-grid', $inactive_widgets ) ? 'on' : 'off',
860 'default' => 'on',
861 'video_url' => '#',
862 'content_type' => 'post',
863 'feature_type' => 'free',
864 'demo_url' => 'https://skyaddons.com/elementor/sapling-grid-widget/',
865 ],
866 [
867 'name' => 'sapling-carousel',
868 'label' => esc_html__( 'Sapling Carousel', 'sky-elementor-addons' ),
869 'type' => 'checkbox',
870 'value' => ! in_array( 'sapling-carousel', $inactive_widgets ) ? 'on' : 'off',
871 'default' => 'on',
872 'video_url' => '#',
873 'content_type' => 'post',
874 'feature_type' => 'free',
875 'demo_url' => 'https://skyaddons.com/elementor/sapling-carousel-widget/',
876 ],
877 [
878 'name' => 'slinky-menu',
879 'label' => esc_html__( 'Slinky Menu (Vertical)', 'sky-elementor-addons' ),
880 'type' => 'checkbox',
881 'value' => ! in_array( 'slinky-menu', $inactive_widgets ) ? 'on' : 'off',
882 'default' => 'on',
883 'video_url' => '#',
884 'content_type' => 'custom',
885 'feature_type' => 'free',
886 'demo_url' => 'https://skyaddons.com/elementor/slinky-menu-widget/',
887 ],
888 [
889 'name' => 'social-icons',
890 'label' => esc_html__( 'Social Icons', 'sky-elementor-addons' ),
891 'type' => 'checkbox',
892 'value' => ! in_array( 'social-icons', $inactive_widgets ) ? 'on' : 'off',
893 'default' => 'on',
894 'video_url' => '#',
895 'content_type' => 'custom',
896 'feature_type' => 'free',
897 'demo_url' => 'https://skyaddons.com/elementor/social-icons-widget/',
898 ],
899 [
900 'name' => 'social-share',
901 'label' => esc_html__( 'Social Share', 'sky-elementor-addons' ),
902 'type' => 'checkbox',
903 'value' => ! in_array( 'social-share', $inactive_widgets ) ? 'on' : 'off',
904 'default' => 'on',
905 'video_url' => '#',
906 'content_type' => 'custom new',
907 'feature_type' => 'pro',
908 'demo_url' => 'https://skyaddons.com/elementor/social-share-widget/',
909 ],
910 [
911 'name' => 'stellar-slider',
912 'label' => esc_html__( 'Stellar Blog Slider', 'sky-elementor-addons' ),
913 'type' => 'checkbox',
914 'value' => ! in_array( 'stellar-slider', $inactive_widgets ) ? 'on' : 'off',
915 'default' => 'on',
916 'video_url' => '#',
917 'content_type' => 'custom',
918 'feature_type' => 'free',
919 'demo_url' => 'https://skyaddons.com/elementor/stellar-slider-widget/',
920 ],
921 [
922 'name' => 'step-flow',
923 'label' => esc_html__( 'Step Flow', 'sky-elementor-addons' ),
924 'type' => 'checkbox',
925 'value' => ! in_array( 'step-flow', $inactive_widgets ) ? 'on' : 'off',
926 'default' => 'on',
927 'video_url' => '#',
928 'content_type' => 'custom',
929 'feature_type' => 'free',
930 'demo_url' => 'https://skyaddons.com/elementor/step-flow-widget/',
931 ],
932 [
933 'name' => 'table-of-contents',
934 'label' => esc_html__( 'Table of Contents', 'sky-elementor-addons' ),
935 'type' => 'checkbox',
936 'value' => ! in_array( 'table-of-contents', $inactive_widgets ) ? 'on' : 'off',
937 'default' => 'on',
938 'video_url' => '#',
939 'content_type' => 'custom',
940 'feature_type' => 'free',
941 'demo_url' => 'https://skyaddons.com/elementor/table-of-content-widget/',
942 ],
943 [
944 'name' => 'team-member',
945 'label' => esc_html__( 'Team Member', 'sky-elementor-addons' ),
946 'type' => 'checkbox',
947 'value' => ! in_array( 'team-member', $inactive_widgets ) ? 'on' : 'off',
948 'default' => 'on',
949 'video_url' => '#',
950 'content_type' => 'custom',
951 'feature_type' => 'free',
952 'demo_url' => 'https://skyaddons.com/elementor/team-member-widget/',
953 ],
954 [
955 'name' => 'team-member-carousel',
956 'label' => esc_html__( 'Team Member Carousel', 'sky-elementor-addons' ),
957 'type' => 'checkbox',
958 'value' => ! in_array( 'team-member-carousel', $inactive_widgets ) ? 'on' : 'off',
959 'default' => 'on',
960 'video_url' => '#',
961 'content_type' => 'custom',
962 'feature_type' => 'free',
963 'demo_url' => 'https://skyaddons.com/elementor/team-member-carousel-widget/',
964 ],
965 [
966 'name' => 'testimonial',
967 'label' => esc_html__( 'Testimonial', 'sky-elementor-addons' ),
968 'type' => 'checkbox',
969 'value' => ! in_array( 'testimonial', $inactive_widgets ) ? 'on' : 'off',
970 'default' => 'on',
971 'video_url' => '#',
972 'content_type' => 'custom',
973 'feature_type' => 'free',
974 'demo_url' => 'https://skyaddons.com/elementor/testimonial-widget/',
975 ],
976 [
977 'name' => 'testimonial-carousel',
978 'label' => esc_html__( 'Testimonial Carousel', 'sky-elementor-addons' ),
979 'type' => 'checkbox',
980 'value' => ! in_array( 'testimonial-carousel', $inactive_widgets ) ? 'on' : 'off',
981 'default' => 'on',
982 'video_url' => '#',
983 'content_type' => 'custom',
984 'feature_type' => 'pro',
985 'demo_url' => 'https://skyaddons.com/elementor/testimonial-carousel-widget/',
986 ],
987 [
988 'name' => 'tidy-list',
989 'label' => esc_html__( 'Tidy List', 'sky-elementor-addons' ),
990 'type' => 'checkbox',
991 'value' => ! in_array( 'tidy-list', $inactive_widgets ) ? 'on' : 'off',
992 'default' => 'on',
993 'video_url' => '#',
994 'content_type' => 'custom',
995 'feature_type' => 'free',
996 'demo_url' => 'https://skyaddons.com/elementor/tidy-list-widget/',
997 ],
998 [
999 'name' => 'ultra-grid',
1000 'label' => esc_html__( 'Ultra Grid', 'sky-elementor-addons' ),
1001 'type' => 'checkbox',
1002 'value' => ! in_array( 'ultra-grid', $inactive_widgets ) ? 'on' : 'off',
1003 'default' => 'on',
1004 'video_url' => '#',
1005 'content_type' => 'post',
1006 'feature_type' => 'free',
1007 'demo_url' => 'https://skyaddons.com/elementor/ultra-grid-widget/',
1008 ],
1009 [
1010 'name' => 'ultra-carousel',
1011 'label' => esc_html__( 'Ultra Carousel', 'sky-elementor-addons' ),
1012 'type' => 'checkbox',
1013 'value' => ! in_array( 'ultra-carousel', $inactive_widgets ) ? 'on' : 'off',
1014 'default' => 'on',
1015 'video_url' => '#',
1016 'content_type' => 'post',
1017 'feature_type' => 'free',
1018 'demo_url' => 'https://skyaddons.com/elementor/ultra-carousel-widget/',
1019 ],
1020 [
1021 'name' => 'tags-cloud',
1022 'label' => esc_html__( 'Tags Cloud', 'sky-elementor-addons' ),
1023 'type' => 'checkbox',
1024 'value' => ! in_array( 'tags-cloud', $inactive_widgets ) ? 'on' : 'off',
1025 'default' => 'on',
1026 'video_url' => '#',
1027 'content_type' => 'custom',
1028 'feature_type' => 'pro',
1029 'demo_url' => 'https://skyaddons.com/elementor/tags-cloud-widget/',
1030 ],
1031 [
1032 'name' => 'vertical-menu',
1033 'label' => esc_html__( 'Vertical Menu', 'sky-elementor-addons' ),
1034 'type' => 'checkbox',
1035 'value' => ! in_array( 'vertical-menu', $inactive_widgets ) ? 'on' : 'off',
1036 'default' => 'on',
1037 'video_url' => '#',
1038 'content_type' => 'custom new',
1039 'feature_type' => 'pro',
1040 'demo_url' => 'https://skyaddons.com/elementor/vertical-menu-widget/',
1041 ],
1042 [
1043 'name' => 'video-gallery',
1044 'label' => esc_html__( 'Video Gallery', 'sky-elementor-addons' ),
1045 'type' => 'checkbox',
1046 'value' => ! in_array( 'video-gallery', $inactive_widgets ) ? 'on' : 'off',
1047 'default' => 'on',
1048 'video_url' => '#',
1049 'content_type' => 'custom',
1050 'feature_type' => 'pro',
1051 'demo_url' => 'https://skyaddons.com/elementor/video-gallery-widget/',
1052 ],
1053 [
1054 'name' => 'bar-chart',
1055 'label' => esc_html__( 'Bar Chart', 'sky-elementor-addons' ),
1056 'type' => 'checkbox',
1057 'value' => ! in_array( 'bar-chart', $inactive_widgets ) ? 'on' : 'off',
1058 'default' => 'on',
1059 'video_url' => '#',
1060 'content_type' => 'custom',
1061 'feature_type' => 'pro',
1062 'demo_url' => 'https://skyaddons.com/elementor/bar-chart-widget/',
1063 ],
1064 [
1065 'name' => 'line-chart',
1066 'label' => esc_html__( 'Line Chart', 'sky-elementor-addons' ),
1067 'type' => 'checkbox',
1068 'value' => ! in_array( 'line-chart', $inactive_widgets ) ? 'on' : 'off',
1069 'default' => 'on',
1070 'video_url' => '#',
1071 'content_type' => 'custom',
1072 'feature_type' => 'pro',
1073 'demo_url' => 'https://skyaddons.com/elementor/line-chart-widget/',
1074 ],
1075 [
1076 'name' => 'polar-chart',
1077 'label' => esc_html__( 'Polar Area Chart', 'sky-elementor-addons' ),
1078 'type' => 'checkbox',
1079 'value' => ! in_array( 'polar-chart', $inactive_widgets ) ? 'on' : 'off',
1080 'default' => 'on',
1081 'video_url' => '#',
1082 'content_type' => 'custom',
1083 'feature_type' => 'pro',
1084 'demo_url' => 'https://skyaddons.com/elementor/polar-chart-widget/',
1085 ],
1086 [
1087 'name' => 'pie-chart',
1088 'label' => esc_html__( 'Pie & Doughnut Chart', 'sky-elementor-addons' ),
1089 'type' => 'checkbox',
1090 'value' => ! in_array( 'pie-chart', $inactive_widgets ) ? 'on' : 'off',
1091 'default' => 'on',
1092 'video_url' => '#',
1093 'content_type' => 'custom',
1094 'feature_type' => 'pro',
1095 'demo_url' => 'https://skyaddons.com/elementor/pie-and-doughnut-chart-widget/',
1096 ],
1097 [
1098 'name' => 'radar-chart',
1099 'label' => esc_html__( 'Radar Chart', 'sky-elementor-addons' ),
1100 'type' => 'checkbox',
1101 'value' => ! in_array( 'radar-chart', $inactive_widgets ) ? 'on' : 'off',
1102 'default' => 'on',
1103 'video_url' => '#',
1104 'content_type' => 'custom',
1105 'feature_type' => 'pro',
1106 'demo_url' => 'https://skyaddons.com/elementor/radar-chart-widget/',
1107 ],
1108 [
1109 'name' => 'loop-grid',
1110 'label' => esc_html__( 'Loop Grid', 'sky-elementor-addons' ),
1111 'type' => 'checkbox',
1112 'value' => ! in_array( 'loop-grid', $inactive_widgets ) ? 'on' : 'off',
1113 'default' => 'on',
1114 'video_url' => '#',
1115 'content_type' => 'custom new',
1116 'feature_type' => 'pro',
1117 'demo_url' => 'https://skyaddons.com/elementor/loop-grid-widget/',
1118 ],
1119 [
1120 'name' => 'loop-carousel',
1121 'label' => esc_html__( 'Loop Carousel', 'sky-elementor-addons' ),
1122 'type' => 'checkbox',
1123 'value' => ! in_array( 'loop-carousel', $inactive_widgets ) ? 'on' : 'off',
1124 'default' => 'on',
1125 'video_url' => '#',
1126 'content_type' => 'custom new',
1127 'feature_type' => 'pro',
1128 'demo_url' => 'https://skyaddons.com/elementor/loop-carousel-widget/',
1129 ],
1130 ],
1131 'sky_addons_3rd_party_widget' => [
1132 [
1133 'name' => 'wc-category',
1134 'label' => esc_html__( 'WooCommerce Category Grid', 'sky-elementor-addons' ),
1135 'type' => 'checkbox',
1136 'value' => ! in_array( 'wc-category', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1137 'default' => 'on',
1138 'video_url' => '#',
1139 'content_type' => 'custom',
1140 'feature_type' => 'pro',
1141 'demo_url' => 'https://skyaddons.com/elementor/woocommerce-category/',
1142 ],
1143 [
1144 'name' => 'wc-category-carousel',
1145 'label' => esc_html__( 'WooCommerce Category Carousel', 'sky-elementor-addons' ),
1146 'type' => 'checkbox',
1147 'value' => ! in_array( 'wc-category-carousel', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1148 'default' => 'on',
1149 'video_url' => '#',
1150 'content_type' => 'custom',
1151 'feature_type' => 'pro',
1152 'demo_url' => 'https://skyaddons.com/elementor/woocommerce-category-carousel/',
1153 ],
1154 [
1155 'name' => 'wc-products',
1156 'label' => esc_html__( 'WooCommerce Products', 'sky-elementor-addons' ),
1157 'type' => 'checkbox',
1158 'value' => ! in_array( 'wc-products', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1159 'default' => 'on',
1160 'video_url' => '#',
1161 'content_type' => 'custom',
1162 'feature_type' => 'pro',
1163 'demo_url' => 'https://skyaddons.com/elementor/woocommerce-products/',
1164 ],
1165 [
1166 'name' => 'wc-products-carousel',
1167 'label' => esc_html__( 'WooCommerce Products Carousel', 'sky-elementor-addons' ),
1168 'type' => 'checkbox',
1169 'value' => ! in_array( 'wc-products-carousel', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1170 'default' => 'on',
1171 'video_url' => '#',
1172 'content_type' => 'custom',
1173 'feature_type' => 'pro',
1174 'demo_url' => 'https://skyaddons.com/elementor/woocommerce-products-carousel/',
1175 ],
1176 [
1177 'name' => 'edd-grid',
1178 'label' => esc_html__( 'EDD Product Grid', 'sky-elementor-addons' ),
1179 'type' => 'checkbox',
1180 'value' => ! in_array( 'edd-grid', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1181 'default' => 'on',
1182 'video_url' => '#',
1183 'content_type' => 'custom new',
1184 'feature_type' => 'pro',
1185 'demo_url' => 'https://skyaddons.com/elementor/woocommerce-products-carousel/',
1186 ],
1187 [
1188 'name' => 'edd-carousel',
1189 'label' => esc_html__( 'EDD Product Carousel', 'sky-elementor-addons' ),
1190 'type' => 'checkbox',
1191 'value' => ! in_array( 'edd-carousel', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1192 'default' => 'on',
1193 'video_url' => '#',
1194 'content_type' => 'custom new',
1195 'feature_type' => 'pro',
1196 'demo_url' => 'https://skyaddons.com/elementor/woocommerce-products-carousel/',
1197 ],
1198 [
1199 'name' => 'edd-category-grid',
1200 'label' => esc_html__( 'EDD Category Grid', 'sky-elementor-addons' ),
1201 'type' => 'checkbox',
1202 'value' => ! in_array( 'edd-category-grid', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1203 'default' => 'on',
1204 'video_url' => '#',
1205 'content_type' => 'custom new',
1206 'feature_type' => 'pro',
1207 'demo_url' => 'https://skyaddons.com/elementor/woocommerce-products-carousel/',
1208 ],
1209 [
1210 'name' => 'edd-category-carousel',
1211 'label' => esc_html__( 'EDD Category Carousel', 'sky-elementor-addons' ),
1212 'type' => 'checkbox',
1213 'value' => ! in_array( 'edd-category-carousel', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1214 'default' => 'on',
1215 'video_url' => '#',
1216 'content_type' => 'custom new',
1217 'feature_type' => 'pro',
1218 'demo_url' => 'https://skyaddons.com/elementor/woocommerce-products-carousel/',
1219 ],
1220 [
1221 'name' => 'cf7',
1222 'label' => esc_html__( 'Contact Form 7', 'sky-elementor-addons' ),
1223 'type' => 'checkbox',
1224 'value' => ! in_array( 'cf7', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1225 'default' => 'on',
1226 'video_url' => '#',
1227 'content_type' => 'new',
1228 'feature_type' => 'free',
1229 'demo_url' => '#',
1230 ],
1231 [
1232 'name' => 'fluent-form',
1233 'label' => esc_html__( 'Fluent Form', 'sky-elementor-addons' ),
1234 'type' => 'checkbox',
1235 'value' => ! in_array( 'fluent-form', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1236 'default' => 'on',
1237 'video_url' => '#',
1238 'content_type' => 'new',
1239 'feature_type' => 'free',
1240 'demo_url' => '#',
1241 ],
1242 [
1243 'name' => 'gravity-forms',
1244 'label' => esc_html__( 'Gravity Forms', 'sky-elementor-addons' ),
1245 'type' => 'checkbox',
1246 'value' => ! in_array( 'gravity-forms', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1247 'default' => 'on',
1248 'video_url' => '#',
1249 'content_type' => 'new',
1250 'feature_type' => 'free',
1251 'demo_url' => '#',
1252 ],
1253 [
1254 'name' => 'ninja-forms',
1255 'label' => esc_html__( 'Ninja Forms', 'sky-elementor-addons' ),
1256 'type' => 'checkbox',
1257 'value' => ! in_array( 'ninja-forms', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1258 'default' => 'on',
1259 'video_url' => '#',
1260 'content_type' => 'new',
1261 'feature_type' => 'free',
1262 'demo_url' => '#',
1263 ],
1264 [
1265 'name' => 'we-forms',
1266 'label' => esc_html__( 'weForms', 'sky-elementor-addons' ),
1267 'type' => 'checkbox',
1268 'value' => ! in_array( 'we-forms', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1269 'default' => 'on',
1270 'video_url' => '#',
1271 'content_type' => 'new',
1272 'feature_type' => 'free',
1273 'demo_url' => '#',
1274 ],
1275 [
1276 'name' => 'wp-forms',
1277 'label' => esc_html__( 'WP Forms', 'sky-elementor-addons' ),
1278 'type' => 'checkbox',
1279 'value' => ! in_array( 'wp-forms', $inactive_3rd_party_widgets ) ? 'on' : 'off',
1280 'default' => 'on',
1281 'video_url' => '#',
1282 'content_type' => 'new',
1283 'feature_type' => 'free',
1284 'demo_url' => '#',
1285 ],
1286 ],
1287 'sky_addons_extensions' => [
1288 [
1289 'name' => 'advanced-tooltip',
1290 'label' => esc_html__( 'Advanced Tooltip', 'sky-elementor-addons' ),
1291 'type' => 'checkbox',
1292 'value' => ! in_array( 'advanced-tooltip', $inactive_extensions ) ? 'on' : 'off',
1293 'default' => 'on',
1294 'video_url' => '#',
1295 'content_type' => 'custom',
1296 'feature_type' => 'pro',
1297 'demo_url' => 'https://skyaddons.com/elementor/advanced-tooltip-extensions/',
1298 ],
1299 [
1300 'name' => 'animated-gradient-bg',
1301 'label' => esc_html__( 'Animated Gradient Background', 'sky-elementor-addons' ),
1302 'type' => 'checkbox',
1303 'value' => ! in_array( 'animated-gradient-bg', $inactive_extensions ) ? 'on' : 'off',
1304 'default' => 'on',
1305 'video_url' => '#',
1306 'content_type' => 'custom',
1307 'feature_type' => 'free',
1308 'demo_url' => 'https://skyaddons.com/elementor/animated-gradient-background-extensions/',
1309 ],
1310 [
1311 'name' => 'backdrop-filter',
1312 'label' => esc_html__( 'Backdrop Filter', 'sky-elementor-addons' ),
1313 'type' => 'checkbox',
1314 'value' => ! in_array( 'backdrop-filter', $inactive_extensions ) ? 'on' : 'off',
1315 'default' => 'on',
1316 'video_url' => '#',
1317 'content_type' => 'custom',
1318 'feature_type' => 'free',
1319 'demo_url' => 'https://skyaddons.com/elementor/backdrop-filter-extensions/',
1320 ],
1321 [
1322 'name' => 'confetti-effects',
1323 'label' => esc_html__( 'Confetti Effects', 'sky-elementor-addons' ),
1324 'type' => 'checkbox',
1325 'value' => ! in_array( 'confetti-effects', $inactive_extensions ) ? 'on' : 'off',
1326 'default' => 'on',
1327 'video_url' => '#',
1328 'content_type' => 'custom',
1329 'feature_type' => 'pro',
1330 'demo_url' => 'https://skyaddons.com/elementor/confetti-effects-extensions/',
1331 ],
1332 [
1333 'name' => 'custom-clip-path',
1334 'label' => esc_html__( 'Custom Clip Path', 'sky-elementor-addons' ),
1335 'type' => 'checkbox',
1336 'value' => ! in_array( 'custom-clip-path', $inactive_extensions ) ? 'on' : 'off',
1337 'default' => 'on',
1338 'video_url' => '#',
1339 'content_type' => 'custom',
1340 'feature_type' => 'free',
1341 'demo_url' => 'https://skyaddons.com/elementor/custom-clip-path-extensions/',
1342 ],
1343 [
1344 'name' => 'custom-scripts',
1345 'label' => esc_html__( 'Custom Scripts', 'sky-elementor-addons' ),
1346 'type' => 'checkbox',
1347 'value' => ! in_array( 'custom-scripts', $inactive_extensions ) ? 'on' : 'off',
1348 'default' => 'on',
1349 'video_url' => '#',
1350 'content_type' => 'custom',
1351 'feature_type' => 'pro',
1352 'demo_url' => 'https://skyaddons.com/elementor/custom-scripts-extensions/',
1353 ],
1354 [
1355 'name' => 'equal-height',
1356 'label' => esc_html__( 'Equal Height', 'sky-elementor-addons' ),
1357 'type' => 'checkbox',
1358 'value' => ! in_array( 'equal-height', $inactive_extensions ) ? 'on' : 'off',
1359 'default' => 'on',
1360 'video_url' => '#',
1361 'content_type' => 'custom',
1362 'feature_type' => 'free',
1363 'demo_url' => 'https://skyaddons.com/elementor/equal-height-extensions/',
1364 ],
1365 [
1366 'name' => 'floating-effects',
1367 'label' => esc_html__( 'Floating Effects', 'sky-elementor-addons' ),
1368 'type' => 'checkbox',
1369 'value' => ! in_array( 'floating-effects', $inactive_extensions ) ? 'on' : 'off',
1370 'default' => 'on',
1371 'video_url' => '#',
1372 'content_type' => 'custom',
1373 'feature_type' => 'free',
1374 'demo_url' => 'https://skyaddons.com/elementor/floating-effects-extensions/',
1375 ],
1376 [
1377 'name' => 'gradient-text',
1378 'label' => esc_html__( 'Gradient Text', 'sky-elementor-addons' ),
1379 'type' => 'checkbox',
1380 'value' => ! in_array( 'gradient-text', $inactive_extensions ) ? 'on' : 'off',
1381 'default' => 'on',
1382 'video_url' => '#',
1383 'content_type' => 'custom',
1384 'feature_type' => 'free',
1385 'demo_url' => 'https://skyaddons.com/elementor/gradient-text-extensions/',
1386 ],
1387 [
1388 'name' => 'particles',
1389 'label' => esc_html__( 'Particles', 'sky-elementor-addons' ),
1390 'type' => 'checkbox',
1391 'value' => ! in_array( 'particles', $inactive_extensions ) ? 'on' : 'off',
1392 'default' => 'on',
1393 'video_url' => '#',
1394 'content_type' => 'custom',
1395 'feature_type' => 'pro',
1396 'demo_url' => 'https://skyaddons.com/elementor/particle-effects-extensions/',
1397 ],
1398 [
1399 'name' => 'reveal-effects',
1400 'label' => esc_html__( 'Reveal Effects', 'sky-elementor-addons' ),
1401 'type' => 'checkbox',
1402 'value' => ! in_array( 'reveal-effects', $inactive_extensions ) ? 'on' : 'off',
1403 'default' => 'on',
1404 'video_url' => '#',
1405 'content_type' => 'custom',
1406 'feature_type' => 'free',
1407 'demo_url' => 'https://skyaddons.com/elementor/reveal-effects-extensions/',
1408 ],
1409 [
1410 'name' => 'ripples-effect',
1411 'label' => esc_html__( 'Ripples Effect', 'sky-elementor-addons' ),
1412 'type' => 'checkbox',
1413 'value' => ! in_array( 'ripples-effect', $inactive_extensions ) ? 'on' : 'off',
1414 'default' => 'on',
1415 'video_url' => '#',
1416 'content_type' => 'custom',
1417 'feature_type' => 'free',
1418 'demo_url' => 'https://skyaddons.com/elementor/ripples-effect-extensions/',
1419 ],
1420 [
1421 'name' => 'simple-parallax',
1422 'label' => esc_html__( 'Simple Parallax', 'sky-elementor-addons' ),
1423 'type' => 'checkbox',
1424 'value' => ! in_array( 'simple-parallax', $inactive_extensions ) ? 'on' : 'off',
1425 'default' => 'on',
1426 'video_url' => '#',
1427 'content_type' => 'custom',
1428 'feature_type' => 'free',
1429 'demo_url' => 'https://skyaddons.com/elementor/parallax-effects-extensions/',
1430 ],
1431 [
1432 'name' => 'display-conditions',
1433 'label' => esc_html__( 'Display Conditions', 'sky-elementor-addons' ),
1434 'type' => 'checkbox',
1435 'value' => ! in_array( 'display-conditions', $inactive_extensions ) ? 'on' : 'off',
1436 'default' => 'on',
1437 'video_url' => '#',
1438 'content_type' => 'custom',
1439 'feature_type' => 'pro',
1440 'demo_url' => 'https://skyaddons.com/elementor/display-conditions-extensions/',
1441 ],
1442 [
1443 'name' => 'wrapper-link',
1444 'label' => esc_html__( 'Wrapper Link', 'sky-elementor-addons' ),
1445 'type' => 'checkbox',
1446 'value' => ! in_array( 'wrapper-link', $inactive_extensions ) ? 'on' : 'off',
1447 'default' => 'on',
1448 'video_url' => '#',
1449 'content_type' => 'custom',
1450 'feature_type' => 'free',
1451 'demo_url' => 'https://skyaddons.com/elementor/wrapper-link-extensions/',
1452 ],
1453 ],
1454 'sky_addons_api' => [
1455 'form_builder_group' => [
1456 'label' => esc_html__( 'Form Builder', 'sky-elementor-addons' ),
1457 'icon_key' => 'envelope',
1458 'input_box' => [
1459 [
1460 'name' => 'form_builder_email_to',
1461 'label' => esc_html__( 'Receiver Email', 'sky-elementor-addons' ),
1462 'placeholder' => esc_html__( 'Email Address', 'sky-elementor-addons' ),
1463 'description' => esc_html__( 'By default, the form builder sends emails to the admin email. Configure a different address here.', 'sky-elementor-addons' ),
1464 'type' => 'input',
1465 'value' => ! empty( $saved_api['form_builder_email_to'] ) ? $saved_api['form_builder_email_to'] : null,
1466 ],
1467 ],
1468 'feature_type' => 'pro',
1469 ],
1470 'sky_addons_api_google_map_group' => [
1471 'label' => esc_html__( 'Google Maps', 'sky-elementor-addons' ),
1472 'icon_key' => 'map-location-dot',
1473 'input_box' => [
1474 [
1475 'name' => 'google_map_key',
1476 'label' => esc_html__( 'API Key', 'sky-elementor-addons' ),
1477 'placeholder' => esc_html__( 'API Key', 'sky-elementor-addons' ),
1478 'description' => esc_html__( 'Google Maps API enables detailed maps and geographic data in your widgets.', 'sky-elementor-addons' ),
1479 'type' => 'password',
1480 'value' => ! empty( $saved_api['google_map_key'] ) ? $saved_api['google_map_key'] : null,
1481 ],
1482 ],
1483 'feature_type' => 'pro',
1484 ],
1485 'sky_addons_api_mailchimp_group' => [
1486 'label' => esc_html__( 'Mailchimp', 'sky-elementor-addons' ),
1487 'icon_key' => 'mailchimp',
1488 'input_box' => [
1489 [
1490 'name' => 'mailchimp_api_key',
1491 'label' => esc_html__( 'API Key', 'sky-elementor-addons' ),
1492 'placeholder' => esc_html__( 'API Key', 'sky-elementor-addons' ),
1493 'description' => esc_html__( 'Mailchimp is a popular email marketing and automation platform.', 'sky-elementor-addons' ),
1494 'type' => 'password',
1495 'value' => ! empty( $saved_api['mailchimp_api_key'] ) ? $saved_api['mailchimp_api_key'] : null,
1496 ],
1497 [
1498 'name' => 'mailchimp_list_id',
1499 'label' => esc_html__( 'Audience ID', 'sky-elementor-addons' ),
1500 'placeholder' => esc_html__( 'Audience ID', 'sky-elementor-addons' ),
1501 'description' => esc_html__( 'Each Mailchimp audience has a unique audience ID (sometimes called a list ID).', 'sky-elementor-addons' ),
1502 'type' => 'input',
1503 'value' => ! empty( $saved_api['mailchimp_list_id'] ) ? $saved_api['mailchimp_list_id'] : null,
1504 ],
1505 ],
1506 'feature_type' => 'pro',
1507 ],
1508 'sky_addons_api_instagram_group' => [
1509 'label' => esc_html__( 'Instagram', 'sky-elementor-addons' ),
1510 'icon_key' => 'instagram',
1511 'input_box' => [
1512 [
1513 'name' => 'instagram_app_id',
1514 'label' => esc_html__( 'App ID', 'sky-elementor-addons' ),
1515 'placeholder' => esc_html__( 'App ID', 'sky-elementor-addons' ),
1516 'description' => '',
1517 'type' => 'input',
1518 'value' => ! empty( $saved_api['instagram_app_id'] ) ? $saved_api['instagram_app_id'] : null,
1519 ],
1520 [
1521 'name' => 'instagram_app_secret',
1522 'label' => esc_html__( 'App Secret', 'sky-elementor-addons' ),
1523 'placeholder' => esc_html__( 'App Secret', 'sky-elementor-addons' ),
1524 'description' => '',
1525 'type' => 'password',
1526 'value' => ! empty( $saved_api['instagram_app_secret'] ) ? $saved_api['instagram_app_secret'] : null,
1527 ],
1528 [
1529 'name' => 'instagram_access_token',
1530 'label' => esc_html__( 'Access Token', 'sky-elementor-addons' ),
1531 'placeholder' => esc_html__( 'Access Token', 'sky-elementor-addons' ),
1532 'description' => '',
1533 'type' => 'password',
1534 'value' => ! empty( $saved_api['instagram_access_token'] ) ? $saved_api['instagram_access_token'] : null,
1535 ],
1536 ],
1537 'feature_type' => 'pro',
1538 ],
1539 'sky_addons_api_twitter_group' => [
1540 'label' => esc_html__( 'Twitter / X', 'sky-elementor-addons' ),
1541 'icon_key' => 'x-twitter',
1542 'input_box' => [
1543 [
1544 'name' => 'twitter_api_key',
1545 'label' => esc_html__( 'API Key', 'sky-elementor-addons' ),
1546 'placeholder' => esc_html__( 'API Key', 'sky-elementor-addons' ),
1547 'description' => '',
1548 'type' => 'password',
1549 'value' => ! empty( $saved_api['twitter_api_key'] ) ? $saved_api['twitter_api_key'] : null,
1550 ],
1551 [
1552 'name' => 'twitter_api_secret',
1553 'label' => esc_html__( 'API Secret', 'sky-elementor-addons' ),
1554 'placeholder' => esc_html__( 'API Secret', 'sky-elementor-addons' ),
1555 'description' => '',
1556 'type' => 'password',
1557 'value' => ! empty( $saved_api['twitter_api_secret'] ) ? $saved_api['twitter_api_secret'] : null,
1558 ],
1559 [
1560 'name' => 'twitter_bearer_token',
1561 'label' => esc_html__( 'Bearer Token', 'sky-elementor-addons' ),
1562 'placeholder' => esc_html__( 'Bearer Token', 'sky-elementor-addons' ),
1563 'description' => '',
1564 'type' => 'password',
1565 'value' => ! empty( $saved_api['twitter_bearer_token'] ) ? $saved_api['twitter_bearer_token'] : null,
1566 ],
1567 ],
1568 'feature_type' => 'free',
1569 ],
1570 'sky_addons_api_facebook_group' => [
1571 'label' => esc_html__( 'Facebook', 'sky-elementor-addons' ),
1572 'icon_key' => 'facebook',
1573 'input_box' => [
1574 [
1575 'name' => 'facebook_app_id',
1576 'label' => esc_html__( 'App ID', 'sky-elementor-addons' ),
1577 'placeholder' => esc_html__( 'App ID', 'sky-elementor-addons' ),
1578 'description' => '',
1579 'type' => 'input',
1580 'value' => ! empty( $saved_api['facebook_app_id'] ) ? $saved_api['facebook_app_id'] : null,
1581 ],
1582 [
1583 'name' => 'facebook_app_secret',
1584 'label' => esc_html__( 'App Secret', 'sky-elementor-addons' ),
1585 'placeholder' => esc_html__( 'App Secret', 'sky-elementor-addons' ),
1586 'description' => '',
1587 'type' => 'password',
1588 'value' => ! empty( $saved_api['facebook_app_secret'] ) ? $saved_api['facebook_app_secret'] : null,
1589 ],
1590 ],
1591 'feature_type' => 'pro',
1592 ],
1593 'sky_addons_api_openai_group' => [
1594 'label' => esc_html__( 'AI Provider', 'sky-elementor-addons' ),
1595 'icon_key' => 'robot',
1596 'input_box' => [
1597 [
1598 'name' => 'ai_provider',
1599 'label' => esc_html__( 'Provider', 'sky-elementor-addons' ),
1600 'type' => 'select',
1601 'default' => 'openrouter',
1602 'options' => [
1603 [
1604 'value' => 'openrouter',
1605 'label' => 'OpenRouter',
1606 ],
1607 [
1608 'value' => 'openai',
1609 'label' => 'OpenAI',
1610 ],
1611 ],
1612 'value' => ! empty( $saved_api['ai_provider'] ) ? $saved_api['ai_provider'] : 'openrouter',
1613 ],
1614 [
1615 'name' => 'openai_api_key',
1616 'label' => esc_html__( 'API Key', 'sky-elementor-addons' ),
1617 'placeholder' => esc_html__( 'API Key', 'sky-elementor-addons' ),
1618 'description' => esc_html__( 'API key for your selected AI provider.', 'sky-elementor-addons' ),
1619 'type' => 'password',
1620 'value' => ! empty( $saved_api['openai_api_key'] ) ? $saved_api['openai_api_key'] : null,
1621 ],
1622 ],
1623 'feature_type' => 'pro',
1624 ],
1625 ],
1626 ];
1627
1628 self::$widget_list = $widgets_fields['sky_addons_widgets'];
1629 self::$widget_list = array_merge( self::$widget_list, $widgets_fields['sky_addons_3rd_party_widget'] );
1630
1631 $used_widgets = self::get_used_widgets();
1632 $widgets_fields['sky_addons_widgets'] = array_map(function ( $widget ) use ( $used_widgets ) {
1633 $widget_name = $widget['name'];
1634 $widget['total_used'] = isset( $used_widgets[ 'sky-' . $widget_name ] ) ? $used_widgets[ 'sky-' . $widget_name ] : 0;
1635 return $widget;
1636 }, $widgets_fields['sky_addons_widgets']);
1637
1638 $widgets_fields['sky_addons_3rd_party_widget'] = array_map(
1639 function ( $widget ) use ( $used_widgets ) {
1640 $widget_name = $widget['name'];
1641 $widget['total_used'] = isset( $used_widgets[ 'sky-' . $widget_name ] ) ? $used_widgets[ 'sky-' . $widget_name ] : 0;
1642 return $widget;
1643 },
1644 $widgets_fields['sky_addons_3rd_party_widget']
1645 );
1646
1647 return $widgets_fields;
1648 }
1649
1650 public static function init() {
1651 static $instance = false;
1652
1653 if ( ! $instance ) {
1654 $instance = new self();
1655 }
1656
1657 return $instance;
1658 }
1659 }
1660
1661 function sky_addons_admin() {
1662 return Sky_Addons_Admin::init();
1663 }
1664
1665 // kick-off the admin class
1666 sky_addons_admin();
1667