Version Description
- Fixed jQuery ajax dependecies.
- Added a timeout for preview for speed improvement.
- Fixed Astra theme css issues.
- Fixed AJAX charset issue.
Download this release
Release Info
Developer | dudaster |
Plugin | Elementor Custom Skin |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- assets/css/ecs-style.css +1 -1
- assets/js/ecs_preview.js +21 -8
- ele-custom-skin.php +2 -2
- includes/ajax-pagination.php +3 -2
- readme.txt +7 -1
assets/css/ecs-style.css
CHANGED
@@ -48,7 +48,7 @@
|
|
48 |
margin: 0;
|
49 |
padding: 0;
|
50 |
}
|
51 |
-
.ecs-post-loop
|
52 |
width:100%;
|
53 |
}
|
54 |
|
48 |
margin: 0;
|
49 |
padding: 0;
|
50 |
}
|
51 |
+
.ecs-post-loop.ast-article-post{
|
52 |
width:100%;
|
53 |
}
|
54 |
|
assets/js/ecs_preview.js
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
var EleCustomSkinPreview = elementorModules.frontend.handlers.Base.extend({
|
2 |
|
3 |
loadedTemplates:{
|
@@ -79,18 +80,23 @@ var EleCustomSkinPreview = elementorModules.frontend.handlers.Base.extend({
|
|
79 |
this.previewArguments.columns = columns;
|
80 |
},
|
81 |
onElementChange: function onElementChange() {
|
82 |
-
this
|
|
|
|
|
|
|
83 |
},
|
84 |
getOriginal: function getOriginal(){
|
85 |
this.originalContent=jQuery('.page-content .elementor-section-wrap').html();
|
86 |
},
|
87 |
run: function run(){
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
|
94 |
}
|
95 |
|
96 |
});
|
@@ -105,4 +111,11 @@ jQuery(window).on('elementor/frontend/init', () => {
|
|
105 |
};
|
106 |
elementorFrontend.hooks.addAction('frontend/element_ready/global', addHandler);
|
107 |
|
108 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var ecsExecTime = new Date().getTime();
|
2 |
var EleCustomSkinPreview = elementorModules.frontend.handlers.Base.extend({
|
3 |
|
4 |
loadedTemplates:{
|
80 |
this.previewArguments.columns = columns;
|
81 |
},
|
82 |
onElementChange: function onElementChange() {
|
83 |
+
var self = this;
|
84 |
+
setTimeout(function(){
|
85 |
+
self.run();
|
86 |
+
}, 2000);
|
87 |
},
|
88 |
getOriginal: function getOriginal(){
|
89 |
this.originalContent=jQuery('.page-content .elementor-section-wrap').html();
|
90 |
},
|
91 |
run: function run(){
|
92 |
+
if(ecsRunEvery(2000)){
|
93 |
+
this.destroyContent();
|
94 |
+
this.checkArguments();
|
95 |
+
this.getOriginal();
|
96 |
+
this.generateContent();
|
97 |
+
this.writePreview();
|
98 |
+
//console.log(this.previewContent+" sunt aici");
|
99 |
+
}
|
100 |
}
|
101 |
|
102 |
});
|
111 |
};
|
112 |
elementorFrontend.hooks.addAction('frontend/element_ready/global', addHandler);
|
113 |
|
114 |
+
});
|
115 |
+
|
116 |
+
function ecsRunEvery( miliseconds ){
|
117 |
+
if(new Date().getTime() < ecsExecTime + miliseconds) return false;
|
118 |
+
ecsExecTime = new Date().getTime();
|
119 |
+
return true;
|
120 |
+
|
121 |
+
}
|
ele-custom-skin.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Ele Custom Skin
|
4 |
-
* Version: 2.2.
|
5 |
* Description: Elementor Custom Skin for Posts and Archive Posts. You can create a skin as you want.
|
6 |
* Plugin URI: https://dudaster.com
|
7 |
* Author: Dudaster.com
|
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
18 |
define( 'ELECS_DIR', plugin_dir_path( __FILE__ ));
|
19 |
define( 'ELECS_NAME', plugin_basename( __FILE__ ));
|
20 |
define( 'ELECS_URL', plugin_dir_url( __FILE__ ));
|
21 |
-
define ('ELECS_VER','2.2.
|
22 |
|
23 |
include_once ELECS_DIR.'includes/ecs-notices.php';
|
24 |
include_once ELECS_DIR.'includes/ecs-dependencies.php';
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Ele Custom Skin
|
4 |
+
* Version: 2.2.2
|
5 |
* Description: Elementor Custom Skin for Posts and Archive Posts. You can create a skin as you want.
|
6 |
* Plugin URI: https://dudaster.com
|
7 |
* Author: Dudaster.com
|
18 |
define( 'ELECS_DIR', plugin_dir_path( __FILE__ ));
|
19 |
define( 'ELECS_NAME', plugin_basename( __FILE__ ));
|
20 |
define( 'ELECS_URL', plugin_dir_url( __FILE__ ));
|
21 |
+
define ('ELECS_VER','2.2.2');
|
22 |
|
23 |
include_once ELECS_DIR.'includes/ecs-notices.php';
|
24 |
include_once ELECS_DIR.'includes/ecs-dependencies.php';
|
includes/ajax-pagination.php
CHANGED
@@ -442,7 +442,8 @@ class ECS_Ajax_Load {
|
|
442 |
$content = "";
|
443 |
$dom = new DOMDocument();
|
444 |
libxml_use_internal_errors(true);
|
445 |
-
$dom->loadHTML($html);
|
|
|
446 |
$xpath = new DOMXPath($dom);
|
447 |
$childs = $xpath->query('//div[@data-id="'.$id.'"]/div[@class="elementor-widget-container"]/div/* | //div[@data-elementor-type="custom_grid"]');
|
448 |
// $childs = $xpath->query('//div[@data-elementor-type="custom_grid"]');
|
@@ -458,7 +459,7 @@ class ECS_Ajax_Load {
|
|
458 |
|
459 |
global $wp_query;
|
460 |
|
461 |
-
wp_register_script('ecs_ajax_load', plugin_dir_url(__DIR__) . 'assets/js/ecs_ajax_pagination.js',array(),ELECS_VER);
|
462 |
|
463 |
wp_localize_script( 'ecs_ajax_load', 'ecs_ajax_params', array(
|
464 |
'ajaxurl' => site_url() . '/wp-admin/admin-ajax.php', // WordPress AJAX
|
442 |
$content = "";
|
443 |
$dom = new DOMDocument();
|
444 |
libxml_use_internal_errors(true);
|
445 |
+
$dom->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'));
|
446 |
+
//$dom->loadHTML($html);
|
447 |
$xpath = new DOMXPath($dom);
|
448 |
$childs = $xpath->query('//div[@data-id="'.$id.'"]/div[@class="elementor-widget-container"]/div/* | //div[@data-elementor-type="custom_grid"]');
|
449 |
// $childs = $xpath->query('//div[@data-elementor-type="custom_grid"]');
|
459 |
|
460 |
global $wp_query;
|
461 |
|
462 |
+
wp_register_script('ecs_ajax_load', plugin_dir_url(__DIR__) . 'assets/js/ecs_ajax_pagination.js',array('jquery'),ELECS_VER);
|
463 |
|
464 |
wp_localize_script( 'ecs_ajax_load', 'ecs_ajax_params', array(
|
465 |
'ajaxurl' => site_url() . '/wp-admin/admin-ajax.php', // WordPress AJAX
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: page-builder, elementor, loop, archive list, post widget, skin, custom, po
|
|
4 |
Donate link: https://www.paypal.me/dudaster
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.4.2
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -70,6 +70,12 @@ Add to your template a Post or Post Archive widget and from Skins select Custom
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
= 2.2.1 =
|
74 |
* Fixed issue with Ajax call from third party plugins like Smart Filter.
|
75 |
|
4 |
Donate link: https://www.paypal.me/dudaster
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.4.2
|
7 |
+
Stable tag: 2.2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 2.2.2 =
|
74 |
+
* Fixed jQuery ajax dependecies.
|
75 |
+
* Added a timeout for preview for speed improvement.
|
76 |
+
* Fixed Astra theme css issues.
|
77 |
+
* Fixed AJAX charset issue.
|
78 |
+
|
79 |
= 2.2.1 =
|
80 |
* Fixed issue with Ajax call from third party plugins like Smart Filter.
|
81 |
|