Skip to content

Commit

Permalink
Merge pull request #223 from rupok/rupok-dev
Browse files Browse the repository at this point in the history
 update to v2.9.9
  • Loading branch information
rupok authored Mar 25, 2019
2 parents ddae5fd + 64c6628 commit 5ed49a3
Show file tree
Hide file tree
Showing 26 changed files with 579 additions and 1,220 deletions.
5 changes: 5 additions & 0 deletions admin/partials/elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@
<label for="progress-bar"></label>
<p class="eael-el-title"><?php _e( 'Progress Bar', 'essential-addons-elementor' ) ?></p>
</div>
<div class="eael-checkbox">
<input type="checkbox" id="feature-list" name="progress-bar" <?php checked( 1, $this->eael_get_settings['feature-list'], true ); ?> >
<label for="feature-list"></label>
<p class="eael-el-title"><?php _e( 'Feature List', 'essential-addons-elementor' ) ?></p>
</div>
</div><!--./checkbox-container-->
</div>
<div class="col-full">
Expand Down
16 changes: 8 additions & 8 deletions admin/partials/extensions.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@
<div class="row">
<div class="col-full">
<!-- Content Element Starts -->
<h3>Available Extensions</h3>
<!-- <h3>Available Extensions</h3>
<div class="eael-checkbox-container">

<div class="eael-checkbox">
<input type="checkbox" id="section-particles" name="section-particles" <?php checked( 1, $this->eael_get_settings['section-particles'], true ); ?> >
<label for="section-particles"></label>
<p class="eael-el-title"><?php _e( 'Section Particles Effect', 'essential-addons-elementor' ) ?></p>
</div>

</div>
</div> -->
<h3>Premium Extensions</h3>
<div class="eael-checkbox-container">

Expand All @@ -21,6 +15,12 @@
<p class="eael-el-title"><?php _e( 'Section Parallax Scrolling', 'essential-addons-elementor' ) ?></p>
</div>

<div class="eael-checkbox">
<input type="checkbox" id="section-particles" name="section-particles" disabled>
<label for="section-particles" class="<?php if( (bool) $this->is_pro === false ) : echo 'eael-get-pro'; endif; ?>"></label>
<p class="eael-el-title"><?php _e( 'Section Particles', 'essential-addons-elementor' ) ?></p>
</div>

</div>
<!-- Content Element Ends -->

Expand Down
3 changes: 2 additions & 1 deletion admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class Eael_Admin_Settings {
* @var array
* @since 2.3.0
*/
public $eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonials', 'weforms', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'ninja-form', 'gravity-form', 'caldera-form', 'wpforms', 'twitter-feed', 'data-table', 'filter-gallery', 'image-accordion','content-ticker', 'tooltip', 'adv-accordion', 'adv-tabs', 'progress-bar', 'section-particles', 'feature-list'];

public $eael_default_keys = [ 'contact-form-7', 'count-down', 'creative-btn', 'fancy-text', 'post-grid', 'post-timeline', 'product-grid', 'team-members', 'testimonials', 'weforms', 'call-to-action', 'flip-box', 'info-box', 'dual-header', 'price-table', 'ninja-form', 'gravity-form', 'caldera-form', 'wpforms', 'twitter-feed', 'data-table', 'filter-gallery', 'image-accordion','content-ticker', 'tooltip', 'adv-accordion', 'adv-tabs', 'progress-bar', 'feature-list'];

/**
* Will Contain All Components Default Values
Expand Down
10 changes: 0 additions & 10 deletions assets/css/essential-addons-elementor.css
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7533,16 +7533,6 @@ a.eael-gallery-load-more, a.eael-gallery-load-more:hover {
transform: none;
}
}
.elementor-section.eael-particles-section .elementor-container,
.elementor-section .elementor-container {
z-index: 99;
}

.elementor-section.eael-particles-section > canvas {
position: absolute;
top: 0;
}

/*----------------------------*/
/* 35. Feature List
/*----------------------------*/
Expand Down
100 changes: 14 additions & 86 deletions assets/js/eael-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,20 @@
filter: $('.eael-filter-gallery-control .control.active', $scope).data('filter')
});

// layout gal - not necessary, just in case
$isotope_gallery.imagesLoaded().progress(function() {
$isotope_gallery.isotope('layout');
});
// layout gal, while images are loadin
$isotope_gallery.imagesLoaded().progress(function() {
$isotope_gallery.isotope('layout');
});

// layout gal, on click tabs
$isotope_gallery.on('arrangeComplete', function() {
$isotope_gallery.isotope('layout');
});

// layout gal, after window loaded
$(window).on('load', function() {
$isotope_gallery.isotope('layout');
});

// filter
$scope.on('click', '.control', function() {
Expand Down Expand Up @@ -565,87 +575,6 @@
var ProgressBar = function ($scope, $) {
$('.eael-progressbar', $scope).eaelProgressBar()
};

/*=================================*/
/* 36. Section Particles
/*=================================*/
var EaelParticlesHandler = function ($scope, $) {
var sectionId = $scope.data('id'),
editMode = elementorFrontend.isEditMode(),
theme = $scope.data('theme'),
settings;

$scope.addClass('eael-particles-section');

if (editMode) {
var editorElements = null,
particleArgs = {},
settings = {};

if (!window.elementor.hasOwnProperty('elements')) {
return false;
}

editorElements = window.elementor.elements;

if (!editorElements.models) {
return false;
}

$.each(editorElements.models, function (i, el) {
if (sectionId == el.id) {
particleArgs = el.attributes.settings.attributes;

} else if (el.id == $scope.closest('.elementor-top-section').data('id')) {
$.each(el.attributes.elements.models, function (i, col) {
$.each(col.attributes.elements.models, function (i, subSec) {
particleArgs = subSec.attributes.settings.attributes;
});
});
}
});

settings.switch = particleArgs['eael_particle_switch'];
settings.themeSource = particleArgs['eael_particle_theme_from'];

if (settings.themeSource == 'presets') {
settings.selected_theme = (ParticleThemesData[particleArgs['eael_particle_preset_themes']]);
}

if ((settings.themeSource == 'custom') && ('' !== particleArgs['eael_particles_custom_style'])) {
settings.selected_theme = particleArgs['eael_particles_custom_style'];
}

if (0 !== settings.length) {
settings = settings;
}
} else {
if (typeof theme != 'undefined' && theme !== '') {
particlesJS('eael-section-particles-' + sectionId, theme);
}
}

if (!editMode || !settings) {
return false;
}

if (settings.switch == 'yes') {

if (settings.themeSource === 'presets' || settings.themeSource === 'custom' && '' !== settings.selected_theme) {
$scope.attr('id', 'eael-section-particles-' + sectionId);
if (typeof particlesJS !== 'undefined' && $.isFunction(particlesJS)) {
particlesJS("eael-section-particles-" + sectionId, JSON.parse(settings.selected_theme));
$scope.children('canvas.particles-js-canvas-el').css({
position: 'absolute',
top: 0
});
}
}
} else {
$scope.removeClass('eael-particles-section');
}

};

$(window).on('elementor/frontend/init', function () {
if(elementorFrontend.isEditMode()) {
Expand All @@ -664,7 +593,6 @@
elementorFrontend.hooks.addAction('frontend/element_ready/eael-image-accordion.default', ImageAccordion);
elementorFrontend.hooks.addAction('frontend/element_ready/eael-countdown.default', CountDown);
elementorFrontend.hooks.addAction('frontend/element_ready/eael-progress-bar.default', ProgressBar);
elementorFrontend.hooks.addAction( 'frontend/element_ready/section', EaelParticlesHandler );
});

}(jQuery));
5 changes: 0 additions & 5 deletions assets/js/particles.js

This file was deleted.

9 changes: 0 additions & 9 deletions assets/sass/_particles.scss

This file was deleted.

1 change: 0 additions & 1 deletion assets/sass/essential-addons-elementor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@
@import "tooltip";
@import "progress-bar";
@import "img-accordion";
@import "particles";
@import "feature-list";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 5ed49a3

Please sign in to comment.