Elementor Custom Skin - Version 3.1.2

Version Description

  • Fixed the url error message issues.
Download this release

Release Info

Developer dudaster
Plugin Icon 128x128 Elementor Custom Skin
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

Files changed (3) hide show
  1. ele-custom-skin.php +4 -4
  2. includes/dynamic-style.php +21 -2
  3. readme.txt +4 -1
ele-custom-skin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Ele Custom Skin
4
- * Version: 3.1.1
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
@@ -10,8 +10,8 @@
10
  * Domain Path: /languages
11
  * License: GPLv3
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0
13
- * Elementor tested up to: 3.3.0
14
- * Elementor Pro tested up to: 3.3.0
15
  */
16
 
17
 
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
20
  define( 'ELECS_DIR', plugin_dir_path( __FILE__ ));
21
  define( 'ELECS_NAME', plugin_basename( __FILE__ ));
22
  define( 'ELECS_URL', plugin_dir_url( __FILE__ ));
23
- define ('ELECS_VER','3.1.1');
24
 
25
  include_once ELECS_DIR.'includes/ecs-notices.php';
26
  include_once ELECS_DIR.'includes/ecs-dependencies.php';
1
  <?php
2
  /*
3
  * Plugin Name: Ele Custom Skin
4
+ * Version: 3.1.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
10
  * Domain Path: /languages
11
  * License: GPLv3
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0
13
+ * Elementor tested up to: 3.4.0
14
+ * Elementor Pro tested up to: 3.4.0
15
  */
16
 
17
 
20
  define( 'ELECS_DIR', plugin_dir_path( __FILE__ ));
21
  define( 'ELECS_NAME', plugin_basename( __FILE__ ));
22
  define( 'ELECS_URL', plugin_dir_url( __FILE__ ));
23
+ define ('ELECS_VER','3.1.2');
24
 
25
  include_once ELECS_DIR.'includes/ecs-notices.php';
26
  include_once ELECS_DIR.'includes/ecs-dependencies.php';
includes/dynamic-style.php CHANGED
@@ -1,6 +1,25 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  function ECS_clean_selector_value($values){
5
  $interest=["url"];
6
  if(is_array($values)){
@@ -20,7 +39,7 @@ function ECS_recursive_unset(&$array, $unwanted_key) {
20
  unset($array[$unwanted_key]);
21
  foreach ($array as &$value) {
22
  if (is_array($value)) {
23
- recursive_unset($value, $unwanted_key);
24
  }
25
  }
26
  }
@@ -36,7 +55,7 @@ function ECS_set_dynamic_style( \Elementor\Element_Base $element ) {
36
 
37
  $all_controls = isset($all_controls) ? $all_controls : []; $dynamic_settings = isset($dynamic_settings) ? $dynamic_settings : [];
38
  $controls = array_intersect_key( $all_controls, $dynamic_settings );
39
- ECS_recursive_unset($dynamic_settings, 'link');//we don't need the link options
40
  $settings = $element->parse_dynamic_settings( $dynamic_settings, $controls); // @ <- dirty fix for that fugly controls-stack.php Illegal string offset 'url' error
41
 
42
  $ECS_css="";
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
 
4
+
5
+ function ECS_find_url_type($values){
6
+ $interest=["url"];
7
+ $keys=[];
8
+ if(is_array($values)){
9
+ foreach ($values as $key => $value){
10
+ if (isset($value["type"]) && $value["type"] == "url") $keys[]= $key;
11
+ }
12
+ }
13
+ return $keys;
14
+ }
15
+ /* peopele keep getting errors from url types */
16
+ function ECS_remove_url_type(&$array){
17
+ $keys=ECS_find_url_type($array);
18
+ foreach($keys as $key){
19
+ ECS_recursive_unset($array, $key);
20
+ }
21
+ }
22
+
23
  function ECS_clean_selector_value($values){
24
  $interest=["url"];
25
  if(is_array($values)){
39
  unset($array[$unwanted_key]);
40
  foreach ($array as &$value) {
41
  if (is_array($value)) {
42
+ ECS_recursive_unset($value, $unwanted_key);
43
  }
44
  }
45
  }
55
 
56
  $all_controls = isset($all_controls) ? $all_controls : []; $dynamic_settings = isset($dynamic_settings) ? $dynamic_settings : [];
57
  $controls = array_intersect_key( $all_controls, $dynamic_settings );
58
+ ECS_remove_url_type($controls);//we don't need the link options
59
  $settings = $element->parse_dynamic_settings( $dynamic_settings, $controls); // @ <- dirty fix for that fugly controls-stack.php Illegal string offset 'url' error
60
 
61
  $ECS_css="";
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.7.2
7
- Stable tag: 3.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -64,6 +64,9 @@ Add to your template a Post or Post Archive widget and from Skins select Custom
64
 
65
  == Changelog ==
66
 
 
 
 
67
  = 3.1.1 =
68
  * Tested for the new elementor versions
69
 
4
  Donate link: https://www.paypal.me/dudaster
5
  Requires at least: 5.0
6
  Tested up to: 5.7.2
7
+ Stable tag: 3.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
64
 
65
  == Changelog ==
66
 
67
+ = 3.1.2 =
68
+ * Fixed the url error message issues.
69
+
70
  = 3.1.1 =
71
  * Tested for the new elementor versions
72