PluginProbe
Enter Addons – Ultimate Template Builder for Elementor / trunk
Enter Addons – Ultimate Template Builder for Elementor vtrunk
trunk 2.2.10 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4
enteraddons / inc / Enqueue.php

Enqueue.php in Enter Addons – Ultimate Template Builder for Elementor trunk, at inc/Enqueue.php

243 lines 9.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Enteraddons\Inc;
3
4 /**
5 * Enteraddons admin class
6 *
7 * @package Enteraddons
8 * @author ThemeLooks
9 * @copyright 2022 ThemeLooks
10 * @license GPL-2.0-or-later
11 *
12 *
13 */
14
15 if( !defined( 'WPINC' ) ) {
16 die;
17 }
18
19 if( !class_exists('Enqueue') ) {
20
21 class Enqueue extends \Enteraddons\Core\Base\Enqueue_Base {
22
23 public function assets_dir_url() {
24 $this->assetsUrl = ENTERADDONS_DIR_ASSETS_URL;
25 }
26
27 public function set_scripts() {
28
29 $dir_url = $this->assetsUrl;
30 $getGoogleAPIKey = get_option(ENTERADDONS_OPTION_KEY);
31 $getGoogleAPIKey = !empty( $getGoogleAPIKey['integration']['google_api_key'] ) ? $getGoogleAPIKey['integration']['google_api_key'] : '';
32
33 // Style Flag
34 $this->style = [
35
36 [
37 'handle' => 'fontawesome',
38 'url' => $dir_url.'css/all.fontawesome.min.css',
39 'version' => '2.3.4',
40 'register' => true
41 ],
42 [
43 'handle' => 'owl-carousel',
44 'url' => $dir_url.'vandor/OwlCarousel/owl.carousel.min.css',
45 'version' => '2.3.4',
46 'register' => true
47 ],
48 [
49 'handle' => 'swiper-slider',
50 'url' => $dir_url.'vandor/swiper/swiper.min.css',
51 'version' => '1.0.0',
52 'register' => true
53 ],
54 [
55 'handle' => 'magnific-popup',
56 'url' => $dir_url.'vandor/magnific-popup/magnific-popup.css',
57 'version' => '1.0.0',
58 'register' => true
59 ],
60 [
61 'handle' => 'twentytwenty',
62 'url' => $dir_url.'vandor/twentytwenty/twentytwenty.css',
63 'version' => '1.0.0',
64 'register' => true
65 ],
66 [
67 'handle' => 'enteraddons-global-style',
68 'url' => $dir_url.'css/global.css',
69 'register' => true
70 ]
71 ];
72
73 // Scripts Flag
74 $getScripts = [
75
76 [
77 'handle' => 'maps-googleapis',
78 'url' => 'https://maps.googleapis.com/maps/api/js?key='.esc_attr( $getGoogleAPIKey ),
79 'version' => '1.0.0',
80 'in_footer' => false,
81 'register' => true
82 ],
83 [
84 'handle' => 'isotope-pkgd',
85 'url' => $dir_url.'vandor/isotope/isotope.pkgd.min.js',
86 'version' => '3.0.6',
87 'in_footer' => true,
88 'register' => true
89 ],
90 [
91 'handle' => 'packery-mode-pkgd',
92 'url' => $dir_url.'vandor/isotope/packery-mode.pkgd.min.js',
93 'version' => '2.0.1',
94 'in_footer' => true,
95 'register' => true
96 ],
97 [
98 'handle' => 'owl-carousel',
99 'url' => $dir_url.'vandor/OwlCarousel/owl.carousel.min.js',
100 'version' => '2.3.4',
101 'in_footer' => true,
102 'register' => true
103 ],
104 [
105 'handle' => 'owlcarousel2-filter',
106 'url' => $dir_url.'vandor/OwlCarousel/owlcarousel2-filter.min.js',
107 'version' => '2.3.4',
108 'in_footer' => true,
109 'register' => true
110 ],
111 [
112 'handle' => 'swiper-slider',
113 'url' => $dir_url.'vandor/swiper/swiper.min.js',
114 'version' => '1.0.0',
115 'in_footer' => true,
116 'register' => true
117 ],
118 [
119 'handle' => 'perfect-scrollbar',
120 'url' => $dir_url.'vandor/perfect-scrollbar/perfect-scrollbar.js',
121 'version' => '1.4.0',
122 'in_footer' => true,
123 'register' => true
124 ],
125 [
126 'handle' => 'anime',
127 'url' => $dir_url.'vandor/anime/anime.min.js',
128 'version' => '1.4.0',
129 'in_footer' => true,
130 'register' => true
131 ],
132 [
133 'handle' => 'lottie-player',
134 'url' => $dir_url.'vandor/lottie-player/lottie-player.js',
135 'version' => '1.2.0',
136 'in_footer' => true,
137 'register' => true
138 ],
139 [
140 'handle' => 'twentytwenty',
141 'url' => $dir_url.'vandor/twentytwenty/jquery.twentytwenty.js',
142 'version' => '1.2.0',
143 'in_footer' => true,
144 'register' => true
145 ],
146 [
147 'handle' => 'event-move',
148 'url' => $dir_url.'vandor/twentytwenty/jquery.event.move.js',
149 'version' => '1.2.0',
150 'in_footer' => true,
151 'register' => true
152 ],
153 [
154 'handle' => 'acme-ticker',
155 'url' => $dir_url.'vandor/acmeticker/acmeticker.min.js',
156 'version' => '1.0.1',
157 'dependency' => array('jquery'),
158 'in_footer' => true,
159 'register' => true
160 ],
161 [
162 'handle' => 'magnific-popup',
163 'url' => $dir_url.'vandor/magnific-popup/jquery.magnific-popup.min.js',
164 'version' => '1.0.0',
165 'in_footer' => true,
166 'register' => true
167 ],
168 [
169 'handle' => 'image-hotspot',
170 'url' => $dir_url.'vandor/hotspot/jquery.hotspot.js',
171 'version' => '1.0.0',
172 'in_footer' => true,
173 'register' => true
174 ],
175 [
176 'handle' => 'countdown',
177 'url' => $dir_url.'vandor/countdown/countdown.min.js',
178 'version' => '1.0.0',
179 'dependency' => array( 'jquery'),
180 'in_footer' => true,
181 'register' => true
182 ],
183 [
184 'handle' => 'waypoints',
185 'url' => $dir_url.'vandor/waypoints/waypoints.min.js',
186 'version' => '1.6.2',
187 'dependency' => array( 'jquery'),
188 'in_footer' => true,
189 'register' => true
190 ],
191 [
192 'handle' => 'image-zoom-magnifier',
193 'url' => $dir_url.'vandor/image-magnifier/BUP.js',
194 'version' => '1.0.0',
195 'dependency' => array( 'jquery' ),
196 'in_footer' => true,
197 'register' => true
198 ],
199 [
200 'handle' => 'counterup',
201 'url' => $dir_url.'vandor/counterup/jquery.counterup.min.js',
202 'version' => '1.0.0',
203 'dependency' => array( 'jquery'),
204 'in_footer' => true,
205 'register' => true
206 ],
207 [
208 'handle' => 'typed',
209 'url' => $dir_url.'vandor/typed/typed.min.js',
210 'version' => '1.0.0',
211 'dependency' => array( 'jquery'),
212 'in_footer' => true,
213 'register' => true
214 ],
215 [
216 'handle' => 'enteraddons-main',
217 'url' => $dir_url.'js/enteraddons.js',
218 'dependency' => array( 'jquery' ),
219 'in_footer' => true,
220 'register' => true
221 ]
222
223 ];
224
225 $this->script = apply_filters( 'enteraddons_js_scripts', $getScripts );
226 //
227 $this->localize = [
228 [
229 'handle' => 'enteraddons-main',
230 'object_name' => 'enteraddonsMainObject',
231 'data' => array('ajax_url' => admin_url('admin-ajax.php'))
232
233 ]
234 ];
235
236 }
237
238
239
240 } // End Class
241
242 } // End Condition
243