Version Description
- Image Accordion Element added
- Content Ticker element added
- Info Box element updated with flexbox layout
- Twitter Feed element improved
- Few minor bugfix and improvements
Download this release
Release Info
Developer | re_enter_rupok |
Plugin | Elementor Essential Addons |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.4.3 to 2.5.0
- admin/assets/css/admin.css +16 -14
- admin/assets/js/admin.js +1 -8
- admin/settings.php +227 -366
- assets/css/essential-addons-editor.css +2 -0
- assets/css/essential-addons-elementor.css +204 -20
- assets/img/accordion.png +0 -0
- assets/slick/ajax-loader.gif +0 -0
- assets/slick/fonts/slick.eot +0 -0
- assets/slick/fonts/slick.svg +14 -0
- assets/slick/fonts/slick.ttf +0 -0
- assets/slick/fonts/slick.woff +0 -0
- assets/slick/slick.css +323 -0
- assets/slick/slick.min.js +18 -0
- elements/content-ticker/content-ticker.php +601 -0
- elements/data-table/data-table.php +1 -1
- elements/image-accordion/image-accordion.php +384 -0
- elements/infobox/infobox.php +37 -41
- elements/twitter-feed/twitter-feed.php +1 -2
- essential_adons_elementor.php +14 -3
- readme.txt +14 -3
admin/assets/css/admin.css
CHANGED
@@ -78,20 +78,11 @@
|
|
78 |
box-shadow: none;
|
79 |
color: #343434;
|
80 |
}
|
81 |
-
p.title {
|
82 |
-
font-size:
|
83 |
-
font-weight:
|
84 |
color: #333;
|
85 |
-
|
86 |
-
margin-bottom: 0px;
|
87 |
-
line-height: 20px;
|
88 |
-
}
|
89 |
-
p.desc {
|
90 |
-
font-size: 12px;
|
91 |
-
color: #4d4d4d;
|
92 |
-
margin-bottom: 15px !important;
|
93 |
-
padding-bottom: 15px;
|
94 |
-
border-bottom: 1px solid rgba( 0,0,0,0.1 );
|
95 |
}
|
96 |
.eael-settings-tab p.eael-elements-control-notice {
|
97 |
color: #42418e;
|
@@ -132,8 +123,19 @@ textarea.eael-form-control {
|
|
132 |
height: auto;
|
133 |
}
|
134 |
/* Checkbox Style */
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
.eael-checkbox {
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
137 |
}
|
138 |
.eael-checkbox input[type=checkbox] {
|
139 |
visibility: hidden;
|
78 |
box-shadow: none;
|
79 |
color: #343434;
|
80 |
}
|
81 |
+
p.eael-el-title {
|
82 |
+
font-size: 15px;
|
83 |
+
font-weight: 600;
|
84 |
color: #333;
|
85 |
+
margin: .5em;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
.eael-settings-tab p.eael-elements-control-notice {
|
88 |
color: #42418e;
|
123 |
height: auto;
|
124 |
}
|
125 |
/* Checkbox Style */
|
126 |
+
|
127 |
+
.eael-checkbox-container {
|
128 |
+
display: flex;
|
129 |
+
flex-flow: row wrap;
|
130 |
+
align-items: center;
|
131 |
+
}
|
132 |
.eael-checkbox {
|
133 |
+
min-width: 250px;
|
134 |
+
font-size: 24px;
|
135 |
+
flex: 0 0 auto;
|
136 |
+
display: flex;
|
137 |
+
align-items: center;
|
138 |
+
margin: 10px;
|
139 |
}
|
140 |
.eael-checkbox input[type=checkbox] {
|
141 |
visibility: hidden;
|
admin/assets/js/admin.js
CHANGED
@@ -25,13 +25,6 @@
|
|
25 |
});
|
26 |
} );
|
27 |
|
28 |
-
// Adding link id after the url
|
29 |
-
// $('.eael-settings-tabs ul li a').click(function () {
|
30 |
-
// var tabUrl = $(this).attr( 'href' );
|
31 |
-
// window.location.hash = tabUrl;
|
32 |
-
// $('html, body').scrollTop(tabUrl);
|
33 |
-
// });
|
34 |
-
|
35 |
// Save Button reacting on any changes
|
36 |
var headerSaveBtn = $( '.eael-header-bar .eael-btn' );
|
37 |
var footerSaveBtn = $( '.eael-save-btn-wrap .eael-btn' );
|
@@ -45,7 +38,7 @@
|
|
45 |
e.preventDefault();
|
46 |
|
47 |
$.ajax( {
|
48 |
-
url:
|
49 |
type: 'post',
|
50 |
data: {
|
51 |
action: 'save_settings_with_ajax',
|
25 |
});
|
26 |
} );
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
// Save Button reacting on any changes
|
29 |
var headerSaveBtn = $( '.eael-header-bar .eael-btn' );
|
30 |
var footerSaveBtn = $( '.eael-save-btn-wrap .eael-btn' );
|
38 |
e.preventDefault();
|
39 |
|
40 |
$.ajax( {
|
41 |
+
url: js_eael_lite_settings.ajaxurl,
|
42 |
type: 'post',
|
43 |
data: {
|
44 |
action: 'save_settings_with_ajax',
|
admin/settings.php
CHANGED
@@ -14,7 +14,7 @@ class Eael_Admin_Settings {
|
|
14 |
* @var array
|
15 |
* @since 2.3.0
|
16 |
*/
|
17 |
-
public $eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'img-comparison', 'instagram-gallery', 'interactive-promo', 'lightbox', 'post-block', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonial-slider', 'testimonials', 'testimonials', 'weforms', 'static-product', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'flip-carousel', 'interactive-cards', 'ninja-form', 'gravity-form', 'caldera-form', 'wisdom_registered_setting', 'twitter-feed', 'facebook-feed', 'twitter-feed-carousel', 'facebook-feed-carousel', 'data-table', 'filter-gallery', 'dynamic-filter-gallery' ];
|
18 |
|
19 |
/**
|
20 |
* Will Contain All Components Default Values
|
@@ -101,7 +101,7 @@ class Eael_Admin_Settings {
|
|
101 |
$js_info = array(
|
102 |
'ajaxurl' => admin_url( 'admin-ajax.php' )
|
103 |
);
|
104 |
-
wp_localize_script( 'essential_addons_elementor-admin-js', '
|
105 |
|
106 |
/**
|
107 |
* This section will handle the "eael_save_settings" array. If any new settings options is added
|
@@ -208,376 +208,235 @@ class Eael_Admin_Settings {
|
|
208 |
<div class="row">
|
209 |
<div class="col-full">
|
210 |
<p class="eael-elements-control-notice">You can disable the elements you are not using on your site. That will disable all associated assets of those widgets to improve your site loading.</p>
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
<
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
<
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
<label for="price-table"></label>
|
335 |
-
</div>
|
336 |
-
</td>
|
337 |
-
</tr>
|
338 |
-
<tr>
|
339 |
-
<td>
|
340 |
-
<div class="eael-checkbox">
|
341 |
-
<p class="title"><?php _e( 'Ninja Form', 'essential-addons-elementor' ) ?></p>
|
342 |
-
<p class="desc"><?php _e( 'Activate / Deactivate Ninja Form', 'essential-addons-elementor' ); ?></p>
|
343 |
-
<input type="checkbox" id="ninja-form" name="ninja-form" <?php checked( 1, $this->eael_get_settings['ninja-form'], true ); ?> >
|
344 |
-
<label for="ninja-form"></label>
|
345 |
-
</div>
|
346 |
-
</td>
|
347 |
-
<td>
|
348 |
-
<div class="eael-checkbox">
|
349 |
-
<p class="title"><?php _e( 'Gravity Form', 'essential-addons-elementor' ) ?></p>
|
350 |
-
<p class="desc"><?php _e( 'Activate / Deactivate Gravity Form', 'essential-addons-elementor' ); ?></p>
|
351 |
-
<input type="checkbox" id="gravity-form" name="gravity-form" <?php checked( 1, $this->eael_get_settings['gravity-form'], true ); ?> >
|
352 |
-
<label for="gravity-form"></label>
|
353 |
-
</div>
|
354 |
-
</td>
|
355 |
-
<td>
|
356 |
-
<div class="eael-checkbox">
|
357 |
-
<p class="title"><?php _e( 'Caldera Form', 'essential-addons-elementor' ) ?></p>
|
358 |
-
<p class="desc"><?php _e( 'Activate / Deactivate Caldera Form', 'essential-addons-elementor' ); ?></p>
|
359 |
-
<input type="checkbox" id="caldera-form" name="caldera-form" <?php checked( 1, $this->eael_get_settings['caldera-form'], true ); ?> >
|
360 |
-
<label for="caldera-form"></label>
|
361 |
-
</div>
|
362 |
-
</td>
|
363 |
-
<td>
|
364 |
-
<div class="eael-checkbox">
|
365 |
-
<p class="title"><?php _e( 'Twitter Feed', 'essential-addons-elementor' ) ?></p>
|
366 |
-
<p class="desc"><?php _e( 'Activate / Deactivate Twitter Feed', 'essential-addons-elementor' ); ?></p>
|
367 |
-
<input type="checkbox" id="twitter-feed" name="twitter-feed" <?php checked( 1, $this->eael_get_settings['twitter-feed'], true ); ?> >
|
368 |
-
<label for="twitter-feed"></label>
|
369 |
-
</div>
|
370 |
-
</td>
|
371 |
-
<td>
|
372 |
-
<div class="eael-checkbox">
|
373 |
-
<p class="title"><?php _e( 'Facebook Feed', 'essential-addons-elementor' ) ?></p>
|
374 |
-
<p class="desc"><?php _e( 'Activate / Deactivate Facebook Feed', 'essential-addons-elementor' ); ?></p>
|
375 |
-
<input type="checkbox" id="facebook-feed" name="facebook-feed" <?php checked( 1, $this->eael_get_settings['facebook-feed'], true ); ?> >
|
376 |
-
<label for="facebook-feed"></label>
|
377 |
-
</div>
|
378 |
-
</td>
|
379 |
-
</tr>
|
380 |
-
<tr>
|
381 |
-
<td>
|
382 |
-
<div class="eael-checkbox">
|
383 |
-
<p class="title"><?php _e( 'Data Table', 'essential-addons-elementor' ) ?></p>
|
384 |
-
<p class="desc"><?php _e( 'Activate / Deactivate Data Table', 'essential-addons-elementor' ); ?></p>
|
385 |
-
<input type="checkbox" id="data-table" name="data-table" <?php checked( 1, $this->eael_get_settings['data-table'], true ); ?> >
|
386 |
-
<label for="data-table"></label>
|
387 |
-
</div>
|
388 |
-
</td>
|
389 |
-
<td>
|
390 |
-
<div class="eael-checkbox">
|
391 |
-
<p class="title"><?php _e( 'Filterable Gallery', 'essential-addons-elementor' ) ?></p>
|
392 |
-
<p class="desc"><?php _e( 'Activate / Deactivate Filterable Gallery', 'essential-addons-elementor' ); ?></p>
|
393 |
-
<input type="checkbox" id="filter-gallery" name="filter-gallery" <?php checked( 1, $this->eael_get_settings['filter-gallery'], true ); ?> >
|
394 |
-
<label for="filter-gallery"></label>
|
395 |
-
</div>
|
396 |
-
</td>
|
397 |
-
</tr>
|
398 |
-
</table>
|
399 |
</div>
|
400 |
<div class="col-full">
|
401 |
<div class="premium-elements-title">
|
402 |
<img src="<?php echo plugins_url( '/', __FILE__ ).'assets/images/lock-icon.png'; ?>">
|
403 |
<h4 class="section-title">Premium Elements</h4>
|
404 |
</div>
|
405 |
-
<
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
<td>
|
506 |
-
<div class="eael-checkbox">
|
507 |
-
<p class="title">
|
508 |
-
<?php _e( 'Interactive Cards', 'essential-addons-elementor' ) ?>
|
509 |
-
</p>
|
510 |
-
<p class="desc">
|
511 |
-
<?php _e( 'Activate / Deactivate Interactive Cards', 'essential-addons-elementor' ); ?>
|
512 |
-
</p>
|
513 |
-
<input type="checkbox" id="interactive-cards" name="interactive-cards" disabled>
|
514 |
-
<label for="interactive-cards" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
515 |
-
</div>
|
516 |
-
</td>
|
517 |
-
<td>
|
518 |
-
<div class="eael-checkbox">
|
519 |
-
<p class="title">
|
520 |
-
<?php _e( 'Content Timeline', 'essential-addons-elementor' ) ?>
|
521 |
-
</p>
|
522 |
-
<p class="desc">
|
523 |
-
<?php _e( 'Activate / Deactivate Content Timeline', 'essential-addons-elementor' ); ?>
|
524 |
-
</p>
|
525 |
-
<input type="checkbox" id="content-timeline" name="content-timeline" disabled>
|
526 |
-
<label for="content-timeline" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
527 |
-
</div>
|
528 |
-
</td>
|
529 |
-
</tr>
|
530 |
-
<tr>
|
531 |
-
<td>
|
532 |
-
<div class="eael-checkbox">
|
533 |
-
<p class="title">
|
534 |
-
<?php _e( 'Data Table', 'essential-addons-elementor' ) ?>
|
535 |
-
</p>
|
536 |
-
<p class="desc">
|
537 |
-
<?php _e( 'Activate / Deactivate Data Table', 'essential-addons-elementor' ); ?>
|
538 |
-
</p>
|
539 |
-
<input type="checkbox" id="data-table" name="data-table" disabled>
|
540 |
-
<label for="data-table" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
541 |
-
</div>
|
542 |
-
</td>
|
543 |
-
<td>
|
544 |
-
<div class="eael-checkbox">
|
545 |
-
<p class="title">
|
546 |
-
<?php _e( 'Twitter Feed Carousel', 'essential-addons-elementor' ) ?>
|
547 |
-
</p>
|
548 |
-
<p class="desc">
|
549 |
-
<?php _e( 'Activate / Deactivate Twitter Feed Carousel', 'essential-addons-elementor' ); ?>
|
550 |
-
</p>
|
551 |
-
<input type="checkbox" id="twitter-feed-carousel" name="twitter-feed-carousel" disabled>
|
552 |
-
<label for="twitter-feed-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
553 |
-
</div>
|
554 |
-
</td>
|
555 |
-
<td>
|
556 |
-
<div class="eael-checkbox">
|
557 |
-
<p class="title">
|
558 |
-
<?php _e( 'Facebook Feed Carousel', 'essential-addons-elementor' ) ?>
|
559 |
-
</p>
|
560 |
-
<p class="desc">
|
561 |
-
<?php _e( 'Activate / Deactivate Facebook Feed Carousel', 'essential-addons-elementor' ); ?>
|
562 |
-
</p>
|
563 |
-
<input type="checkbox" id="facebook-feed-carousel" name="facebook-feed-carousel" disabled>
|
564 |
-
<label for="facebook-feed-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
565 |
-
</div>
|
566 |
-
</td>
|
567 |
-
<td>
|
568 |
-
<div class="eael-checkbox">
|
569 |
-
<p class="title">
|
570 |
-
<?php _e( 'Dynamic Filter Gallery', 'essential-addons-elementor' ) ?>
|
571 |
-
</p>
|
572 |
-
<p class="desc">
|
573 |
-
<?php _e( 'Activate / Deactivate Dynamic Filter Gallery', 'essential-addons-elementor' ); ?>
|
574 |
-
</p>
|
575 |
-
<input type="checkbox" id="dynamic-filter-gallery" name="dynamic-filter-gallery" disabled>
|
576 |
-
<label for="dynamic-filter-gallery" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
577 |
-
</div>
|
578 |
-
</td>
|
579 |
-
</tr>
|
580 |
-
</table>
|
581 |
<div class="eael-save-btn-wrap">
|
582 |
<input type="submit" value="Save settings" class="button eael-btn js-eael-settings-save"/>
|
583 |
</div>
|
@@ -664,6 +523,8 @@ class Eael_Admin_Settings {
|
|
664 |
'facebook-feed' => intval( $settings['facebook-feed'] ? 1 : 0 ),
|
665 |
'data-table' => intval( $settings['data-table'] ? 1 : 0 ),
|
666 |
'filter-gallery' => intval( $settings['filter-gallery'] ? 1 : 0 ),
|
|
|
|
|
667 |
'wisdom_registered_setting' => 1,
|
668 |
);
|
669 |
update_option( 'eael_save_settings', $this->eael_settings );
|
14 |
* @var array
|
15 |
* @since 2.3.0
|
16 |
*/
|
17 |
+
public $eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'img-comparison', 'instagram-gallery', 'interactive-promo', 'lightbox', 'post-block', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonial-slider', 'testimonials', 'testimonials', 'weforms', 'static-product', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'flip-carousel', 'interactive-cards', 'ninja-form', 'gravity-form', 'caldera-form', 'wisdom_registered_setting', 'twitter-feed', 'facebook-feed', 'twitter-feed-carousel', 'facebook-feed-carousel', 'data-table', 'filter-gallery', 'dynamic-filter-gallery', 'img-accordion', 'content-ticker' ];
|
18 |
|
19 |
/**
|
20 |
* Will Contain All Components Default Values
|
101 |
$js_info = array(
|
102 |
'ajaxurl' => admin_url( 'admin-ajax.php' )
|
103 |
);
|
104 |
+
wp_localize_script( 'essential_addons_elementor-admin-js', 'js_eael_lite_settings', $js_info );
|
105 |
|
106 |
/**
|
107 |
* This section will handle the "eael_save_settings" array. If any new settings options is added
|
208 |
<div class="row">
|
209 |
<div class="col-full">
|
210 |
<p class="eael-elements-control-notice">You can disable the elements you are not using on your site. That will disable all associated assets of those widgets to improve your site loading.</p>
|
211 |
+
<div class="eael-checkbox-container">
|
212 |
+
<div class="eael-checkbox">
|
213 |
+
<input type="checkbox" id="contact-form-7" name="contact-form-7" <?php checked( 1, $this->eael_get_settings['contact-form-7'], true ); ?> >
|
214 |
+
<label for="contact-form-7"></label>
|
215 |
+
<p class="eael-el-title"><?php _e( 'Contact Form 7', 'essential-addons-elementor' ); ?></p>
|
216 |
+
</div>
|
217 |
+
<div class="eael-checkbox">
|
218 |
+
<input type="checkbox" id="count-down" name="count-down" <?php checked( 1, $this->eael_get_settings['count-down'], true ); ?> >
|
219 |
+
<label for="count-down"></label>
|
220 |
+
|
221 |
+
<p class="eael-el-title"><?php _e( 'Count Down', 'essential-addons-elementor' ); ?></p>
|
222 |
+
</div>
|
223 |
+
<div class="eael-checkbox">
|
224 |
+
<input type="checkbox" id="creative-btn" name="creative-btn" <?php checked( 1, $this->eael_get_settings['creative-btn'], true ); ?> >
|
225 |
+
<label for="creative-btn"></label>
|
226 |
+
<p class="eael-el-title"><?php _e( 'Creative Button', 'essential-addons-elementor' ); ?></p>
|
227 |
+
</div>
|
228 |
+
<div class="eael-checkbox">
|
229 |
+
<input type="checkbox" id="fancy-text" name="fancy-text" <?php checked( 1, $this->eael_get_settings['fancy-text'], true ); ?> >
|
230 |
+
<label for="fancy-text"></label>
|
231 |
+
<p class="eael-el-title"><?php _e( 'Fancy Text', 'essential-addons-elementor' ); ?></p>
|
232 |
+
</div>
|
233 |
+
<div class="eael-checkbox">
|
234 |
+
<input type="checkbox" id="post-grid" name="post-grid" <?php checked( 1, $this->eael_get_settings['post-grid'], true ); ?> >
|
235 |
+
<label for="post-grid"></label>
|
236 |
+
<p class="eael-el-title"><?php _e( 'Post Grid', 'essential-addons-elementor' ); ?></p>
|
237 |
+
</div>
|
238 |
+
<div class="eael-checkbox">
|
239 |
+
<input type="checkbox" id="post-timeline" name="post-timeline" <?php checked( 1, $this->eael_get_settings['post-timeline'], true ); ?> >
|
240 |
+
<label for="post-timeline"></label>
|
241 |
+
<p class="eael-el-title"><?php _e( 'Post Timeline', 'essential-addons-elementor' ) ?></p>
|
242 |
+
</div>
|
243 |
+
<div class="eael-checkbox">
|
244 |
+
<input type="checkbox" id="product-grid" name="product-grid" <?php checked( 1, $this->eael_get_settings['product-grid'], true ); ?> >
|
245 |
+
<label for="product-grid"></label>
|
246 |
+
<p class="eael-el-title"><?php _e( 'Product Grid', 'essential-addons-elementor' ) ?></p>
|
247 |
+
</div>
|
248 |
+
<div class="eael-checkbox">
|
249 |
+
<input type="checkbox" id="team-members" name="team-members" <?php checked( 1, $this->eael_get_settings['team-members'], true ); ?> >
|
250 |
+
<label for="team-members"></label>
|
251 |
+
<p class="eael-el-title"><?php _e( 'Team Member', 'essential-addons-elementor' ) ?></p>
|
252 |
+
</div>
|
253 |
+
<div class="eael-checkbox">
|
254 |
+
<input type="checkbox" id="testimonials" name="testimonials" <?php checked( 1, $this->eael_get_settings['testimonials'], true ); ?> >
|
255 |
+
<label for="testimonials"></label>
|
256 |
+
<p class="eael-el-title"><?php _e( 'Testimonials', 'essential-addons-elementor' ) ?></p>
|
257 |
+
</div>
|
258 |
+
<div class="eael-checkbox">
|
259 |
+
<input type="checkbox" id="weforms" name="weforms" <?php checked( 1, $this->eael_get_settings['weforms'], true ); ?> >
|
260 |
+
<label for="weforms"></label>
|
261 |
+
<p class="eael-el-title"><?php _e( 'weForms', 'essential-addons-elementor' ) ?></p>
|
262 |
+
</div>
|
263 |
+
<div class="eael-checkbox">
|
264 |
+
<input type="checkbox" id="call-to-action" name="call-to-action" <?php checked( 1, $this->eael_get_settings['call-to-action'], true ); ?> >
|
265 |
+
<label for="call-to-action"></label>
|
266 |
+
<p class="eael-el-title"><?php _e( 'Call To Action', 'essential-addons-elementor' ) ?></p>
|
267 |
+
</div>
|
268 |
+
<div class="eael-checkbox">
|
269 |
+
<input type="checkbox" id="flip-box" name="flip-box" <?php checked( 1, $this->eael_get_settings['flip-box'], true ); ?> >
|
270 |
+
<label for="flip-box"></label>
|
271 |
+
<p class="eael-el-title"><?php _e( 'Flip Box', 'essential-addons-elementor' ) ?></p>
|
272 |
+
</div>
|
273 |
+
<div class="eael-checkbox">
|
274 |
+
<input type="checkbox" id="info-box" name="info-box" <?php checked( 1, $this->eael_get_settings['info-box'], true ); ?> >
|
275 |
+
<label for="info-box"></label>
|
276 |
+
<p class="eael-el-title"><?php _e( 'Info Box', 'essential-addons-elementor' ) ?></p>
|
277 |
+
</div>
|
278 |
+
<div class="eael-checkbox">
|
279 |
+
<input type="checkbox" id="dual-header" name="dual-header" <?php checked( 1, $this->eael_get_settings['dual-header'], true ); ?> >
|
280 |
+
<label for="dual-header"></label>
|
281 |
+
<p class="eael-el-title"><?php _e( 'Dual Color Header', 'essential-addons-elementor' ) ?></p>
|
282 |
+
</div>
|
283 |
+
<div class="eael-checkbox">
|
284 |
+
<input type="checkbox" id="price-table" name="price-table" <?php checked( 1, $this->eael_get_settings['price-table'], true ); ?> >
|
285 |
+
<label for="price-table"></label>
|
286 |
+
<p class="eael-el-title"><?php _e( 'Pricing Table', 'essential-addons-elementor' ) ?></p>
|
287 |
+
</div>
|
288 |
+
<div class="eael-checkbox">
|
289 |
+
<input type="checkbox" id="ninja-form" name="ninja-form" <?php checked( 1, $this->eael_get_settings['ninja-form'], true ); ?> >
|
290 |
+
<label for="ninja-form"></label>
|
291 |
+
<p class="eael-el-title"><?php _e( 'Ninja Form', 'essential-addons-elementor' ) ?></p>
|
292 |
+
</div>
|
293 |
+
<div class="eael-checkbox">
|
294 |
+
<input type="checkbox" id="gravity-form" name="gravity-form" <?php checked( 1, $this->eael_get_settings['gravity-form'], true ); ?> >
|
295 |
+
<label for="gravity-form"></label>
|
296 |
+
<p class="eael-el-title"><?php _e( 'Gravity Form', 'essential-addons-elementor' ) ?></p>
|
297 |
+
</div>
|
298 |
+
<div class="eael-checkbox">
|
299 |
+
<input type="checkbox" id="caldera-form" name="caldera-form" <?php checked( 1, $this->eael_get_settings['caldera-form'], true ); ?> >
|
300 |
+
<label for="caldera-form"></label>
|
301 |
+
<p class="eael-el-title"><?php _e( 'Caldera Form', 'essential-addons-elementor' ) ?></p>
|
302 |
+
</div>
|
303 |
+
<div class="eael-checkbox">
|
304 |
+
<input type="checkbox" id="twitter-feed" name="twitter-feed" <?php checked( 1, $this->eael_get_settings['twitter-feed'], true ); ?> >
|
305 |
+
<label for="twitter-feed"></label>
|
306 |
+
<p class="eael-el-title"><?php _e( 'Twitter Feed', 'essential-addons-elementor' ) ?></p>
|
307 |
+
</div>
|
308 |
+
<div class="eael-checkbox">
|
309 |
+
<input type="checkbox" id="facebook-feed" name="facebook-feed" <?php checked( 1, $this->eael_get_settings['facebook-feed'], true ); ?> >
|
310 |
+
<label for="facebook-feed"></label>
|
311 |
+
<p class="eael-el-title"><?php _e( 'Facebook Feed', 'essential-addons-elementor' ) ?></p>
|
312 |
+
</div>
|
313 |
+
<div class="eael-checkbox">
|
314 |
+
<input type="checkbox" id="filter-gallery" name="filter-gallery" <?php checked( 1, $this->eael_get_settings['filter-gallery'], true ); ?> >
|
315 |
+
<label for="filter-gallery"></label>
|
316 |
+
<p class="eael-el-title"><?php _e( 'Filterable Gallery', 'essential-addons-elementor' ) ?></p>
|
317 |
+
</div>
|
318 |
+
<div class="eael-checkbox">
|
319 |
+
<input type="checkbox" id="data-table" name="data-table" <?php checked( 1, $this->eael_get_settings['data-table'], true ); ?> >
|
320 |
+
<label for="data-table"></label>
|
321 |
+
<p class="eael-el-title"><?php _e( 'Data Table', 'essential-addons-elementor' ) ?></p>
|
322 |
+
</div>
|
323 |
+
<div class="eael-checkbox">
|
324 |
+
<input type="checkbox" id="image-accordion" name="image-accordion" <?php checked( 1, $this->eael_get_settings['image-accordion'], true ); ?> >
|
325 |
+
<label for="image-accordion"></label>
|
326 |
+
<p class="eael-el-title"><?php _e( 'Image Accordion', 'essential-addons-elementor' ) ?></p>
|
327 |
+
</div>
|
328 |
+
<div class="eael-checkbox">
|
329 |
+
<input type="checkbox" id="content-ticker" name="content-ticker" <?php checked( 1, $this->eael_get_settings['content-ticker'], true ); ?> >
|
330 |
+
<label for="content-ticker"></label>
|
331 |
+
<p class="eael-el-title"><?php _e( 'Content Ticker', 'essential-addons-elementor' ) ?></p>
|
332 |
+
</div>
|
333 |
+
</div><!--./checkbox-container-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
</div>
|
335 |
<div class="col-full">
|
336 |
<div class="premium-elements-title">
|
337 |
<img src="<?php echo plugins_url( '/', __FILE__ ).'assets/images/lock-icon.png'; ?>">
|
338 |
<h4 class="section-title">Premium Elements</h4>
|
339 |
</div>
|
340 |
+
<div class="eael-checkbox-container">
|
341 |
+
<div class="eael-checkbox">
|
342 |
+
<input type="checkbox" id="img-comparison" name="img-comparison" disabled>
|
343 |
+
<label for="img-comparison" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
344 |
+
<p class="eael-el-title">
|
345 |
+
<?php _e( 'Image Comparison', 'essential-addons-elementor' ); ?>
|
346 |
+
</p>
|
347 |
+
</div>
|
348 |
+
<div class="eael-checkbox">
|
349 |
+
<input type="checkbox" id="instagram-gallery" name="instagram-gallery" disabled>
|
350 |
+
<label for="instagram-gallery" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
351 |
+
<p class="eael-el-title">
|
352 |
+
<?php _e( 'Instagram Gallery', 'essential-addons-elementor' ); ?>
|
353 |
+
</p>
|
354 |
+
</div>
|
355 |
+
<div class="eael-checkbox">
|
356 |
+
<input type="checkbox" id="interactive-promo" name="interactive-promo" disabled>
|
357 |
+
<label for="interactive-promo" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
358 |
+
<p class="eael-el-title">
|
359 |
+
<?php _e( 'Interactive Promo', 'essential-addons-elementor' ); ?>
|
360 |
+
</p>
|
361 |
+
</div>
|
362 |
+
<div class="eael-checkbox">
|
363 |
+
<input type="checkbox" id="lightbox" name="lightbox" disabled>
|
364 |
+
<label for="lightbox" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
365 |
+
<p class="eael-el-title">
|
366 |
+
<?php _e( 'Lightbox', 'essential-addons-elementor' ); ?>
|
367 |
+
</p>
|
368 |
+
</div>
|
369 |
+
<div class="eael-checkbox">
|
370 |
+
<input type="checkbox" id="post-block" name="post-block" disabled>
|
371 |
+
<label for="post-block" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
372 |
+
<p class="eael-el-title">
|
373 |
+
<?php _e( 'Post Block', 'essential-addons-elementor' ); ?>
|
374 |
+
</p>
|
375 |
+
</div>
|
376 |
+
<div class="eael-checkbox">
|
377 |
+
<input type="checkbox" id="testimonial-slider" name="testimonial-slider" disabled>
|
378 |
+
<label for="testimonial-slider" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
379 |
+
<p class="eael-el-title">
|
380 |
+
<?php _e( 'Testimonial Slider', 'essential-addons-elementor' ) ?>
|
381 |
+
</p>
|
382 |
+
</div>
|
383 |
+
<div class="eael-checkbox">
|
384 |
+
<input type="checkbox" id="static-product" name="static-product" disabled>
|
385 |
+
<label for="static-product" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
386 |
+
<p class="eael-el-title">
|
387 |
+
<?php _e( 'Static Product', 'essential-addons-elementor' ) ?>
|
388 |
+
</p>
|
389 |
+
</div>
|
390 |
+
<div class="eael-checkbox">
|
391 |
+
<input type="checkbox" id="flip-carousel" name="flip-carousel" disabled>
|
392 |
+
<label for="flip-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
393 |
+
<p class="eael-el-title">
|
394 |
+
<?php _e( 'Flip Carousel', 'essential-addons-elementor' ) ?>
|
395 |
+
</p>
|
396 |
+
</div>
|
397 |
+
<div class="eael-checkbox">
|
398 |
+
<input type="checkbox" id="interactive-cards" name="interactive-cards" disabled>
|
399 |
+
<label for="interactive-cards" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
400 |
+
<p class="eael-el-title">
|
401 |
+
<?php _e( 'Interactive Cards', 'essential-addons-elementor' ) ?>
|
402 |
+
</p>
|
403 |
+
</div>
|
404 |
+
<div class="eael-checkbox">
|
405 |
+
<input type="checkbox" id="content-timeline" name="content-timeline" disabled>
|
406 |
+
<label for="content-timeline" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
407 |
+
<p class="eael-el-title">
|
408 |
+
<?php _e( 'Content Timeline', 'essential-addons-elementor' ) ?>
|
409 |
+
</p>
|
410 |
+
</div>
|
411 |
+
<div class="eael-checkbox">
|
412 |
+
<input type="checkbox" id="twitter-feed-carousel" name="twitter-feed-carousel" disabled>
|
413 |
+
<label for="twitter-feed-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
414 |
+
<p class="eael-el-title">
|
415 |
+
<?php _e( 'Twitter Feed Carousel', 'essential-addons-elementor' ) ?>
|
416 |
+
</p>
|
417 |
+
</div>
|
418 |
+
<div class="eael-checkbox">
|
419 |
+
<input type="checkbox" id="facebook-feed-carousel" name="facebook-feed-carousel" disabled>
|
420 |
+
<label for="facebook-feed-carousel" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
421 |
+
<p class="eael-el-title">
|
422 |
+
<?php _e( 'Facebook Feed Carousel', 'essential-addons-elementor' ) ?>
|
423 |
+
</p>
|
424 |
+
</div>
|
425 |
+
<div class="eael-checkbox">
|
426 |
+
<input type="checkbox" id="dynamic-filter-gallery" name="dynamic-filter-gallery" disabled>
|
427 |
+
<label for="dynamic-filter-gallery" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
428 |
+
<p class="eael-el-title">
|
429 |
+
<?php _e( 'Dynamic Filter Gallery', 'essential-addons-elementor' ) ?>
|
430 |
+
</p>
|
431 |
+
</div>
|
432 |
+
<div class="eael-checkbox">
|
433 |
+
<input type="checkbox" id="post-list" name="dynamic-filter-gallery" disabled>
|
434 |
+
<label for="post-list" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
|
435 |
+
<p class="eael-el-title">
|
436 |
+
<?php _e( 'Post List', 'essential-addons-elementor' ) ?>
|
437 |
+
</p>
|
438 |
+
</div>
|
439 |
+
</div><!--./checkbox-container-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
<div class="eael-save-btn-wrap">
|
441 |
<input type="submit" value="Save settings" class="button eael-btn js-eael-settings-save"/>
|
442 |
</div>
|
523 |
'facebook-feed' => intval( $settings['facebook-feed'] ? 1 : 0 ),
|
524 |
'data-table' => intval( $settings['data-table'] ? 1 : 0 ),
|
525 |
'filter-gallery' => intval( $settings['filter-gallery'] ? 1 : 0 ),
|
526 |
+
'image-accordion' => intval( $settings['image-accordion'] ? 1 : 0 ),
|
527 |
+
'content-ticker' => intval( $settings['content-ticker'] ? 1 : 0 ),
|
528 |
'wisdom_registered_setting' => 1,
|
529 |
);
|
530 |
update_option( 'eael_save_settings', $this->eael_settings );
|
assets/css/essential-addons-editor.css
CHANGED
@@ -23,6 +23,8 @@
|
|
23 |
.elementor-control-eael_section_countdown_style_pro_alert .elementor-control-title,
|
24 |
.elementor-control-eael_fancy_text_style_pro_alert .elementor-control-title,
|
25 |
.elementor-control-eael_section_data_table_enabled_pro_alert .elementor-control-title,
|
|
|
|
|
26 |
.elementor-control-eael_team_members_preset_pro_alert .elementor-control-title {
|
27 |
color: #f54;
|
28 |
}
|
23 |
.elementor-control-eael_section_countdown_style_pro_alert .elementor-control-title,
|
24 |
.elementor-control-eael_fancy_text_style_pro_alert .elementor-control-title,
|
25 |
.elementor-control-eael_section_data_table_enabled_pro_alert .elementor-control-title,
|
26 |
+
.elementor-control-eael_img_accordion_type_pro_alert .elementor-control-title,
|
27 |
+
.elementor-control-eael_ticker_type_pro_alert .elementor-control-title,
|
28 |
.elementor-control-eael_team_members_preset_pro_alert .elementor-control-title {
|
29 |
color: #f54;
|
30 |
}
|
assets/css/essential-addons-elementor.css
CHANGED
@@ -1709,7 +1709,6 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
1709 |
/* Image/Icon On Top */
|
1710 |
.eael-infobox {}
|
1711 |
.eael-infobox .infobox-icon {
|
1712 |
-
width: 100%;
|
1713 |
height: auto;
|
1714 |
margin-bottom: 30px;
|
1715 |
}
|
@@ -1786,21 +1785,17 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
1786 |
/* Image/Icon On Left */
|
1787 |
.eael-infobox.icon-on-left {
|
1788 |
position: relative;
|
1789 |
-
z-index: 0
|
|
|
1790 |
}
|
1791 |
.eael-infobox.icon-on-left .infobox-icon {
|
1792 |
-
|
1793 |
-
|
1794 |
-
height: 100px;
|
1795 |
-
top: 0px;
|
1796 |
-
left: 0px;
|
1797 |
-
z-index: 0;
|
1798 |
}
|
1799 |
.eael-infobox.icon-on-left .infobox-icon .infobox-icon-wrap {
|
1800 |
background: none;
|
1801 |
border: 0px;
|
1802 |
text-align: left;
|
1803 |
-
width: auto;
|
1804 |
height: auto;
|
1805 |
display: block;
|
1806 |
}
|
@@ -1809,21 +1804,22 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
1809 |
transform: translateY(0%);
|
1810 |
}
|
1811 |
.eael-infobox.icon-on-left .infobox-content {
|
1812 |
-
padding-left:
|
|
|
|
|
|
|
|
|
|
|
1813 |
}
|
1814 |
-
.eael-infobox.icon-on-left .infobox-content .title {}
|
1815 |
/* Image/Icon On Right */
|
1816 |
.eael-infobox.icon-on-right {
|
1817 |
position: relative;
|
1818 |
-
z-index: 0
|
|
|
|
|
1819 |
}
|
1820 |
.eael-infobox.icon-on-right .infobox-icon {
|
1821 |
-
|
1822 |
-
width: 35px;
|
1823 |
-
height: 100px;
|
1824 |
-
top: 0px;
|
1825 |
-
right: 0px;
|
1826 |
-
z-index: 0;
|
1827 |
text-align: right;
|
1828 |
}
|
1829 |
.eael-infobox.icon-on-right .infobox-icon .infobox-icon-wrap {
|
@@ -1839,10 +1835,15 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
|
|
1839 |
transform: translateY(0%);
|
1840 |
}
|
1841 |
.eael-infobox.icon-on-right .infobox-content {
|
1842 |
-
padding-right:
|
1843 |
text-align: right;
|
|
|
|
|
|
|
|
|
|
|
|
|
1844 |
}
|
1845 |
-
.eael-infobox.icon-on-right .infobox-content .title {}
|
1846 |
/* Imgae Circle On Top */
|
1847 |
.eael-infobox-shape-circle .eael-infobox .infobox-icon img {
|
1848 |
border-radius: 50%;
|
@@ -3988,4 +3989,187 @@ img.mfp-img {
|
|
3988 |
/* Magnific Gallery Fix */
|
3989 |
.mfp-wrap ~ div.dialog-widget {
|
3990 |
display: none!important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3991 |
}
|
1709 |
/* Image/Icon On Top */
|
1710 |
.eael-infobox {}
|
1711 |
.eael-infobox .infobox-icon {
|
|
|
1712 |
height: auto;
|
1713 |
margin-bottom: 30px;
|
1714 |
}
|
1785 |
/* Image/Icon On Left */
|
1786 |
.eael-infobox.icon-on-left {
|
1787 |
position: relative;
|
1788 |
+
z-index: 0;
|
1789 |
+
display: flex;
|
1790 |
}
|
1791 |
.eael-infobox.icon-on-left .infobox-icon {
|
1792 |
+
flex: 0 0 auto;
|
1793 |
+
text-align: left;
|
|
|
|
|
|
|
|
|
1794 |
}
|
1795 |
.eael-infobox.icon-on-left .infobox-icon .infobox-icon-wrap {
|
1796 |
background: none;
|
1797 |
border: 0px;
|
1798 |
text-align: left;
|
|
|
1799 |
height: auto;
|
1800 |
display: block;
|
1801 |
}
|
1804 |
transform: translateY(0%);
|
1805 |
}
|
1806 |
.eael-infobox.icon-on-left .infobox-content {
|
1807 |
+
padding-left: 15px;
|
1808 |
+
flex: 1 1 auto;
|
1809 |
+
}
|
1810 |
+
.eael-infobox.icon-on-left .infobox-content .title {
|
1811 |
+
line-height: 1;
|
1812 |
+
margin: 0 0 10px 0;
|
1813 |
}
|
|
|
1814 |
/* Image/Icon On Right */
|
1815 |
.eael-infobox.icon-on-right {
|
1816 |
position: relative;
|
1817 |
+
z-index: 0;
|
1818 |
+
display: flex;
|
1819 |
+
flex-direction: row-reverse;
|
1820 |
}
|
1821 |
.eael-infobox.icon-on-right .infobox-icon {
|
1822 |
+
flex: 0 0 auto;
|
|
|
|
|
|
|
|
|
|
|
1823 |
text-align: right;
|
1824 |
}
|
1825 |
.eael-infobox.icon-on-right .infobox-icon .infobox-icon-wrap {
|
1835 |
transform: translateY(0%);
|
1836 |
}
|
1837 |
.eael-infobox.icon-on-right .infobox-content {
|
1838 |
+
padding-right: 15px;
|
1839 |
text-align: right;
|
1840 |
+
flex: 1 1 auto;
|
1841 |
+
box-sizing: border-box;
|
1842 |
+
}
|
1843 |
+
.eael-infobox.icon-on-right .infobox-content .title {
|
1844 |
+
line-height: 1;
|
1845 |
+
margin: 0 0 10px 0;
|
1846 |
}
|
|
|
1847 |
/* Imgae Circle On Top */
|
1848 |
.eael-infobox-shape-circle .eael-infobox .infobox-icon img {
|
1849 |
border-radius: 50%;
|
3989 |
/* Magnific Gallery Fix */
|
3990 |
.mfp-wrap ~ div.dialog-widget {
|
3991 |
display: none!important;
|
3992 |
+
}
|
3993 |
+
/* Image accordion */
|
3994 |
+
.eael-img-accordion {
|
3995 |
+
display: flex;
|
3996 |
+
height: 50vh;
|
3997 |
+
}
|
3998 |
+
|
3999 |
+
.eael-img-accordion a {
|
4000 |
+
position: relative;
|
4001 |
+
flex: 1;
|
4002 |
+
text-align: center;
|
4003 |
+
text-decoration: none;
|
4004 |
+
color: #fff;
|
4005 |
+
background-size: cover;
|
4006 |
+
background-position: center;
|
4007 |
+
background-repeat: no-repeat;
|
4008 |
+
transition: flex .4s;
|
4009 |
+
}
|
4010 |
+
.eael-img-accordion a:focus{
|
4011 |
+
outline: none;
|
4012 |
+
}
|
4013 |
+
.eael-grow-accordion {
|
4014 |
+
flex: 3;
|
4015 |
+
}
|
4016 |
+
.eael-img-accordion .overlay {
|
4017 |
+
display: flex;
|
4018 |
+
align-items: center;
|
4019 |
+
justify-content: center;
|
4020 |
+
padding: 0 10px;
|
4021 |
+
position: absolute;
|
4022 |
+
top: 0;
|
4023 |
+
right: 0;
|
4024 |
+
bottom: 0;
|
4025 |
+
left: 0;
|
4026 |
+
transition: background-color .4s;
|
4027 |
+
}
|
4028 |
+
.eael-img-accordion a:after {
|
4029 |
+
content: "";
|
4030 |
+
position: absolute;
|
4031 |
+
width: 100%;
|
4032 |
+
height: 100%;
|
4033 |
+
background-color: rgba(0,0,0,0.6);
|
4034 |
+
z-index: 0;
|
4035 |
+
top: 0px;
|
4036 |
+
left: 0px;
|
4037 |
+
bottom: 0px;
|
4038 |
+
right: 0px;
|
4039 |
+
transition: all 0.3s ease-in-out;
|
4040 |
+
}
|
4041 |
+
.eael-img-accordion a:hover::after {
|
4042 |
+
background-color: transparent;
|
4043 |
+
}
|
4044 |
+
.eael-img-accordion a:hover .overlay {
|
4045 |
+
background-color: rgba(0, 0, 0, .5);
|
4046 |
+
}
|
4047 |
+
|
4048 |
+
.eael-img-accordion .overlay-inner * {
|
4049 |
+
visibility: hidden;
|
4050 |
+
opacity: 0;
|
4051 |
+
transform-style: preserve-3d;
|
4052 |
+
}
|
4053 |
+
|
4054 |
+
.eael-img-accordion .overlay h2 {
|
4055 |
+
color: #fff;
|
4056 |
+
transform: translate3d(0, -60px, 0);
|
4057 |
+
}
|
4058 |
+
|
4059 |
+
.eael-img-accordion .overlay p {
|
4060 |
+
color: #fff;
|
4061 |
+
transform: translate3d(0, 60px, 0);
|
4062 |
+
}
|
4063 |
+
.eael-img-accordion .overlay-inner-show * {
|
4064 |
+
opacity: 1;
|
4065 |
+
visibility: visible;
|
4066 |
+
transform: none !important;
|
4067 |
+
transition: all .3s .3s;
|
4068 |
+
}
|
4069 |
+
|
4070 |
+
@media screen and (max-width: 800px) {
|
4071 |
+
body {
|
4072 |
+
font-size: 1rem;
|
4073 |
+
line-height: 1.25;
|
4074 |
+
}
|
4075 |
+
|
4076 |
+
.eael-img-accordion {
|
4077 |
+
flex-direction: column;
|
4078 |
+
}
|
4079 |
+
|
4080 |
+
.eael-img-accordion a:hover {
|
4081 |
+
flex: 1;
|
4082 |
+
}
|
4083 |
+
|
4084 |
+
.eael-img-accordion a:hover .overlay {
|
4085 |
+
background-color: transparent;
|
4086 |
+
}
|
4087 |
+
|
4088 |
+
.eael-img-accordion .overlay h2,
|
4089 |
+
.eael-img-accordion .overlay p {
|
4090 |
+
opacity: 1;
|
4091 |
+
visibility: visible;
|
4092 |
+
transform: none;
|
4093 |
+
}
|
4094 |
+
}
|
4095 |
+
/* Content Ticker */
|
4096 |
+
.eael-ticker-wrap {
|
4097 |
+
display: flex;
|
4098 |
+
flex-flow: row wrap;
|
4099 |
+
position: relative;
|
4100 |
+
z-index: 0;
|
4101 |
+
justify-content: space-between;
|
4102 |
+
align-items: center;
|
4103 |
+
padding: 5px;
|
4104 |
+
}
|
4105 |
+
.eael-ticker-wrap .ticker-badge {
|
4106 |
+
flex: 0 0 auto;
|
4107 |
+
margin-right: 10px;
|
4108 |
+
border-radius: 0;
|
4109 |
+
position: relative;
|
4110 |
+
z-index: 0;
|
4111 |
+
}
|
4112 |
+
.eael-ticker-wrap .ticker-badge span {
|
4113 |
+
display: inline-block;
|
4114 |
+
width: 100%;
|
4115 |
+
padding: 10px 15px;
|
4116 |
+
font-size: 13px;
|
4117 |
+
font-weight: 500;
|
4118 |
+
line-height: 1;
|
4119 |
+
text-align: center;
|
4120 |
+
text-transform: uppercase;
|
4121 |
+
}
|
4122 |
+
.eael-ticker {
|
4123 |
+
flex: 1 1 auto;
|
4124 |
+
display: flex;
|
4125 |
+
align-items: center;
|
4126 |
+
position: relative;
|
4127 |
+
z-index: 0;
|
4128 |
+
}
|
4129 |
+
.eael-ticker-wrap .eael-ticker .ticker-content {
|
4130 |
+
font-size: 14px;
|
4131 |
+
transition: all 0.3s ease-in-out;
|
4132 |
+
}
|
4133 |
+
.eael-ticker-wrap .slick-slider {
|
4134 |
+
width: 70%;
|
4135 |
+
}
|
4136 |
+
.eael-ticker-wrap .slick-slider .slick-track {
|
4137 |
+
height: 100%;
|
4138 |
+
line-height: 3;
|
4139 |
+
}
|
4140 |
+
.eael-ticker-wrap .slick-slider .eael-slick-prev {
|
4141 |
+
position: absolute;
|
4142 |
+
top: 50%;
|
4143 |
+
right: 32px;
|
4144 |
+
z-index: 10;
|
4145 |
+
transform: translate( 0, -50% );
|
4146 |
+
}
|
4147 |
+
.eael-ticker-wrap .slick-slider .eael-slick-next {
|
4148 |
+
position: absolute;
|
4149 |
+
top: 50%;
|
4150 |
+
right: 0;
|
4151 |
+
z-index: 10;
|
4152 |
+
transform: translate( 0, -50% );
|
4153 |
+
}
|
4154 |
+
.eael-ticker-wrap .slick-slider .eael-slick-prev,
|
4155 |
+
.eael-ticker-wrap .slick-slider .eael-slick-next {
|
4156 |
+
border: 1px solid #222;
|
4157 |
+
color: #222;
|
4158 |
+
border-radius: 0;
|
4159 |
+
text-align: center;
|
4160 |
+
line-height: 1;
|
4161 |
+
padding: 6px 10px;
|
4162 |
+
font-size: 14px;
|
4163 |
+
transition: all 0.3s ease-in-out;
|
4164 |
+
}
|
4165 |
+
.eael-ticker-wrap .slick-slider .eael-slick-prev:focus,
|
4166 |
+
.eael-ticker-wrap .slick-slider .eael-slick-next:focus {
|
4167 |
+
outline: 0;
|
4168 |
+
}
|
4169 |
+
.eael-ticker-wrap .slick-slider .eael-slick-prev:hover,
|
4170 |
+
.eael-ticker-wrap .slick-slider .eael-slick-next:hover {
|
4171 |
+
background-color: #f9f9f9;
|
4172 |
+
}
|
4173 |
+
.eael-ticker-wrap .eael-typed-strings {
|
4174 |
+
padding: 0px 0px 0px 15px;
|
4175 |
}
|
assets/img/accordion.png
ADDED
Binary file
|
assets/slick/ajax-loader.gif
ADDED
Binary file
|
assets/slick/fonts/slick.eot
ADDED
Binary file
|
assets/slick/fonts/slick.svg
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata>Generated by Fontastic.me</metadata>
|
5 |
+
<defs>
|
6 |
+
<font id="slick" horiz-adv-x="512">
|
7 |
+
<font-face font-family="slick" units-per-em="512" ascent="480" descent="-32"/>
|
8 |
+
<missing-glyph horiz-adv-x="512" />
|
9 |
+
|
10 |
+
<glyph unicode="→" d="M241 113l130 130c4 4 6 8 6 13 0 5-2 9-6 13l-130 130c-3 3-7 5-12 5-5 0-10-2-13-5l-29-30c-4-3-6-7-6-12 0-5 2-10 6-13l87-88-87-88c-4-3-6-8-6-13 0-5 2-9 6-12l29-30c3-3 8-5 13-5 5 0 9 2 12 5z m234 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
|
11 |
+
<glyph unicode="←" d="M296 113l29 30c4 3 6 7 6 12 0 5-2 10-6 13l-87 88 87 88c4 3 6 8 6 13 0 5-2 9-6 12l-29 30c-3 3-8 5-13 5-5 0-9-2-12-5l-130-130c-4-4-6-8-6-13 0-5 2-9 6-13l130-130c3-3 7-5 12-5 5 0 10 2 13 5z m179 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
|
12 |
+
<glyph unicode="•" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
|
13 |
+
<glyph unicode="a" d="M475 439l0-128c0-5-1-9-5-13-4-4-8-5-13-5l-128 0c-8 0-13 3-17 11-3 7-2 14 4 20l40 39c-28 26-62 39-100 39-20 0-39-4-57-11-18-8-33-18-46-32-14-13-24-28-32-46-7-18-11-37-11-57 0-20 4-39 11-57 8-18 18-33 32-46 13-14 28-24 46-32 18-7 37-11 57-11 23 0 44 5 64 15 20 9 38 23 51 42 2 1 4 3 7 3 3 0 5-1 7-3l39-39c2-2 3-3 3-6 0-2-1-4-2-6-21-25-46-45-76-59-29-14-60-20-93-20-30 0-58 5-85 17-27 12-51 27-70 47-20 19-35 43-47 70-12 27-17 55-17 85 0 30 5 58 17 85 12 27 27 51 47 70 19 20 43 35 70 47 27 12 55 17 85 17 28 0 55-5 81-15 26-11 50-26 70-45l37 37c6 6 12 7 20 4 8-4 11-9 11-17z"/>
|
14 |
+
</font></defs></svg>
|
assets/slick/fonts/slick.ttf
ADDED
Binary file
|
assets/slick/fonts/slick.woff
ADDED
Binary file
|
assets/slick/slick.css
ADDED
@@ -0,0 +1,323 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Slider */
|
2 |
+
.slick-slider
|
3 |
+
{
|
4 |
+
position: relative;
|
5 |
+
|
6 |
+
display: block;
|
7 |
+
box-sizing: border-box;
|
8 |
+
|
9 |
+
-webkit-user-select: none;
|
10 |
+
-moz-user-select: none;
|
11 |
+
-ms-user-select: none;
|
12 |
+
user-select: none;
|
13 |
+
|
14 |
+
-webkit-touch-callout: none;
|
15 |
+
-khtml-user-select: none;
|
16 |
+
-ms-touch-action: pan-y;
|
17 |
+
touch-action: pan-y;
|
18 |
+
-webkit-tap-highlight-color: transparent;
|
19 |
+
}
|
20 |
+
|
21 |
+
.slick-list
|
22 |
+
{
|
23 |
+
position: relative;
|
24 |
+
|
25 |
+
display: block;
|
26 |
+
overflow: hidden;
|
27 |
+
|
28 |
+
margin: 0;
|
29 |
+
padding: 0;
|
30 |
+
}
|
31 |
+
.slick-list:focus
|
32 |
+
{
|
33 |
+
outline: none;
|
34 |
+
}
|
35 |
+
.slick-list.dragging
|
36 |
+
{
|
37 |
+
cursor: pointer;
|
38 |
+
cursor: hand;
|
39 |
+
}
|
40 |
+
|
41 |
+
.slick-slider .slick-track,
|
42 |
+
.slick-slider .slick-list
|
43 |
+
{
|
44 |
+
-webkit-transform: translate3d(0, 0, 0);
|
45 |
+
-moz-transform: translate3d(0, 0, 0);
|
46 |
+
-ms-transform: translate3d(0, 0, 0);
|
47 |
+
-o-transform: translate3d(0, 0, 0);
|
48 |
+
transform: translate3d(0, 0, 0);
|
49 |
+
}
|
50 |
+
|
51 |
+
.slick-track
|
52 |
+
{
|
53 |
+
position: relative;
|
54 |
+
top: 0;
|
55 |
+
left: 0;
|
56 |
+
|
57 |
+
display: block;
|
58 |
+
}
|
59 |
+
.slick-track:before,
|
60 |
+
.slick-track:after
|
61 |
+
{
|
62 |
+
display: table;
|
63 |
+
|
64 |
+
content: '';
|
65 |
+
}
|
66 |
+
.slick-track:after
|
67 |
+
{
|
68 |
+
clear: both;
|
69 |
+
}
|
70 |
+
.slick-loading .slick-track
|
71 |
+
{
|
72 |
+
visibility: hidden;
|
73 |
+
}
|
74 |
+
|
75 |
+
.slick-slide
|
76 |
+
{
|
77 |
+
display: none;
|
78 |
+
float: left;
|
79 |
+
|
80 |
+
height: 100%;
|
81 |
+
min-height: 1px;
|
82 |
+
}
|
83 |
+
[dir='rtl'] .slick-slide
|
84 |
+
{
|
85 |
+
float: right;
|
86 |
+
}
|
87 |
+
.slick-slide img
|
88 |
+
{
|
89 |
+
display: block;
|
90 |
+
}
|
91 |
+
.slick-slide.slick-loading img
|
92 |
+
{
|
93 |
+
display: none;
|
94 |
+
}
|
95 |
+
.slick-slide.dragging img
|
96 |
+
{
|
97 |
+
pointer-events: none;
|
98 |
+
}
|
99 |
+
.slick-initialized .slick-slide
|
100 |
+
{
|
101 |
+
display: block;
|
102 |
+
}
|
103 |
+
.slick-loading .slick-slide
|
104 |
+
{
|
105 |
+
visibility: hidden;
|
106 |
+
}
|
107 |
+
.slick-vertical .slick-slide
|
108 |
+
{
|
109 |
+
display: block;
|
110 |
+
|
111 |
+
height: auto;
|
112 |
+
|
113 |
+
border: 1px solid transparent;
|
114 |
+
}
|
115 |
+
.slick-arrow.slick-hidden {
|
116 |
+
display: none;
|
117 |
+
}
|
118 |
+
|
119 |
+
@charset 'UTF-8';
|
120 |
+
/* Slider */
|
121 |
+
.slick-loading .slick-list
|
122 |
+
{
|
123 |
+
background: #fff url('./ajax-loader.gif') center center no-repeat;
|
124 |
+
}
|
125 |
+
|
126 |
+
/* Icons */
|
127 |
+
@font-face
|
128 |
+
{
|
129 |
+
font-family: 'slick';
|
130 |
+
font-weight: normal;
|
131 |
+
font-style: normal;
|
132 |
+
|
133 |
+
src: url('./fonts/slick.eot');
|
134 |
+
src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');
|
135 |
+
}
|
136 |
+
/* Arrows */
|
137 |
+
.slick-prev,
|
138 |
+
.slick-next
|
139 |
+
{
|
140 |
+
font-size: 0;
|
141 |
+
line-height: 0;
|
142 |
+
|
143 |
+
position: absolute;
|
144 |
+
top: 50%;
|
145 |
+
|
146 |
+
display: block;
|
147 |
+
|
148 |
+
width: 20px;
|
149 |
+
height: 20px;
|
150 |
+
padding: 0;
|
151 |
+
-webkit-transform: translate(0, -50%);
|
152 |
+
-ms-transform: translate(0, -50%);
|
153 |
+
transform: translate(0, -50%);
|
154 |
+
|
155 |
+
cursor: pointer;
|
156 |
+
|
157 |
+
color: transparent;
|
158 |
+
border: none;
|
159 |
+
outline: none;
|
160 |
+
background: transparent;
|
161 |
+
}
|
162 |
+
.slick-prev:hover,
|
163 |
+
.slick-prev:focus,
|
164 |
+
.slick-next:hover,
|
165 |
+
.slick-next:focus
|
166 |
+
{
|
167 |
+
color: transparent;
|
168 |
+
outline: none;
|
169 |
+
background: transparent;
|
170 |
+
}
|
171 |
+
.slick-prev:hover:before,
|
172 |
+
.slick-prev:focus:before,
|
173 |
+
.slick-next:hover:before,
|
174 |
+
.slick-next:focus:before
|
175 |
+
{
|
176 |
+
opacity: 1;
|
177 |
+
}
|
178 |
+
.slick-prev.slick-disabled:before,
|
179 |
+
.slick-next.slick-disabled:before
|
180 |
+
{
|
181 |
+
opacity: .25;
|
182 |
+
}
|
183 |
+
|
184 |
+
.slick-prev:before,
|
185 |
+
.slick-next:before
|
186 |
+
{
|
187 |
+
font-family: 'slick';
|
188 |
+
font-size: 20px;
|
189 |
+
line-height: 1;
|
190 |
+
|
191 |
+
opacity: .75;
|
192 |
+
color: white;
|
193 |
+
|
194 |
+
-webkit-font-smoothing: antialiased;
|
195 |
+
-moz-osx-font-smoothing: grayscale;
|
196 |
+
}
|
197 |
+
|
198 |
+
.slick-prev
|
199 |
+
{
|
200 |
+
left: -25px;
|
201 |
+
}
|
202 |
+
[dir='rtl'] .slick-prev
|
203 |
+
{
|
204 |
+
right: -25px;
|
205 |
+
left: auto;
|
206 |
+
}
|
207 |
+
.slick-prev:before
|
208 |
+
{
|
209 |
+
content: '←';
|
210 |
+
}
|
211 |
+
[dir='rtl'] .slick-prev:before
|
212 |
+
{
|
213 |
+
content: '→';
|
214 |
+
}
|
215 |
+
|
216 |
+
.slick-next
|
217 |
+
{
|
218 |
+
right: -25px;
|
219 |
+
}
|
220 |
+
[dir='rtl'] .slick-next
|
221 |
+
{
|
222 |
+
right: auto;
|
223 |
+
left: -25px;
|
224 |
+
}
|
225 |
+
.slick-next:before
|
226 |
+
{
|
227 |
+
content: '→';
|
228 |
+
}
|
229 |
+
[dir='rtl'] .slick-next:before
|
230 |
+
{
|
231 |
+
content: '←';
|
232 |
+
}
|
233 |
+
|
234 |
+
/* Dots */
|
235 |
+
.slick-dotted.slick-slider
|
236 |
+
{
|
237 |
+
margin-bottom: 30px;
|
238 |
+
}
|
239 |
+
|
240 |
+
.slick-dots
|
241 |
+
{
|
242 |
+
position: absolute;
|
243 |
+
bottom: -25px;
|
244 |
+
|
245 |
+
display: block;
|
246 |
+
|
247 |
+
width: 100%;
|
248 |
+
padding: 0;
|
249 |
+
margin: 0;
|
250 |
+
|
251 |
+
list-style: none;
|
252 |
+
|
253 |
+
text-align: center;
|
254 |
+
}
|
255 |
+
.slick-dots li
|
256 |
+
{
|
257 |
+
position: relative;
|
258 |
+
|
259 |
+
display: inline-block;
|
260 |
+
|
261 |
+
width: 20px;
|
262 |
+
height: 20px;
|
263 |
+
margin: 0 5px;
|
264 |
+
padding: 0;
|
265 |
+
|
266 |
+
cursor: pointer;
|
267 |
+
}
|
268 |
+
.slick-dots li button
|
269 |
+
{
|
270 |
+
font-size: 0;
|
271 |
+
line-height: 0;
|
272 |
+
|
273 |
+
display: block;
|
274 |
+
|
275 |
+
width: 20px;
|
276 |
+
height: 20px;
|
277 |
+
padding: 5px;
|
278 |
+
|
279 |
+
cursor: pointer;
|
280 |
+
|
281 |
+
color: transparent;
|
282 |
+
border: 0;
|
283 |
+
outline: none;
|
284 |
+
background: transparent;
|
285 |
+
}
|
286 |
+
.slick-dots li button:hover,
|
287 |
+
.slick-dots li button:focus
|
288 |
+
{
|
289 |
+
outline: none;
|
290 |
+
}
|
291 |
+
.slick-dots li button:hover:before,
|
292 |
+
.slick-dots li button:focus:before
|
293 |
+
{
|
294 |
+
opacity: 1;
|
295 |
+
}
|
296 |
+
.slick-dots li button:before
|
297 |
+
{
|
298 |
+
font-family: 'slick';
|
299 |
+
font-size: 6px;
|
300 |
+
line-height: 20px;
|
301 |
+
|
302 |
+
position: absolute;
|
303 |
+
top: 0;
|
304 |
+
left: 0;
|
305 |
+
|
306 |
+
width: 20px;
|
307 |
+
height: 20px;
|
308 |
+
|
309 |
+
content: '•';
|
310 |
+
text-align: center;
|
311 |
+
|
312 |
+
opacity: .25;
|
313 |
+
color: black;
|
314 |
+
|
315 |
+
-webkit-font-smoothing: antialiased;
|
316 |
+
-moz-osx-font-smoothing: grayscale;
|
317 |
+
}
|
318 |
+
.slick-dots li.slick-active button:before
|
319 |
+
{
|
320 |
+
opacity: .75;
|
321 |
+
color: black;
|
322 |
+
}
|
323 |
+
|
assets/slick/slick.min.js
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
_ _ _ _
|
3 |
+
___| (_) ___| | __ (_)___
|
4 |
+
/ __| | |/ __| |/ / | / __|
|
5 |
+
\__ \ | | (__| < _ | \__ \
|
6 |
+
|___/_|_|\___|_|\_(_)/ |___/
|
7 |
+
|__/
|
8 |
+
|
9 |
+
Version: 1.6.0
|
10 |
+
Author: Ken Wheeler
|
11 |
+
Website: http://kenwheeler.github.io
|
12 |
+
Docs: http://kenwheeler.github.io/slick
|
13 |
+
Repo: http://github.com/kenwheeler/slick
|
14 |
+
Issues: http://github.com/kenwheeler/slick/issues
|
15 |
+
|
16 |
+
*/
|
17 |
+
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?"next":"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=document.createElement("img");e.onload=function(){c.animate({opacity:0},100,function(){c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},e.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=document.createElement("img"),g.onload=function(){e.attr("src",f).removeAttr("data-lazy").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focusHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":"undefined"!=typeof arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,
|
18 |
+
d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}});
|
elements/content-ticker/content-ticker.php
ADDED
@@ -0,0 +1,601 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace Elementor;
|
3 |
+
|
4 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
|
5 |
+
|
6 |
+
class Widget_Eael_Content_Ticker extends Widget_Base {
|
7 |
+
|
8 |
+
public function get_name() {
|
9 |
+
return 'eael-content-ticker';
|
10 |
+
}
|
11 |
+
|
12 |
+
public function get_title() {
|
13 |
+
return esc_html__( 'EA Content Ticker', 'essential-addons-elementor' );
|
14 |
+
}
|
15 |
+
|
16 |
+
public function get_icon() {
|
17 |
+
return 'eicon-call-to-action';
|
18 |
+
}
|
19 |
+
|
20 |
+
public function get_categories() {
|
21 |
+
return [ 'essential-addons-elementor' ];
|
22 |
+
}
|
23 |
+
|
24 |
+
protected function _register_controls() {
|
25 |
+
/**
|
26 |
+
* Content Ticker Content Settings
|
27 |
+
*/
|
28 |
+
$this->start_controls_section(
|
29 |
+
'eael_section_content_ticker_settings',
|
30 |
+
[
|
31 |
+
'label' => esc_html__( 'Ticker Settings', 'essential-addons-elementor' )
|
32 |
+
]
|
33 |
+
);
|
34 |
+
$this->add_control(
|
35 |
+
'eael_ticker_type',
|
36 |
+
[
|
37 |
+
'label' => esc_html__( 'Ticker Type', 'essential-addons-elementor' ),
|
38 |
+
'type' => Controls_Manager::SELECT,
|
39 |
+
'default' => 'dynamic',
|
40 |
+
'label_block' => false,
|
41 |
+
'options' => [
|
42 |
+
'dynamic' => esc_html__( 'Dynamic', 'essential-addons-elementor' ),
|
43 |
+
'custom' => esc_html__( 'Custom', 'essential-addons-elementor' ),
|
44 |
+
],
|
45 |
+
]
|
46 |
+
);
|
47 |
+
|
48 |
+
$this->add_control(
|
49 |
+
'eael_ticker_type_pro_alert',
|
50 |
+
[
|
51 |
+
'label' => esc_html__( 'Only available in pro version!', 'essential-addons-elementor' ),
|
52 |
+
'type' => Controls_Manager::HEADING,
|
53 |
+
'condition' => [
|
54 |
+
'eael_ticker_type' => 'custom',
|
55 |
+
]
|
56 |
+
]
|
57 |
+
);
|
58 |
+
|
59 |
+
$this->add_control(
|
60 |
+
'eael_ticker_tag_text',
|
61 |
+
[
|
62 |
+
'label' => esc_html__( 'Tag Text', 'essential-addons-elementor' ),
|
63 |
+
'type' => Controls_Manager::TEXT,
|
64 |
+
'label_block' => false,
|
65 |
+
'default' => esc_html__( 'Trending Today', 'essential-addons-elementor' ),
|
66 |
+
]
|
67 |
+
);
|
68 |
+
$this->add_control(
|
69 |
+
'eael_ticker_autoplay',
|
70 |
+
[
|
71 |
+
'label' => esc_html__( 'Autoplay', 'essential-addons-elementor' ),
|
72 |
+
'type' => Controls_Manager::SWITCHER,
|
73 |
+
'default' => 'true',
|
74 |
+
'label_on' => __( 'Yes', 'essential-addons-elementor' ),
|
75 |
+
'label_off' => __( 'No', 'essential-addons-elementor' ),
|
76 |
+
'return_value' => 'true',
|
77 |
+
]
|
78 |
+
);
|
79 |
+
$this->add_control(
|
80 |
+
'eael_ticker_autoplay_speed',
|
81 |
+
[
|
82 |
+
'label' => esc_html__( 'Autoplay Speed(ms)', 'essential-addons-elementor' ),
|
83 |
+
'type' => Controls_Manager::TEXT,
|
84 |
+
'label_block' => false,
|
85 |
+
'default' => esc_html__( '3000', 'essential-addons-elementor' ),
|
86 |
+
]
|
87 |
+
);
|
88 |
+
$this->add_control(
|
89 |
+
'eael_ticker_slide_speed',
|
90 |
+
[
|
91 |
+
'label' => esc_html__( 'Slide Speed(ms)', 'essential-addons-elementor' ),
|
92 |
+
'type' => Controls_Manager::TEXT,
|
93 |
+
'label_block' => false,
|
94 |
+
'default' => esc_html__( '300', 'essential-addons-elementor' ),
|
95 |
+
]
|
96 |
+
);
|
97 |
+
$this->add_control(
|
98 |
+
'eael_ticker_arrow',
|
99 |
+
[
|
100 |
+
'label' => esc_html__( 'Show Nav Arrow', 'essential-addons-elementor' ),
|
101 |
+
'type' => Controls_Manager::SWITCHER,
|
102 |
+
'default' => 'true',
|
103 |
+
'label_on' => __( 'Yes', 'essential-addons-elementor' ),
|
104 |
+
'label_off' => __( 'No', 'essential-addons-elementor' ),
|
105 |
+
'return_value' => 'true',
|
106 |
+
]
|
107 |
+
);
|
108 |
+
$this->add_control(
|
109 |
+
'eael_ticker_pause_on_hover',
|
110 |
+
[
|
111 |
+
'label' => esc_html__( 'Pause On Hover', 'essential-addons-elementor' ),
|
112 |
+
'type' => Controls_Manager::SWITCHER,
|
113 |
+
'default' => 'true',
|
114 |
+
'label_on' => __( 'Yes', 'essential-addons-elementor' ),
|
115 |
+
'label_off' => __( 'No', 'essential-addons-elementor' ),
|
116 |
+
'return_value' => 'true',
|
117 |
+
]
|
118 |
+
);
|
119 |
+
$this->add_control(
|
120 |
+
'eael_ticker_fade',
|
121 |
+
[
|
122 |
+
'label' => esc_html__( 'Fade Effect', 'essential-addons-elementor' ),
|
123 |
+
'type' => Controls_Manager::SWITCHER,
|
124 |
+
'default' => 'true',
|
125 |
+
'label_on' => __( 'Yes', 'essential-addons-elementor' ),
|
126 |
+
'label_off' => __( 'No', 'essential-addons-elementor' ),
|
127 |
+
'return_value' => 'true',
|
128 |
+
]
|
129 |
+
);
|
130 |
+
$this->add_control(
|
131 |
+
'eael_ticker_easing',
|
132 |
+
[
|
133 |
+
'label' => esc_html__( 'Easing', 'essential-addons-elementor' ),
|
134 |
+
'type' => Controls_Manager::SELECT,
|
135 |
+
'default' => 'ease',
|
136 |
+
'label_block' => false,
|
137 |
+
'options' => [
|
138 |
+
'ease' => esc_html__( 'Ease', 'essential-addons-elementor' ),
|
139 |
+
'ease-in' => esc_html__( 'Ease In', 'essential-addons-elementor' ),
|
140 |
+
'ease-in-out' => esc_html__( 'Ease In Out', 'essential-addons-elementor' ),
|
141 |
+
],
|
142 |
+
]
|
143 |
+
);
|
144 |
+
$this->add_control(
|
145 |
+
'eael_ticker_prev_icon',
|
146 |
+
[
|
147 |
+
'label' => esc_html__( 'Prev Icon', 'essential-addons-elementor' ),
|
148 |
+
'type' => Controls_Manager::ICON,
|
149 |
+
'default' => 'fa fa-angle-left',
|
150 |
+
]
|
151 |
+
);
|
152 |
+
$this->add_control(
|
153 |
+
'eael_ticker_next_icon',
|
154 |
+
[
|
155 |
+
'label' => esc_html__( 'Next Icon', 'essential-addons-elementor' ),
|
156 |
+
'type' => Controls_Manager::ICON,
|
157 |
+
'default' => 'fa fa-angle-right',
|
158 |
+
]
|
159 |
+
);
|
160 |
+
$this->end_controls_section();
|
161 |
+
|
162 |
+
/**
|
163 |
+
* Content Ticker Dynamic Content Settings
|
164 |
+
*/
|
165 |
+
$this->start_controls_section(
|
166 |
+
'eael_section_ticker_dynamic_content-settings',
|
167 |
+
[
|
168 |
+
'label' => __( 'Dynamic Content Settings', 'essential-addons-elementor' ),
|
169 |
+
'condition' => [
|
170 |
+
'eael_ticker_type' => ['dynamic', 'custom']
|
171 |
+
]
|
172 |
+
]
|
173 |
+
);
|
174 |
+
|
175 |
+
|
176 |
+
$this->add_control(
|
177 |
+
'eael_post_type',
|
178 |
+
[
|
179 |
+
'label' => __( 'Post Type', 'essential-addons-elementor' ),
|
180 |
+
'type' => Controls_Manager::SELECT,
|
181 |
+
'options' => eael_get_post_types(),
|
182 |
+
'default' => 'post',
|
183 |
+
|
184 |
+
]
|
185 |
+
);
|
186 |
+
|
187 |
+
$this->add_control(
|
188 |
+
'category',
|
189 |
+
[
|
190 |
+
'label' => __( 'Categories', 'essential-addons-elementor' ),
|
191 |
+
'type' => Controls_Manager::SELECT2,
|
192 |
+
'label_block' => true,
|
193 |
+
'multiple' => true,
|
194 |
+
'options' => eael_post_type_categories(),
|
195 |
+
'condition' => [
|
196 |
+
'eael_post_type' => 'post'
|
197 |
+
]
|
198 |
+
]
|
199 |
+
);
|
200 |
+
|
201 |
+
|
202 |
+
$this->add_control(
|
203 |
+
'eael_posts_count',
|
204 |
+
[
|
205 |
+
'label' => __( 'Number of Posts', 'essential-addons-elementor' ),
|
206 |
+
'type' => Controls_Manager::NUMBER,
|
207 |
+
'default' => '4'
|
208 |
+
]
|
209 |
+
);
|
210 |
+
|
211 |
+
|
212 |
+
$this->add_control(
|
213 |
+
'eael_post_offset',
|
214 |
+
[
|
215 |
+
'label' => __( 'Post Offset', 'essential-addons-elementor' ),
|
216 |
+
'type' => Controls_Manager::NUMBER,
|
217 |
+
'default' => '0'
|
218 |
+
]
|
219 |
+
);
|
220 |
+
|
221 |
+
$this->add_control(
|
222 |
+
'eael_post_orderby',
|
223 |
+
[
|
224 |
+
'label' => __( 'Order By', 'essential-addons-elementor' ),
|
225 |
+
'type' => Controls_Manager::SELECT,
|
226 |
+
'options' => eael_get_post_orderby_options(),
|
227 |
+
'default' => 'date',
|
228 |
+
|
229 |
+
]
|
230 |
+
);
|
231 |
+
|
232 |
+
$this->add_control(
|
233 |
+
'eael_post_order',
|
234 |
+
[
|
235 |
+
'label' => __( 'Order', 'essential-addons-elementor' ),
|
236 |
+
'type' => Controls_Manager::SELECT,
|
237 |
+
'options' => [
|
238 |
+
'asc' => 'Ascending',
|
239 |
+
'desc' => 'Descending'
|
240 |
+
],
|
241 |
+
'default' => 'desc',
|
242 |
+
|
243 |
+
]
|
244 |
+
);
|
245 |
+
|
246 |
+
$this->end_controls_section();
|
247 |
+
|
248 |
+
|
249 |
+
/**
|
250 |
+
* -------------------------------------------
|
251 |
+
* Tab Style (Content Ticker)
|
252 |
+
* -------------------------------------------
|
253 |
+
*/
|
254 |
+
$this->start_controls_section(
|
255 |
+
'eael_section_ticker_style_settings',
|
256 |
+
[
|
257 |
+
'label' => esc_html__( 'Content Ticker Style', 'essential-addons-elementor' ),
|
258 |
+
'tab' => Controls_Manager::TAB_STYLE
|
259 |
+
]
|
260 |
+
);
|
261 |
+
|
262 |
+
$this->add_control(
|
263 |
+
'eael_ticker_bg_color',
|
264 |
+
[
|
265 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
266 |
+
'type' => Controls_Manager::COLOR,
|
267 |
+
'default' => '#f9f9f9',
|
268 |
+
'selectors' => [
|
269 |
+
'{{WRAPPER}} .eael-ticker-wrap' => 'background-color: {{VALUE}};',
|
270 |
+
],
|
271 |
+
]
|
272 |
+
);
|
273 |
+
|
274 |
+
$this->add_responsive_control(
|
275 |
+
'eael_ticker_container_padding',
|
276 |
+
[
|
277 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
278 |
+
'type' => Controls_Manager::DIMENSIONS,
|
279 |
+
'size_units' => [ 'px', 'em', '%' ],
|
280 |
+
'selectors' => [
|
281 |
+
'{{WRAPPER}} .eael-ticker-wrap' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
282 |
+
],
|
283 |
+
]
|
284 |
+
);
|
285 |
+
|
286 |
+
$this->add_responsive_control(
|
287 |
+
'eael_ticker_container_margin',
|
288 |
+
[
|
289 |
+
'label' => esc_html__( 'Margin', 'essential-addons-elementor' ),
|
290 |
+
'type' => Controls_Manager::DIMENSIONS,
|
291 |
+
'size_units' => [ 'px', 'em', '%' ],
|
292 |
+
'selectors' => [
|
293 |
+
'{{WRAPPER}} .eael-ticker-wrap' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
294 |
+
],
|
295 |
+
]
|
296 |
+
);
|
297 |
+
|
298 |
+
$this->add_group_control(
|
299 |
+
Group_Control_Border::get_type(),
|
300 |
+
[
|
301 |
+
'name' => 'eael_ticker_border',
|
302 |
+
'label' => esc_html__( 'Border', 'essential-addons-elementor' ),
|
303 |
+
'selector' => '{{WRAPPER}} .eael-ticker-wrap',
|
304 |
+
]
|
305 |
+
);
|
306 |
+
|
307 |
+
$this->add_control(
|
308 |
+
'eael_ticker_border_radius',
|
309 |
+
[
|
310 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
311 |
+
'type' => Controls_Manager::SLIDER,
|
312 |
+
'default' => [
|
313 |
+
'size' => 0,
|
314 |
+
],
|
315 |
+
'range' => [
|
316 |
+
'px' => [
|
317 |
+
'max' => 500,
|
318 |
+
],
|
319 |
+
],
|
320 |
+
'selectors' => [
|
321 |
+
'{{WRAPPER}} .eael-ticker-wrap' => 'border-radius: {{SIZE}}px;',
|
322 |
+
],
|
323 |
+
]
|
324 |
+
);
|
325 |
+
|
326 |
+
$this->add_group_control(
|
327 |
+
Group_Control_Box_Shadow::get_type(),
|
328 |
+
[
|
329 |
+
'name' => 'eael_ticker_shadow',
|
330 |
+
'selector' => '{{WRAPPER}} .eael-ticker-wrap',
|
331 |
+
]
|
332 |
+
);
|
333 |
+
|
334 |
+
$this->end_controls_section();
|
335 |
+
|
336 |
+
/**
|
337 |
+
* -------------------------------------------
|
338 |
+
* Tab Style (Ticker Content Style)
|
339 |
+
* -------------------------------------------
|
340 |
+
*/
|
341 |
+
$this->start_controls_section(
|
342 |
+
'eael_section_ticker_typography_settings',
|
343 |
+
[
|
344 |
+
'label' => esc_html__( 'Color & Typography', 'essential-addons-elementor' ),
|
345 |
+
'tab' => Controls_Manager::TAB_STYLE
|
346 |
+
]
|
347 |
+
);
|
348 |
+
$this->add_control(
|
349 |
+
'eael_ticker_content_text',
|
350 |
+
[
|
351 |
+
'label' => esc_html__( 'Ticker Content', 'essential-addons-elementor' ),
|
352 |
+
'type' => Controls_Manager::HEADING,
|
353 |
+
'separator' => 'before'
|
354 |
+
]
|
355 |
+
);
|
356 |
+
|
357 |
+
$this->add_control(
|
358 |
+
'eael_ticker_content_color',
|
359 |
+
[
|
360 |
+
'label' => esc_html__( 'Title Color', 'essential-addons-elementor' ),
|
361 |
+
'type' => Controls_Manager::COLOR,
|
362 |
+
'default' => '#222222',
|
363 |
+
'selectors' => [
|
364 |
+
'{{WRAPPER}} .eael-ticker-wrap .eael-ticker .ticker-content' => 'color: {{VALUE}};',
|
365 |
+
],
|
366 |
+
]
|
367 |
+
);
|
368 |
+
$this->add_control(
|
369 |
+
'eael_ticker_hover_content_color',
|
370 |
+
[
|
371 |
+
'label' => esc_html__( 'Title Hover Color', 'essential-addons-elementor' ),
|
372 |
+
'type' => Controls_Manager::COLOR,
|
373 |
+
'default' => '#f44336',
|
374 |
+
'selectors' => [
|
375 |
+
'{{WRAPPER}} .eael-ticker-wrap .eael-ticker .ticker-content:hover' => 'color: {{VALUE}};',
|
376 |
+
],
|
377 |
+
]
|
378 |
+
);
|
379 |
+
|
380 |
+
$this->add_group_control(
|
381 |
+
Group_Control_Typography::get_type(),
|
382 |
+
[
|
383 |
+
'name' => 'eael_ticker_content_typography',
|
384 |
+
'selector' =>'{{WRAPPER}} .eael-ticker-wrap .eael-ticker .ticker-content',
|
385 |
+
|
386 |
+
]
|
387 |
+
);
|
388 |
+
|
389 |
+
$this->add_control(
|
390 |
+
'eael_ticker_nav_icon_style',
|
391 |
+
[
|
392 |
+
'label' => esc_html__( 'Navigation', 'essential-addons-elementor' ),
|
393 |
+
'type' => Controls_Manager::HEADING,
|
394 |
+
'separator' => 'before'
|
395 |
+
]
|
396 |
+
);
|
397 |
+
|
398 |
+
$this->add_control(
|
399 |
+
'eael_ticker_nav_icon_color',
|
400 |
+
[
|
401 |
+
'label' => esc_html__( 'Icon Color', 'essential-addons-elementor' ),
|
402 |
+
'type' => Controls_Manager::COLOR,
|
403 |
+
'default' => '#222',
|
404 |
+
'selectors' => [
|
405 |
+
'{{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-prev' => 'color: {{VALUE}};',
|
406 |
+
'{{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-next' => 'color: {{VALUE}};',
|
407 |
+
],
|
408 |
+
]
|
409 |
+
);
|
410 |
+
|
411 |
+
$this->add_control(
|
412 |
+
'eael_ticker_nav_icon_hover_color',
|
413 |
+
[
|
414 |
+
'label' => esc_html__( 'Icon Hover Color', 'essential-addons-elementor' ),
|
415 |
+
'type' => Controls_Manager::COLOR,
|
416 |
+
'default' => '#fff',
|
417 |
+
'selectors' => [
|
418 |
+
'{{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-prev:hover' => 'color: {{VALUE}};',
|
419 |
+
'{{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-next:hover' => 'color: {{VALUE}};',
|
420 |
+
],
|
421 |
+
]
|
422 |
+
);
|
423 |
+
|
424 |
+
$this->add_control(
|
425 |
+
'eael_ticker_nav_icon_bg_color',
|
426 |
+
[
|
427 |
+
'label' => esc_html__( 'Icon Background Color', 'essential-addons-elementor' ),
|
428 |
+
'type' => Controls_Manager::COLOR,
|
429 |
+
'default' => '#fff',
|
430 |
+
'selectors' => [
|
431 |
+
'{{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-prev' => 'background-color: {{VALUE}};',
|
432 |
+
'{{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-next' => 'background-color: {{VALUE}};',
|
433 |
+
],
|
434 |
+
]
|
435 |
+
);
|
436 |
+
$this->add_control(
|
437 |
+
'eael_ticker_nav_icon_bg_color_hover',
|
438 |
+
[
|
439 |
+
'label' => esc_html__( 'Icon Background Hover Color', 'essential-addons-elementor' ),
|
440 |
+
'type' => Controls_Manager::COLOR,
|
441 |
+
'default' => '#222',
|
442 |
+
'selectors' => [
|
443 |
+
'{{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-prev:hover' => 'background-color: {{VALUE}};',
|
444 |
+
'{{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-next:hover' => 'background-color: {{VALUE}};',
|
445 |
+
],
|
446 |
+
]
|
447 |
+
);
|
448 |
+
|
449 |
+
$this->add_group_control(
|
450 |
+
Group_Control_Border::get_type(),
|
451 |
+
[
|
452 |
+
'name' => 'eael_ticker_nav_icon_border',
|
453 |
+
'label' => esc_html__( 'Border', 'essential-addons-elementor' ),
|
454 |
+
'selector' => '{{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-prev, {{WRAPPER}} .eael-ticker-wrap .slick-slider .eael-slick-next',
|
455 |
+
]
|
456 |
+
);
|
457 |
+
|
458 |
+
$this->end_controls_section();
|
459 |
+
|
460 |
+
$this->start_controls_section(
|
461 |
+
'eael_section_ticker_tag_style_settings',
|
462 |
+
[
|
463 |
+
'label' => esc_html__( 'Tag Style', 'essential-addons-elementor' ),
|
464 |
+
'tab' => Controls_Manager::TAB_STYLE
|
465 |
+
]
|
466 |
+
);
|
467 |
+
$this->add_control(
|
468 |
+
'eael_ticker_tag_bg_color',
|
469 |
+
[
|
470 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
471 |
+
'type' => Controls_Manager::COLOR,
|
472 |
+
'default' => '#222222',
|
473 |
+
'selectors' => [
|
474 |
+
'{{WRAPPER}} .eael-ticker-wrap .ticker-badge span' => 'background-color: {{VALUE}};',
|
475 |
+
],
|
476 |
+
]
|
477 |
+
);
|
478 |
+
$this->add_control(
|
479 |
+
'eael_ticker_tag_color',
|
480 |
+
[
|
481 |
+
'label' => esc_html__( 'Color', 'essential-addons-elementor' ),
|
482 |
+
'type' => Controls_Manager::COLOR,
|
483 |
+
'default' => '#fff',
|
484 |
+
'selectors' => [
|
485 |
+
'{{WRAPPER}} .eael-ticker-wrap .ticker-badge span' => 'color: {{VALUE}};',
|
486 |
+
],
|
487 |
+
]
|
488 |
+
);
|
489 |
+
|
490 |
+
$this->add_group_control(
|
491 |
+
Group_Control_Typography::get_type(),
|
492 |
+
[
|
493 |
+
'name' => 'eael_ticker_tag_typography',
|
494 |
+
'selector' => '{{WRAPPER}} .eael-ticker-wrap .ticker-badge span',
|
495 |
+
]
|
496 |
+
);
|
497 |
+
$this->add_responsive_control(
|
498 |
+
'eael_ticker_tag_padding',
|
499 |
+
[
|
500 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
501 |
+
'type' => Controls_Manager::DIMENSIONS,
|
502 |
+
'size_units' => [ 'px', 'em', '%' ],
|
503 |
+
'selectors' => [
|
504 |
+
'{{WRAPPER}} .eael-ticker-wrap .ticker-badge span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
505 |
+
],
|
506 |
+
]
|
507 |
+
);
|
508 |
+
$this->add_responsive_control(
|
509 |
+
'eael_ticker_tag_radius',
|
510 |
+
[
|
511 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
512 |
+
'type' => Controls_Manager::DIMENSIONS,
|
513 |
+
'size_units' => [ 'px', 'em', '%' ],
|
514 |
+
'selectors' => [
|
515 |
+
'{{WRAPPER}} .eael-ticker-wrap .ticker-badge span' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
516 |
+
],
|
517 |
+
]
|
518 |
+
);
|
519 |
+
$this->end_controls_section();
|
520 |
+
$this->start_controls_section(
|
521 |
+
'eael_section_pro',
|
522 |
+
[
|
523 |
+
'label' => __( 'Go Premium for More Features', 'essential-addons-elementor' )
|
524 |
+
]
|
525 |
+
);
|
526 |
+
|
527 |
+
$this->add_control(
|
528 |
+
'eael_control_get_pro',
|
529 |
+
[
|
530 |
+
'label' => __( 'Unlock more possibilities', 'essential-addons-elementor' ),
|
531 |
+
'type' => Controls_Manager::CHOOSE,
|
532 |
+
'options' => [
|
533 |
+
'1' => [
|
534 |
+
'title' => __( '', 'essential-addons-elementor' ),
|
535 |
+
'icon' => 'fa fa-unlock-alt',
|
536 |
+
],
|
537 |
+
],
|
538 |
+
'default' => '1',
|
539 |
+
'description' => '<span class="pro-feature"> Get the <a href="https://essential-addons.com/elementor/buy.php" target="_blank">Pro version</a> for more stunning elements and customization options.</span>'
|
540 |
+
]
|
541 |
+
);
|
542 |
+
|
543 |
+
$this->end_controls_section();
|
544 |
+
}
|
545 |
+
|
546 |
+
|
547 |
+
protected function render( ) {
|
548 |
+
|
549 |
+
$settings = $this->get_settings();
|
550 |
+
$post_args = eael_get_post_settings($settings);
|
551 |
+
$posts = eael_get_post_data($post_args);
|
552 |
+
|
553 |
+
?>
|
554 |
+
<?php if(count($posts)) : global $post; ?>
|
555 |
+
<div class="eael-ticker-wrap" id="eael-ticker-wrap-<?php echo $this->get_id(); ?>">
|
556 |
+
<?php if( !empty($settings['eael_ticker_tag_text']) ) : ?>
|
557 |
+
<div class="ticker-badge">
|
558 |
+
<span><?php echo $settings['eael_ticker_tag_text']; ?></span>
|
559 |
+
</div>
|
560 |
+
<?php endif; ?>
|
561 |
+
<div class="eael-ticker">
|
562 |
+
<?php foreach( $posts as $post ) : setup_postdata( $post );
|
563 |
+
echo '<div><a href="'.get_the_permalink().'" class="ticker-content">'.get_the_title().'</a></div>';
|
564 |
+
endforeach; ?>
|
565 |
+
</div>
|
566 |
+
</div>
|
567 |
+
<?php endif; ?>
|
568 |
+
|
569 |
+
<script>
|
570 |
+
jQuery(document).ready(function($) {
|
571 |
+
|
572 |
+
$('#eael-ticker-wrap-<?php echo $this->get_id(); ?> .eael-ticker').slick({
|
573 |
+
autoplay: <?php if( !empty($settings['eael_ticker_autoplay']) ) : echo $settings['eael_ticker_autoplay']; else: echo 'false'; endif; ?>,
|
574 |
+
autoplaySpeed: <?php echo $settings['eael_ticker_autoplay_speed']; ?>,
|
575 |
+
arrows: <?php if( !empty($settings['eael_ticker_arrow']) ) : echo $settings['eael_ticker_arrow']; else: echo 'false'; endif; ?>,
|
576 |
+
cssEase: 'ease',
|
577 |
+
fade: <?php if( !empty($settings['eael_ticker_fade']) ) : echo $settings['eael_ticker_fade']; else: echo 'false'; endif; ?>,
|
578 |
+
easing: '<?php echo $settings['eael_ticker_easing']; ?>',
|
579 |
+
pauseOnHover: <?php if( !empty($settings['eael_ticker_pause_on_hover']) ) : echo $settings['eael_ticker_pause_on_hover']; else: echo 'false'; endif; ?>,
|
580 |
+
prevArrow: '<button type="button" class="eael-slick-prev"><i class="<?php echo $settings['eael_ticker_prev_icon']; ?>"></i></button>',
|
581 |
+
nextArrow: '<button type="button" class="eael-slick-next"><i class="<?php echo $settings['eael_ticker_next_icon']; ?>"></i></button>',
|
582 |
+
speed: <?php echo $settings['eael_ticker_slide_speed']; ?>,
|
583 |
+
useCSS: true
|
584 |
+
});
|
585 |
+
|
586 |
+
});
|
587 |
+
</script>
|
588 |
+
<?php
|
589 |
+
|
590 |
+
}
|
591 |
+
|
592 |
+
protected function content_template() {
|
593 |
+
|
594 |
+
?>
|
595 |
+
|
596 |
+
<?php
|
597 |
+
}
|
598 |
+
}
|
599 |
+
|
600 |
+
|
601 |
+
Plugin::instance()->widgets_manager->register_widget_type( new Widget_Eael_Content_Ticker() );
|
elements/data-table/data-table.php
CHANGED
@@ -38,7 +38,7 @@ class Widget_Eael_Data_Table extends Widget_Base {
|
|
38 |
[
|
39 |
'label' => __( 'Enable Table Sorting', 'essential-addons-elementor' ),
|
40 |
'type' => Controls_Manager::SWITCHER,
|
41 |
-
'default' => '
|
42 |
'label_on' => esc_html__( 'Yes', 'essential-addons-elementor' ),
|
43 |
'label_off' => esc_html__( 'No', 'essential-addons-elementor' ),
|
44 |
'return_value' => 'true',
|
38 |
[
|
39 |
'label' => __( 'Enable Table Sorting', 'essential-addons-elementor' ),
|
40 |
'type' => Controls_Manager::SWITCHER,
|
41 |
+
'default' => 'false',
|
42 |
'label_on' => esc_html__( 'Yes', 'essential-addons-elementor' ),
|
43 |
'label_off' => esc_html__( 'No', 'essential-addons-elementor' ),
|
44 |
'return_value' => 'true',
|
elements/image-accordion/image-accordion.php
ADDED
@@ -0,0 +1,384 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace Elementor;
|
3 |
+
|
4 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
|
5 |
+
|
6 |
+
class Widget_Eael_Image_Accordion extends Widget_Base {
|
7 |
+
|
8 |
+
public function get_name() {
|
9 |
+
return 'eael-image-accordion';
|
10 |
+
}
|
11 |
+
|
12 |
+
public function get_title() {
|
13 |
+
return esc_html__( 'EA Image Accordion', 'essential-addons-elementor' );
|
14 |
+
}
|
15 |
+
|
16 |
+
public function get_icon() {
|
17 |
+
return 'eicon-call-to-action';
|
18 |
+
}
|
19 |
+
|
20 |
+
public function get_categories() {
|
21 |
+
return [ 'essential-addons-elementor' ];
|
22 |
+
}
|
23 |
+
|
24 |
+
protected function _register_controls() {
|
25 |
+
/**
|
26 |
+
* Image accordion Content Settings
|
27 |
+
*/
|
28 |
+
$this->start_controls_section(
|
29 |
+
'eael_section_img_accordion_settings',
|
30 |
+
[
|
31 |
+
'label' => esc_html__( 'Image Accordion Settings', 'essential-addons-elementor' )
|
32 |
+
]
|
33 |
+
);
|
34 |
+
|
35 |
+
$this->add_control(
|
36 |
+
'eael_img_accordion_type',
|
37 |
+
[
|
38 |
+
'label' => esc_html__( 'Accordion Style', 'essential-addons-elementor' ),
|
39 |
+
'type' => Controls_Manager::SELECT,
|
40 |
+
'default' => 'on-hover',
|
41 |
+
'label_block' => false,
|
42 |
+
'options' => [
|
43 |
+
'on-hover' => esc_html__( 'On Hover', 'essential-addons-elementor' ),
|
44 |
+
'on-click' => esc_html__( 'On Click', 'essential-addons-elementor' ),
|
45 |
+
],
|
46 |
+
]
|
47 |
+
);
|
48 |
+
$this->add_control(
|
49 |
+
'eael_img_accordion_type_pro_alert',
|
50 |
+
[
|
51 |
+
'label' => esc_html__( 'Only available in pro version!', 'essential-addons-elementor' ),
|
52 |
+
'type' => Controls_Manager::HEADING,
|
53 |
+
'condition' => [
|
54 |
+
'eael_img_accordion_type' => 'on-click',
|
55 |
+
]
|
56 |
+
]
|
57 |
+
);
|
58 |
+
|
59 |
+
$this->add_control(
|
60 |
+
'eael_img_accordions',
|
61 |
+
[
|
62 |
+
'type' => Controls_Manager::REPEATER,
|
63 |
+
'seperator' => 'before',
|
64 |
+
'default' => [
|
65 |
+
[ 'eael_accordion_bg' => ESSENTIAL_ADDONS_EL_URL . 'assets/img/accordion.png' ],
|
66 |
+
[ 'eael_accordion_bg' => ESSENTIAL_ADDONS_EL_URL . 'assets/img/accordion.png' ],
|
67 |
+
[ 'eael_accordion_bg' => ESSENTIAL_ADDONS_EL_URL . 'assets/img/accordion.png' ],
|
68 |
+
[ 'eael_accordion_bg' => ESSENTIAL_ADDONS_EL_URL . 'assets/img/accordion.png' ],
|
69 |
+
],
|
70 |
+
'fields' => [
|
71 |
+
[
|
72 |
+
'name' => 'eael_accordion_bg',
|
73 |
+
'label' => esc_html__( 'Background Image', 'essential-addons-elementor' ),
|
74 |
+
'type' => Controls_Manager::MEDIA,
|
75 |
+
'label_block' => true,
|
76 |
+
'default' => [
|
77 |
+
'url' => ESSENTIAL_ADDONS_EL_URL . 'assets/img/accordion.png',
|
78 |
+
],
|
79 |
+
],
|
80 |
+
[
|
81 |
+
'name' => 'eael_accordion_tittle',
|
82 |
+
'label' => esc_html__( 'Title', 'essential-addons-elementor' ),
|
83 |
+
'type' => Controls_Manager::TEXT,
|
84 |
+
'label_block' => true,
|
85 |
+
'default' => esc_html__( 'Accordion item title', 'essential-addons-elementor' )
|
86 |
+
],
|
87 |
+
[
|
88 |
+
'name' => 'eael_accordion_content',
|
89 |
+
'label' => esc_html__( 'Content', 'essential-addons-elementor' ),
|
90 |
+
'type' => Controls_Manager::TEXTAREA,
|
91 |
+
'label_block' => true,
|
92 |
+
'default' => esc_html__( 'Accordion content goes here!', 'essential-addons-elementor' )
|
93 |
+
],
|
94 |
+
[
|
95 |
+
'name' => 'eael_accordion_title_link',
|
96 |
+
'label' => esc_html__( 'Title Link', 'essential-addons-elementor' ),
|
97 |
+
'type' => Controls_Manager::URL,
|
98 |
+
'label_block' => true,
|
99 |
+
'default' => [
|
100 |
+
'url' => '#',
|
101 |
+
'is_external' => '',
|
102 |
+
],
|
103 |
+
'show_external' => true,
|
104 |
+
],
|
105 |
+
],
|
106 |
+
'title_field' => '{{eael_accordion_tittle}}',
|
107 |
+
]
|
108 |
+
);
|
109 |
+
|
110 |
+
$this->end_controls_section();
|
111 |
+
|
112 |
+
/**
|
113 |
+
* -------------------------------------------
|
114 |
+
* Tab Style (Image accordion)
|
115 |
+
* -------------------------------------------
|
116 |
+
*/
|
117 |
+
$this->start_controls_section(
|
118 |
+
'eael_section_img_accordion_style_settings',
|
119 |
+
[
|
120 |
+
'label' => esc_html__( 'Image Accordion Style', 'essential-addons-elementor' ),
|
121 |
+
'tab' => Controls_Manager::TAB_STYLE
|
122 |
+
]
|
123 |
+
);
|
124 |
+
|
125 |
+
$this->add_control(
|
126 |
+
'eael_accordion_height',
|
127 |
+
[
|
128 |
+
'label' => esc_html__( 'Height', 'essential-addons-elementor' ),
|
129 |
+
'type' => Controls_Manager::TEXT,
|
130 |
+
'default' => '400',
|
131 |
+
'description' => 'Unit in px',
|
132 |
+
'selectors' => [
|
133 |
+
'{{WRAPPER}} .eael-img-accordion ' => 'height: {{VALUE}}px;',
|
134 |
+
],
|
135 |
+
]
|
136 |
+
);
|
137 |
+
|
138 |
+
$this->add_control(
|
139 |
+
'eael_accordion_bg_color',
|
140 |
+
[
|
141 |
+
'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
|
142 |
+
'type' => Controls_Manager::COLOR,
|
143 |
+
'default' => '',
|
144 |
+
'selectors' => [
|
145 |
+
'{{WRAPPER}} .eael-img-accordion' => 'background-color: {{VALUE}};',
|
146 |
+
],
|
147 |
+
]
|
148 |
+
);
|
149 |
+
|
150 |
+
$this->add_responsive_control(
|
151 |
+
'eael_accordion_container_padding',
|
152 |
+
[
|
153 |
+
'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
|
154 |
+
'type' => Controls_Manager::DIMENSIONS,
|
155 |
+
'size_units' => [ 'px', 'em', '%' ],
|
156 |
+
'selectors' => [
|
157 |
+
'{{WRAPPER}} .eael-img-accordion' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
158 |
+
],
|
159 |
+
]
|
160 |
+
);
|
161 |
+
|
162 |
+
$this->add_responsive_control(
|
163 |
+
'eael_accordion_container_margin',
|
164 |
+
[
|
165 |
+
'label' => esc_html__( 'Margin', 'essential-addons-elementor' ),
|
166 |
+
'type' => Controls_Manager::DIMENSIONS,
|
167 |
+
'size_units' => [ 'px', 'em', '%' ],
|
168 |
+
'selectors' => [
|
169 |
+
'{{WRAPPER}} .eael-img-accordion' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
170 |
+
],
|
171 |
+
]
|
172 |
+
);
|
173 |
+
|
174 |
+
$this->add_group_control(
|
175 |
+
Group_Control_Border::get_type(),
|
176 |
+
[
|
177 |
+
'name' => 'eael_accordion_border',
|
178 |
+
'label' => esc_html__( 'Border', 'essential-addons-elementor' ),
|
179 |
+
'selector' => '{{WRAPPER}} .eael-img-accordion',
|
180 |
+
]
|
181 |
+
);
|
182 |
+
|
183 |
+
$this->add_control(
|
184 |
+
'eael_accordion_border_radius',
|
185 |
+
[
|
186 |
+
'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
|
187 |
+
'type' => Controls_Manager::SLIDER,
|
188 |
+
'default' => [
|
189 |
+
'size' => 4,
|
190 |
+
],
|
191 |
+
'range' => [
|
192 |
+
'px' => [
|
193 |
+
'max' => 500,
|
194 |
+
],
|
195 |
+
],
|
196 |
+
'selectors' => [
|
197 |
+
'{{WRAPPER}} .eael-img-accordion' => 'border-radius: {{SIZE}}px;',
|
198 |
+
],
|
199 |
+
]
|
200 |
+
);
|
201 |
+
|
202 |
+
$this->add_group_control(
|
203 |
+
Group_Control_Box_Shadow::get_type(),
|
204 |
+
[
|
205 |
+
'name' => 'eael_accordion_shadow',
|
206 |
+
'selector' => '{{WRAPPER}} .eael-img-accordion',
|
207 |
+
]
|
208 |
+
);
|
209 |
+
|
210 |
+
$this->add_control(
|
211 |
+
'eael_accordion_img_overlay_color',
|
212 |
+
[
|
213 |
+
'label' => esc_html__( 'Overlay Color', 'essential-addons-elementor' ),
|
214 |
+
'type' => Controls_Manager::COLOR,
|
215 |
+
'default' => 'rgba(0, 0, 0, .3)',
|
216 |
+
'selectors' => [
|
217 |
+
'{{WRAPPER}} .eael-img-accordion a:after' => 'background-color: {{VALUE}};',
|
218 |
+
],
|
219 |
+
]
|
220 |
+
);
|
221 |
+
|
222 |
+
$this->add_control(
|
223 |
+
'eael_accordion_img_hover_color',
|
224 |
+
[
|
225 |
+
'label' => esc_html__( 'Hover Color', 'essential-addons-elementor' ),
|
226 |
+
'type' => Controls_Manager::COLOR,
|
227 |
+
'default' => 'rgba(0, 0, 0, .5)',
|
228 |
+
'selectors' => [
|
229 |
+
'{{WRAPPER}} .eael-img-accordion a:hover .overlay' => 'background-color: {{VALUE}};',
|
230 |
+
],
|
231 |
+
]
|
232 |
+
);
|
233 |
+
|
234 |
+
$this->end_controls_section();
|
235 |
+
|
236 |
+
/**
|
237 |
+
* -------------------------------------------
|
238 |
+
* Tab Style (Image accordion Content Style)
|
239 |
+
* -------------------------------------------
|
240 |
+
*/
|
241 |
+
$this->start_controls_section(
|
242 |
+
'eael_section_img_accordion_typography_settings',
|
243 |
+
[
|
244 |
+
'label' => esc_html__( 'Color & Typography', 'essential-addons-elementor' ),
|
245 |
+
'tab' => Controls_Manager::TAB_STYLE
|
246 |
+
]
|
247 |
+
);
|
248 |
+
|
249 |
+
$this->add_control(
|
250 |
+
'eael_accordion_title_text',
|
251 |
+
[
|
252 |
+
'label' => esc_html__( 'Title', 'essential-addons-elementor' ),
|
253 |
+
'type' => Controls_Manager::HEADING,
|
254 |
+
'separator' => 'before'
|
255 |
+
]
|
256 |
+
);
|
257 |
+
|
258 |
+
$this->add_control(
|
259 |
+
'eael_accordion_title_color',
|
260 |
+
[
|
261 |
+
'label' => esc_html__( 'Color', 'essential-addons-elementor' ),
|
262 |
+
'type' => Controls_Manager::COLOR,
|
263 |
+
'default' => '#fff',
|
264 |
+
'selectors' => [
|
265 |
+
'{{WRAPPER}} .eael-img-accordion .overlay h2' => 'color: {{VALUE}};',
|
266 |
+
],
|
267 |
+
]
|
268 |
+
);
|
269 |
+
|
270 |
+
$this->add_group_control(
|
271 |
+
Group_Control_Typography::get_type(),
|
272 |
+
[
|
273 |
+
'name' => 'eael_accordion_title_typography',
|
274 |
+
'selector' => '{{WRAPPER}} .eael-img-accordion .overlay h2',
|
275 |
+
]
|
276 |
+
);
|
277 |
+
|
278 |
+
$this->add_control(
|
279 |
+
'eael_accordion_content_text',
|
280 |
+
[
|
281 |
+
'label' => esc_html__( 'Content', 'essential-addons-elementor' ),
|
282 |
+
'type' => Controls_Manager::HEADING,
|
283 |
+
'separator' => 'before'
|
284 |
+
]
|
285 |
+
);
|
286 |
+
|
287 |
+
$this->add_control(
|
288 |
+
'eael_accordion_content_color',
|
289 |
+
[
|
290 |
+
'label' => esc_html__( 'Color', 'essential-addons-elementor' ),
|
291 |
+
'type' => Controls_Manager::COLOR,
|
292 |
+
'default' => '#fff',
|
293 |
+
'selectors' => [
|
294 |
+
'{{WRAPPER}} .eael-img-accordion .overlay p' => 'color: {{VALUE}};',
|
295 |
+
],
|
296 |
+
]
|
297 |
+
);
|
298 |
+
|
299 |
+
$this->add_group_control(
|
300 |
+
Group_Control_Typography::get_type(),
|
301 |
+
[
|
302 |
+
'name' => 'eael_accordion_content_typography',
|
303 |
+
'selector' => '{{WRAPPER}} .eael-img-accordion .overlay p',
|
304 |
+
]
|
305 |
+
);
|
306 |
+
|
307 |
+
$this->end_controls_section();
|
308 |
+
|
309 |
+
$this->start_controls_section(
|
310 |
+
'eael_section_pro',
|
311 |
+
[
|
312 |
+
'label' => __( 'Go Premium for More Features', 'essential-addons-elementor' )
|
313 |
+
]
|
314 |
+
);
|
315 |
+
|
316 |
+
$this->add_control(
|
317 |
+
'eael_control_get_pro',
|
318 |
+
[
|
319 |
+
'label' => __( 'Unlock more possibilities', 'essential-addons-elementor' ),
|
320 |
+
'type' => Controls_Manager::CHOOSE,
|
321 |
+
'options' => [
|
322 |
+
'1' => [
|
323 |
+
'title' => __( '', 'essential-addons-elementor' ),
|
324 |
+
'icon' => 'fa fa-unlock-alt',
|
325 |
+
],
|
326 |
+
],
|
327 |
+
'default' => '1',
|
328 |
+
'description' => '<span class="pro-feature"> Get the <a href="https://essential-addons.com/elementor/buy.php" target="_blank">Pro version</a> for more stunning elements and customization options.</span>'
|
329 |
+
]
|
330 |
+
);
|
331 |
+
|
332 |
+
$this->end_controls_section();
|
333 |
+
|
334 |
+
}
|
335 |
+
|
336 |
+
|
337 |
+
protected function render( ) {
|
338 |
+
|
339 |
+
$settings = $this->get_settings();
|
340 |
+
|
341 |
+
if( !empty($settings['eael_img_accordions']) ) :
|
342 |
+
?>
|
343 |
+
<div class="eael-img-accordion" id="eael-img-accordion-<?php echo $this->get_id(); ?>">
|
344 |
+
<?php foreach( $settings['eael_img_accordions'] as $img_accordion ) :
|
345 |
+
$eael_accordion_link = $img_accordion['eael_accordion_title_link']['url'];
|
346 |
+
$target = $img_accordion['eael_accordion_title_link']['is_external'] ? 'target="_blank"' : '';
|
347 |
+
$nofollow = $img_accordion['eael_accordion_title_link']['nofollow'] ? 'rel="nofollow"' : '';
|
348 |
+
?>
|
349 |
+
<a href="<?php echo esc_url($eael_accordion_link); ?>" <?php echo $target; ?> <?php echo $nofollow; ?> style="background-image: url(<?php echo esc_url($img_accordion['eael_accordion_bg']['url']); ?>);">
|
350 |
+
<div class="overlay">
|
351 |
+
<div class="overlay-inner">
|
352 |
+
<h2><?php echo $img_accordion['eael_accordion_tittle']; ?></h2>
|
353 |
+
<p><?php echo $img_accordion['eael_accordion_content']; ?></p>
|
354 |
+
</div>
|
355 |
+
</div>
|
356 |
+
</a>
|
357 |
+
<?php endforeach; ?>
|
358 |
+
</div>
|
359 |
+
<style>
|
360 |
+
#eael-img-accordion-<?php echo $this->get_id(); ?> a:hover {
|
361 |
+
flex: 3;
|
362 |
+
}
|
363 |
+
#eael-img-accordion-<?php echo $this->get_id(); ?> a:hover .overlay-inner * {
|
364 |
+
opacity: 1;
|
365 |
+
visibility: visible;
|
366 |
+
transform: none;
|
367 |
+
transition: all .3s .3s;
|
368 |
+
}
|
369 |
+
</style>
|
370 |
+
<?php endif; ?>
|
371 |
+
<?php
|
372 |
+
|
373 |
+
}
|
374 |
+
|
375 |
+
protected function content_template() {
|
376 |
+
|
377 |
+
?>
|
378 |
+
|
379 |
+
<?php
|
380 |
+
}
|
381 |
+
}
|
382 |
+
|
383 |
+
|
384 |
+
Plugin::instance()->widgets_manager->register_widget_type( new Widget_Eael_Image_Accordion() );
|
elements/infobox/infobox.php
CHANGED
@@ -105,7 +105,7 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
105 |
[
|
106 |
'label' => __( 'Infobox Clickable', 'essential-addons-elementor' ),
|
107 |
'type' => Controls_Manager::SWITCHER,
|
108 |
-
'default' => '
|
109 |
'label_on' => __( 'Yes', 'essential-addons-elementor' ),
|
110 |
'label_off' => __( 'No', 'essential-addons-elementor' ),
|
111 |
'return_value' => 'yes',
|
@@ -418,50 +418,50 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
418 |
);
|
419 |
|
420 |
$this->add_control(
|
421 |
-
'
|
422 |
[
|
423 |
-
'label' => __( 'Icon
|
424 |
'type' => Controls_Manager::SLIDER,
|
425 |
'default' => [
|
426 |
-
'size' =>
|
427 |
],
|
428 |
'range' => [
|
429 |
'px' => [
|
430 |
'min' => 0,
|
431 |
-
'max' =>
|
432 |
'step' => 1,
|
433 |
]
|
434 |
],
|
435 |
'selectors' => [
|
436 |
-
'{{WRAPPER}} .eael-infobox .infobox-icon
|
437 |
],
|
438 |
'condition' => [
|
439 |
-
'
|
440 |
-
'eael_infobox_img_type!' => ['img-on-left', 'img-on-right'],
|
441 |
]
|
442 |
]
|
443 |
);
|
444 |
|
445 |
$this->add_control(
|
446 |
-
'
|
447 |
[
|
448 |
-
'label' => __( 'Icon
|
449 |
'type' => Controls_Manager::SLIDER,
|
450 |
'default' => [
|
451 |
-
'size' =>
|
452 |
],
|
453 |
'range' => [
|
454 |
'px' => [
|
455 |
'min' => 0,
|
456 |
-
'max' =>
|
457 |
'step' => 1,
|
458 |
]
|
459 |
],
|
460 |
'selectors' => [
|
461 |
-
'{{WRAPPER}} .eael-infobox .infobox-icon' => '
|
462 |
],
|
463 |
'condition' => [
|
464 |
-
'
|
|
|
465 |
]
|
466 |
]
|
467 |
);
|
@@ -472,7 +472,7 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
472 |
'label' => __( 'Icon Margin Right', 'essential-addons-elementor' ),
|
473 |
'type' => Controls_Manager::SLIDER,
|
474 |
'default' => [
|
475 |
-
'size' =>
|
476 |
],
|
477 |
'range' => [
|
478 |
'px' => [
|
@@ -496,7 +496,7 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
496 |
'label' => __( 'Icon Margin Left', 'essential-addons-elementor' ),
|
497 |
'type' => Controls_Manager::SLIDER,
|
498 |
'default' => [
|
499 |
-
'size' =>
|
500 |
],
|
501 |
'range' => [
|
502 |
'px' => [
|
@@ -507,7 +507,6 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
507 |
],
|
508 |
'selectors' => [
|
509 |
'{{WRAPPER}} .eael-infobox.icon-on-right .infobox-content' => 'padding-right: {{SIZE}}px;',
|
510 |
-
'{{WRAPPER}} .eael-infobox.icon-on-right .infobox-icon' => 'width: {{SIZE}}px;',
|
511 |
],
|
512 |
'condition' => [
|
513 |
'eael_infobox_img_type' => 'img-on-right',
|
@@ -564,30 +563,6 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
564 |
]
|
565 |
);
|
566 |
|
567 |
-
$this->add_control(
|
568 |
-
'eael_infobox_icon_margin_bottom_size',
|
569 |
-
[
|
570 |
-
'label' => __( 'Icon Margin Bottom', 'essential-addons-elementor' ),
|
571 |
-
'type' => Controls_Manager::SLIDER,
|
572 |
-
'default' => [
|
573 |
-
'size' => 0,
|
574 |
-
],
|
575 |
-
'range' => [
|
576 |
-
'px' => [
|
577 |
-
'min' => 0,
|
578 |
-
'max' => 300,
|
579 |
-
'step' => 1,
|
580 |
-
]
|
581 |
-
],
|
582 |
-
'selectors' => [
|
583 |
-
'{{WRAPPER}} .eael-infobox .infobox-icon .infobox-icon-wrap' => 'margin-bottom: {{SIZE}}px;',
|
584 |
-
],
|
585 |
-
'condition' => [
|
586 |
-
'eael_infobox_icon_bg_shape' => 'none',
|
587 |
-
]
|
588 |
-
]
|
589 |
-
);
|
590 |
-
|
591 |
$this->end_controls_section();
|
592 |
|
593 |
/**
|
@@ -631,6 +606,27 @@ class Widget_Eael_Info_Box extends Widget_Base {
|
|
631 |
]
|
632 |
);
|
633 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
634 |
$this->add_control(
|
635 |
'eael_infobox_content_heading',
|
636 |
[
|
105 |
[
|
106 |
'label' => __( 'Infobox Clickable', 'essential-addons-elementor' ),
|
107 |
'type' => Controls_Manager::SWITCHER,
|
108 |
+
'default' => 'no',
|
109 |
'label_on' => __( 'Yes', 'essential-addons-elementor' ),
|
110 |
'label_off' => __( 'No', 'essential-addons-elementor' ),
|
111 |
'return_value' => 'yes',
|
418 |
);
|
419 |
|
420 |
$this->add_control(
|
421 |
+
'eael_infobox_icon_margin_bottom',
|
422 |
[
|
423 |
+
'label' => __( 'Icon Margin Bottom', 'essential-addons-elementor' ),
|
424 |
'type' => Controls_Manager::SLIDER,
|
425 |
'default' => [
|
426 |
+
'size' => 30,
|
427 |
],
|
428 |
'range' => [
|
429 |
'px' => [
|
430 |
'min' => 0,
|
431 |
+
'max' => 200,
|
432 |
'step' => 1,
|
433 |
]
|
434 |
],
|
435 |
'selectors' => [
|
436 |
+
'{{WRAPPER}} .eael-infobox .infobox-icon' => 'margin-bottom: {{SIZE}}px;',
|
437 |
],
|
438 |
'condition' => [
|
439 |
+
'eael_infobox_img_type' => 'img-on-top',
|
|
|
440 |
]
|
441 |
]
|
442 |
);
|
443 |
|
444 |
$this->add_control(
|
445 |
+
'eael_infobox_icon_bg_size',
|
446 |
[
|
447 |
+
'label' => __( 'Icon Background Size', 'essential-addons-elementor' ),
|
448 |
'type' => Controls_Manager::SLIDER,
|
449 |
'default' => [
|
450 |
+
'size' => 90,
|
451 |
],
|
452 |
'range' => [
|
453 |
'px' => [
|
454 |
'min' => 0,
|
455 |
+
'max' => 300,
|
456 |
'step' => 1,
|
457 |
]
|
458 |
],
|
459 |
'selectors' => [
|
460 |
+
'{{WRAPPER}} .eael-infobox .infobox-icon .infobox-icon-wrap' => 'width: {{SIZE}}px; height: {{SIZE}}px;',
|
461 |
],
|
462 |
'condition' => [
|
463 |
+
'eael_infobox_icon_bg_shape!' => 'none',
|
464 |
+
'eael_infobox_img_type!' => ['img-on-left', 'img-on-right'],
|
465 |
]
|
466 |
]
|
467 |
);
|
472 |
'label' => __( 'Icon Margin Right', 'essential-addons-elementor' ),
|
473 |
'type' => Controls_Manager::SLIDER,
|
474 |
'default' => [
|
475 |
+
'size' => 15,
|
476 |
],
|
477 |
'range' => [
|
478 |
'px' => [
|
496 |
'label' => __( 'Icon Margin Left', 'essential-addons-elementor' ),
|
497 |
'type' => Controls_Manager::SLIDER,
|
498 |
'default' => [
|
499 |
+
'size' => 15,
|
500 |
],
|
501 |
'range' => [
|
502 |
'px' => [
|
507 |
],
|
508 |
'selectors' => [
|
509 |
'{{WRAPPER}} .eael-infobox.icon-on-right .infobox-content' => 'padding-right: {{SIZE}}px;',
|
|
|
510 |
],
|
511 |
'condition' => [
|
512 |
'eael_infobox_img_type' => 'img-on-right',
|
563 |
]
|
564 |
);
|
565 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
$this->end_controls_section();
|
567 |
|
568 |
/**
|
606 |
]
|
607 |
);
|
608 |
|
609 |
+
$this->add_control(
|
610 |
+
'eael_infobox_title_margin_bottom',
|
611 |
+
[
|
612 |
+
'label' => __( 'Title Margin Bottom', 'essential-addons-elementor' ),
|
613 |
+
'type' => Controls_Manager::SLIDER,
|
614 |
+
'default' => [
|
615 |
+
'size' => 30,
|
616 |
+
],
|
617 |
+
'range' => [
|
618 |
+
'px' => [
|
619 |
+
'min' => 0,
|
620 |
+
'max' => 300,
|
621 |
+
'step' => 1,
|
622 |
+
]
|
623 |
+
],
|
624 |
+
'selectors' => [
|
625 |
+
'{{WRAPPER}} .eael-infobox .infobox-content .title' => 'margin-bottom: {{SIZE}}px;',
|
626 |
+
],
|
627 |
+
]
|
628 |
+
);
|
629 |
+
|
630 |
$this->add_control(
|
631 |
'eael_infobox_content_heading',
|
632 |
[
|
elements/twitter-feed/twitter-feed.php
CHANGED
@@ -222,7 +222,6 @@ class Widget_Eael_Twitter_Feed extends Widget_Base {
|
|
222 |
);
|
223 |
|
224 |
$this->end_controls_section();
|
225 |
-
|
226 |
$this->start_controls_section(
|
227 |
'eael_section_pro',
|
228 |
[
|
@@ -647,7 +646,7 @@ class Widget_Eael_Twitter_Feed extends Widget_Base {
|
|
647 |
eael_twitter_feed_masonry();
|
648 |
<?php endif; ?>
|
649 |
loadingFeed.removeClass( 'show-loading' );
|
650 |
-
},
|
651 |
},
|
652 |
error: function() {
|
653 |
console.log('error loading');
|
222 |
);
|
223 |
|
224 |
$this->end_controls_section();
|
|
|
225 |
$this->start_controls_section(
|
226 |
'eael_section_pro',
|
227 |
[
|
646 |
eael_twitter_feed_masonry();
|
647 |
<?php endif; ?>
|
648 |
loadingFeed.removeClass( 'show-loading' );
|
649 |
+
}, 4000 );
|
650 |
},
|
651 |
error: function() {
|
652 |
console.log('error loading');
|
essential_adons_elementor.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Description: The ultimate elements library for Elementor page builder plugin for WordPress.
|
5 |
* Plugin URI: https://essential-addons.com/elementor/
|
6 |
* Author: Codetic
|
7 |
-
* Version: 2.
|
8 |
* Author URI: https://www.codetic.net
|
9 |
*
|
10 |
* Text Domain: essential-addons-elementor
|
@@ -28,7 +28,7 @@ require_once ESSENTIAL_ADDONS_EL_PATH.'admin/settings.php';
|
|
28 |
*/
|
29 |
function eael_activated_modules() {
|
30 |
|
31 |
-
$eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'img-comparison', 'instagram-gallery', 'interactive-promo', 'lightbox', 'post-block', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonial-slider', 'testimonials', 'testimonials', 'weforms', 'static-product', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'flip-carousel', 'interactive-cards', 'ninja-form', 'gravity-form', 'caldera-form', 'wisdom_registered_setting', 'twitter-feed', 'facebook-feed', 'data-table', 'filter-gallery' ];
|
32 |
|
33 |
$eael_default_settings = array_fill_keys( $eael_default_keys, true );
|
34 |
$eael_get_settings = get_option( 'eael_save_settings', $eael_default_settings );
|
@@ -50,7 +50,7 @@ function eael_activated_modules() {
|
|
50 |
*/
|
51 |
function add_eael_elements(){
|
52 |
|
53 |
-
$eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'img-comparison', 'instagram-gallery', 'interactive-promo', 'lightbox', 'post-block', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonial-slider', 'testimonials', 'testimonials', 'weforms', 'static-product', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'flip-carousel', 'interactive-cards', 'ninja-form', 'gravity-form', 'caldera-form', 'wisdom_registered_setting', 'twitter-feed', 'facebook-feed', 'data-table', 'filter-gallery' ];
|
54 |
$eael_default_settings = array_fill_keys( $eael_default_keys, true );
|
55 |
|
56 |
$is_component_active = eael_activated_modules();
|
@@ -129,6 +129,12 @@ function add_eael_elements(){
|
|
129 |
if( $is_component_active['filter-gallery'] ) {
|
130 |
require_once ESSENTIAL_ADDONS_EL_PATH.'elements/filterable-gallery/filterable-gallery.php';
|
131 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
add_action('elementor/widgets/widgets_registered','add_eael_elements');
|
134 |
|
@@ -140,6 +146,7 @@ add_action('elementor/widgets/widgets_registered','add_eael_elements');
|
|
140 |
function essential_addons_el_enqueue(){
|
141 |
$is_component_active = eael_activated_modules();
|
142 |
wp_enqueue_style('essential_addons_elementor-css',ESSENTIAL_ADDONS_EL_URL.'assets/css/essential-addons-elementor.css');
|
|
|
143 |
|
144 |
if( $is_component_active['fancy-text'] ) {
|
145 |
wp_enqueue_script('essential_addons_elementor-fancy-text-js',ESSENTIAL_ADDONS_EL_URL.'assets/js/fancy-text.js', array('jquery'),'1.0', true);
|
@@ -167,6 +174,10 @@ function essential_addons_el_enqueue(){
|
|
167 |
wp_enqueue_script('essential_addons_magnific-popup-js',ESSENTIAL_ADDONS_EL_URL.'assets/js/jquery.magnific-popup.min.js', array('jquery'),'1.0', true);
|
168 |
}
|
169 |
|
|
|
|
|
|
|
|
|
170 |
}
|
171 |
add_action( 'wp_enqueue_scripts', 'essential_addons_el_enqueue' );
|
172 |
|
4 |
* Description: The ultimate elements library for Elementor page builder plugin for WordPress.
|
5 |
* Plugin URI: https://essential-addons.com/elementor/
|
6 |
* Author: Codetic
|
7 |
+
* Version: 2.5.0
|
8 |
* Author URI: https://www.codetic.net
|
9 |
*
|
10 |
* Text Domain: essential-addons-elementor
|
28 |
*/
|
29 |
function eael_activated_modules() {
|
30 |
|
31 |
+
$eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'img-comparison', 'instagram-gallery', 'interactive-promo', 'lightbox', 'post-block', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonial-slider', 'testimonials', 'testimonials', 'weforms', 'static-product', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'flip-carousel', 'interactive-cards', 'ninja-form', 'gravity-form', 'caldera-form', 'wisdom_registered_setting', 'twitter-feed', 'facebook-feed', 'data-table', 'filter-gallery', 'img-accordion','content-ticker' ];
|
32 |
|
33 |
$eael_default_settings = array_fill_keys( $eael_default_keys, true );
|
34 |
$eael_get_settings = get_option( 'eael_save_settings', $eael_default_settings );
|
50 |
*/
|
51 |
function add_eael_elements(){
|
52 |
|
53 |
+
$eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'img-comparison', 'instagram-gallery', 'interactive-promo', 'lightbox', 'post-block', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonial-slider', 'testimonials', 'testimonials', 'weforms', 'static-product', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'flip-carousel', 'interactive-cards', 'ninja-form', 'gravity-form', 'caldera-form', 'wisdom_registered_setting', 'twitter-feed', 'facebook-feed', 'data-table', 'filter-gallery', 'img-accordion', 'content-ticker' ];
|
54 |
$eael_default_settings = array_fill_keys( $eael_default_keys, true );
|
55 |
|
56 |
$is_component_active = eael_activated_modules();
|
129 |
if( $is_component_active['filter-gallery'] ) {
|
130 |
require_once ESSENTIAL_ADDONS_EL_PATH.'elements/filterable-gallery/filterable-gallery.php';
|
131 |
}
|
132 |
+
if( $is_component_active['image-accordion'] ) {
|
133 |
+
require_once ESSENTIAL_ADDONS_EL_PATH.'elements/image-accordion/image-accordion.php';
|
134 |
+
}
|
135 |
+
if( $is_component_active['content-ticker'] ) {
|
136 |
+
require_once ESSENTIAL_ADDONS_EL_PATH.'elements/content-ticker/content-ticker.php';
|
137 |
+
}
|
138 |
}
|
139 |
add_action('elementor/widgets/widgets_registered','add_eael_elements');
|
140 |
|
146 |
function essential_addons_el_enqueue(){
|
147 |
$is_component_active = eael_activated_modules();
|
148 |
wp_enqueue_style('essential_addons_elementor-css',ESSENTIAL_ADDONS_EL_URL.'assets/css/essential-addons-elementor.css');
|
149 |
+
wp_enqueue_style('essential_addons_elementor-slick-css',ESSENTIAL_ADDONS_EL_URL.'assets/slick/slick.css');
|
150 |
|
151 |
if( $is_component_active['fancy-text'] ) {
|
152 |
wp_enqueue_script('essential_addons_elementor-fancy-text-js',ESSENTIAL_ADDONS_EL_URL.'assets/js/fancy-text.js', array('jquery'),'1.0', true);
|
174 |
wp_enqueue_script('essential_addons_magnific-popup-js',ESSENTIAL_ADDONS_EL_URL.'assets/js/jquery.magnific-popup.min.js', array('jquery'),'1.0', true);
|
175 |
}
|
176 |
|
177 |
+
if( $is_component_active['content-ticker'] ) {
|
178 |
+
wp_enqueue_script('essential_addons_elementor-slick-js',ESSENTIAL_ADDONS_EL_URL.'assets/slick/slick.min.js', array('jquery'),'1.0', true);
|
179 |
+
}
|
180 |
+
|
181 |
}
|
182 |
add_action( 'wp_enqueue_scripts', 'essential_addons_el_enqueue' );
|
183 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Codetic, re_enter_rupok, Asif2BD, robicse11128
|
|
3 |
Tags: elementor, elements, addons, elementor addon, elementor widget, page builder, builder, visual editor, wordpress page builder, elementor form
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9.4
|
6 |
-
Stable tag: 2.
|
7 |
License: GPLv3
|
8 |
License URI: https://opensource.org/licenses/GPL-3.0
|
9 |
|
@@ -20,7 +20,7 @@ Ultimate elements library for Elementor WordPress Page Builder. Lots of useful
|
|
20 |
|
21 |
### Features
|
22 |
|
23 |
-
*
|
24 |
* Fully Customizable
|
25 |
* Unlimited Design Options
|
26 |
* Elements Control option
|
@@ -53,10 +53,12 @@ Ultimate elements library for Elementor WordPress Page Builder. Lots of useful
|
|
53 |
* [Twitter Feed](https://essential-addons.com/elementor/twitter-feed/)
|
54 |
* [Data Table](https://essential-addons.com/elementor/table/)
|
55 |
* [Filterable Gallery](https://essential-addons.com/elementor/filterable-gallery/)
|
|
|
|
|
56 |
|
57 |
|
58 |
|
59 |
-
### More elements on [Premium Version](https://essential-addons.com/elementor/buy.php)
|
60 |
|
61 |
* [Post Block (Flex)](https://essential-addons.com/elementor/post-block/)
|
62 |
* [Lightbox & Modal](https://essential-addons.com/elementor/lightbox-modal/)
|
@@ -72,6 +74,7 @@ Ultimate elements library for Elementor WordPress Page Builder. Lots of useful
|
|
72 |
* [Facebook Feed Carousel](https://essential-addons.com/elementor/facebook-feed/)
|
73 |
* [Twitter Feed Carousel](https://essential-addons.com/elementor/twitter-feed/)
|
74 |
* [Dynamic Filterable Gallery](https://essential-addons.com/elementor/filterable-gallery/)
|
|
|
75 |
|
76 |
More coming soon (weekly update) ...
|
77 |
|
@@ -122,6 +125,14 @@ Your existing elements/content will work with premium version. So you won't lose
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
= 2.4.3 =
|
126 |
|
127 |
- Pricing Table improved
|
3 |
Tags: elementor, elements, addons, elementor addon, elementor widget, page builder, builder, visual editor, wordpress page builder, elementor form
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9.4
|
6 |
+
Stable tag: 2.5.0
|
7 |
License: GPLv3
|
8 |
License URI: https://opensource.org/licenses/GPL-3.0
|
9 |
|
20 |
|
21 |
### Features
|
22 |
|
23 |
+
* 24+ Stunning Elements (Free)
|
24 |
* Fully Customizable
|
25 |
* Unlimited Design Options
|
26 |
* Elements Control option
|
53 |
* [Twitter Feed](https://essential-addons.com/elementor/twitter-feed/)
|
54 |
* [Data Table](https://essential-addons.com/elementor/table/)
|
55 |
* [Filterable Gallery](https://essential-addons.com/elementor/filterable-gallery/)
|
56 |
+
* [Image Accordion](https://essential-addons.com/elementor/image-accordion/)
|
57 |
+
* [Content Ticket](https://essential-addons.com/elementor/content-ticker/)
|
58 |
|
59 |
|
60 |
|
61 |
+
### More elements (15+) on [Premium Version](https://essential-addons.com/elementor/buy.php)
|
62 |
|
63 |
* [Post Block (Flex)](https://essential-addons.com/elementor/post-block/)
|
64 |
* [Lightbox & Modal](https://essential-addons.com/elementor/lightbox-modal/)
|
74 |
* [Facebook Feed Carousel](https://essential-addons.com/elementor/facebook-feed/)
|
75 |
* [Twitter Feed Carousel](https://essential-addons.com/elementor/twitter-feed/)
|
76 |
* [Dynamic Filterable Gallery](https://essential-addons.com/elementor/filterable-gallery/)
|
77 |
+
* [Smart Post List](https://essential-addons.com/elementor/post-list/)
|
78 |
|
79 |
More coming soon (weekly update) ...
|
80 |
|
125 |
|
126 |
== Changelog ==
|
127 |
|
128 |
+
= 2.5.0 =
|
129 |
+
|
130 |
+
- Image Accordion Element added
|
131 |
+
- Content Ticker element added
|
132 |
+
- Info Box element updated with flexbox layout
|
133 |
+
- Twitter Feed element improved
|
134 |
+
- Few minor bugfix and improvements
|
135 |
+
|
136 |
= 2.4.3 =
|
137 |
|
138 |
- Pricing Table improved
|