PluginProbe
UiCore Elements – Free widgets and templates for Elementor / 1.3.17
UiCore Elements – Free widgets and templates for Elementor v1.3.17
1.3.17 1.3.16 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 All 41 releases
← All changes | includes/class-elementor.php +49 -14 1.0.61.3.17 View file →
@@ -1,5 +1,6 @@
1 1 <?php
2 +
2 3 namespace UiCoreElements;
3 4
4 5 /**
5 6 * Scripts and Styles Class
@@ -11,14 +12,15 @@
11 12 $this->init_utils();
12 13
13 14 require_once UICORE_ELEMENTS_INCLUDES . '/class-widget-base.php';
14 15 require_once UICORE_ELEMENTS_INCLUDES . '/class-nested-widget-base.php';
15 - if(!class_exists('\UiCoreAnimate\Base')){
16 + if (!class_exists('\UiCoreAnimate\Base')) {
16 17 require_once UICORE_ELEMENTS_INCLUDES . '/class-animate.php';
17 - }
18 + }
18 19
19 20
20 21 add_action('elementor/elements/categories_registered', [$this, 'create_custom_category'], 999);
22 + add_action('elementor/widgets/widgets_registered', [$this, 'extend_widgets'], 999);
21 23 add_action('elementor/controls/register', [$this, 'init_controls']);
22 24 add_action('elementor/widgets/register', [$this, 'init_widgets']);
23 25 }
24 26
@@ -23,41 +25,65 @@
23 25 }
24 26
25 27 public function init_widgets()
26 28 {
27 - //Only working with UiCore Framework
28 - if(defined('UICORE_ASSETS')){
29 - require_once UICORE_ELEMENTS_INCLUDES . '/widgets/post-grid.php';
30 - }
31 -
29 + // Generic widgets
32 30 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/highlighted-text.php';
33 - require_once UICORE_ELEMENTS_INCLUDES . '/widgets/advanced-post-grid.php';
34 - require_once UICORE_ELEMENTS_INCLUDES . '/widgets/advanced-post-carousel.php';
31 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/icon-list.php';
35 32 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/counter.php';
36 33 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/icon-box.php';
37 34 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/accordion.php';
38 - require_once UICORE_ELEMENTS_INCLUDES . '/widgets/tabs.php';
39 - require_once UICORE_ELEMENTS_INCLUDES . '/widgets/icon-list.php';
35 +
36 + // Gallery Widgets
37 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/gallery-grid.php';
38 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/gallery-carousel.php';
39 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/gallery-slider.php';
40 +
41 + // Post Widgets
42 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/advanced-post-grid.php';
43 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/advanced-post-carousel.php';
44 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/advanced-product-grid.php';
45 +
46 + // Testimonial widgets
40 47 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/testimonial-grid.php';
41 48 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/testimonial-carousel.php';
42 49 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/testimonial-slider.php';
50 +
51 + // Logo widgets
43 52 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/logo-grid.php';
44 53 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/logo-carousel.php';
54 +
55 + // Form widgets
45 56 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/contact-form.php';
57 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/newsletter.php';
46 58
59 + // Nested feature widgets
60 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/tabs.php';
61 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/custom-carousel.php';
62 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/custom-slider.php';
63 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/custom-table.php';
64 +
65 + // Theme Builder widgets
47 66 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/the-content.php';
48 67 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/the-title.php';
49 68 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/post-meta.php';
50 69 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/page-description.php';
70 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/post-featured-image.php';
71 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/advanced-menu.php';
72 +
73 + // Dependent on Uicore Framework
74 + if (defined('UICORE_ASSETS')) {
75 + require_once UICORE_ELEMENTS_INCLUDES . '/widgets/post-grid.php';
76 + }
51 77 }
52 78
53 79
54 80 public function init_controls()
55 81 {
56 - require UICORE_ELEMENTS_INCLUDES . '/controls/class-post-filter-control.php';
82 + require_once UICORE_ELEMENTS_INCLUDES . '/controls/class-post-filter-control.php';
83 + require_once UICORE_ELEMENTS_INCLUDES . '/controls/class-product-filter-control.php';
57 84 }
58 85
59 -
60 86 public function init_utils()
61 87 {
62 88 require_once UICORE_ELEMENTS_INCLUDES . '/utils/grid-component.php';
63 89 require_once UICORE_ELEMENTS_INCLUDES . '/utils/carousel-component.php';
@@ -62,8 +88,9 @@
62 88 require_once UICORE_ELEMENTS_INCLUDES . '/utils/grid-component.php';
63 89 require_once UICORE_ELEMENTS_INCLUDES . '/utils/carousel-component.php';
64 90 require_once UICORE_ELEMENTS_INCLUDES . '/utils/testimonial-component.php';
65 91 require_once UICORE_ELEMENTS_INCLUDES . '/utils/logo-component.php';
92 + require_once UICORE_ELEMENTS_INCLUDES . '/utils/gallery-component.php';
66 93 require_once UICORE_ELEMENTS_INCLUDES . '/utils/animation-component.php';
67 94 require_once UICORE_ELEMENTS_INCLUDES . '/utils/meta-component.php';
68 95 require_once UICORE_ELEMENTS_INCLUDES . '/utils/pagination-component.php';
69 96 require_once UICORE_ELEMENTS_INCLUDES . '/utils/post-filter-component.php';
@@ -68,9 +95,17 @@
68 95 require_once UICORE_ELEMENTS_INCLUDES . '/utils/pagination-component.php';
69 96 require_once UICORE_ELEMENTS_INCLUDES . '/utils/post-filter-component.php';
70 97 require_once UICORE_ELEMENTS_INCLUDES . '/utils/item-style-component.php';
71 98 require_once UICORE_ELEMENTS_INCLUDES . '/utils/post-component.php';
72 - require_once UICORE_ELEMENTS_INCLUDES . '/utils/contact-form-service.php';
99 + require_once UICORE_ELEMENTS_INCLUDES . '/utils/product-component.php';
100 + require_once UICORE_ELEMENTS_INCLUDES . '/utils/form-service.php';
101 + require_once UICORE_ELEMENTS_INCLUDES . '/utils/newsletter-services.php';
102 + require_once UICORE_ELEMENTS_INCLUDES . '/utils/form-component.php';
103 + }
104 +
105 + public function extend_widgets()
106 + {
107 + require UICORE_ELEMENTS_INCLUDES . '/controls/class-lightbox-button.php';
73 108 }
74 109
75 110 function create_custom_category($elements_manager)
76 111 {