PluginProbe
UiCore Elements – Free widgets and templates for Elementor / 1.2.0
UiCore Elements – Free widgets and templates for Elementor v1.2.0
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
uicore-elements / includes / class-elementor.php

class-elementor.php in UiCore Elements – Free widgets and templates for Elementor 1.2.0, at includes/class-elementor.php

110 lines 4.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace UiCoreElements;
3
4 /**
5 * Scripts and Styles Class
6 */
7 class Elementor
8 {
9 public function __construct()
10 {
11 $this->init_utils();
12
13 require_once UICORE_ELEMENTS_INCLUDES . '/class-widget-base.php';
14 require_once UICORE_ELEMENTS_INCLUDES . '/class-nested-widget-base.php';
15 if(!class_exists('\UiCoreAnimate\Base')){
16 require_once UICORE_ELEMENTS_INCLUDES . '/class-animate.php';
17 }
18
19
20 add_action('elementor/elements/categories_registered', [$this, 'create_custom_category'], 999);
21 add_action('elementor/controls/register', [$this, 'init_controls']);
22 add_action('elementor/widgets/register', [$this, 'init_widgets']);
23 }
24
25 public function init_widgets()
26 {
27 // Generic widgets
28 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/highlighted-text.php';
29 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/icon-list.php';
30 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/counter.php';
31 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/icon-box.php';
32 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/accordion.php';
33
34 // Gallery Widgets
35 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/gallery-grid.php';
36 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/gallery-carousel.php';
37 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/gallery-slider.php';
38
39 // Post Widgets
40 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/advanced-post-grid.php';
41 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/advanced-post-carousel.php';
42 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/advanced-product-grid.php';
43
44 // Testimonial widgets
45 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/testimonial-grid.php';
46 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/testimonial-carousel.php';
47 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/testimonial-slider.php';
48
49 // Logo widgets
50 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/logo-grid.php';
51 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/logo-carousel.php';
52
53 // Form widgets
54 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/contact-form.php';
55 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/newsletter.php';
56
57 // Nested feature widgets
58 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/tabs.php';
59 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/custom-carousel.php';
60 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/custom-slider.php';
61 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/custom-table.php';
62
63 // Theme Builder widgets
64 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/the-content.php';
65 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/the-title.php';
66 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/post-meta.php';
67 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/theme-builder/page-description.php';
68
69 // Dependent on Uicore Framework
70 if(defined('UICORE_ASSETS')){
71 require_once UICORE_ELEMENTS_INCLUDES . '/widgets/post-grid.php';
72 }
73 }
74
75
76 public function init_controls()
77 {
78 require UICORE_ELEMENTS_INCLUDES . '/controls/class-post-filter-control.php';
79 require UICORE_ELEMENTS_INCLUDES . '/controls/class-product-filter-control.php';
80 }
81
82
83
84 public function init_utils()
85 {
86 require_once UICORE_ELEMENTS_INCLUDES . '/utils/grid-component.php';
87 require_once UICORE_ELEMENTS_INCLUDES . '/utils/carousel-component.php';
88 require_once UICORE_ELEMENTS_INCLUDES . '/utils/testimonial-component.php';
89 require_once UICORE_ELEMENTS_INCLUDES . '/utils/logo-component.php';
90 require_once UICORE_ELEMENTS_INCLUDES . '/utils/gallery-component.php';
91 require_once UICORE_ELEMENTS_INCLUDES . '/utils/animation-component.php';
92 require_once UICORE_ELEMENTS_INCLUDES . '/utils/meta-component.php';
93 require_once UICORE_ELEMENTS_INCLUDES . '/utils/pagination-component.php';
94 require_once UICORE_ELEMENTS_INCLUDES . '/utils/post-filter-component.php';
95 require_once UICORE_ELEMENTS_INCLUDES . '/utils/item-style-component.php';
96 require_once UICORE_ELEMENTS_INCLUDES . '/utils/post-component.php';
97 require_once UICORE_ELEMENTS_INCLUDES . '/utils/product-component.php';
98 require_once UICORE_ELEMENTS_INCLUDES . '/utils/form-service.php';
99 require_once UICORE_ELEMENTS_INCLUDES . '/utils/form-component.php';
100 }
101
102 function create_custom_category($elements_manager)
103 {
104 $elements_manager->add_category('uicore', [
105 'title' => __('UiCore', 'uicore-elements'),
106 'icon' => 'fa fa-plug',
107 ]);
108 }
109 }
110