Elementor Custom Skin - Version 3.1.5

Version Description

  • Fixed issue with Custom Grid tab missing when the woocommerce is active.
  • Fixed deprecated erros with the new Elementor version.
Download this release

Release Info

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

Code changes from version 3.1.4 to 3.1.5

ele-custom-skin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Ele Custom Skin
4
- * Version: 3.1.4
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.5.0
14
- * Elementor Pro tested up to: 3.5.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.4');
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.5
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.7.0
14
+ * Elementor Pro tested up to: 3.7.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.5');
24
 
25
  include_once ELECS_DIR.'includes/ecs-notices.php';
26
  include_once ELECS_DIR.'includes/ecs-dependencies.php';
includes/admin-bar-menu.php CHANGED
@@ -31,7 +31,7 @@ class ECS_Admin_Bar_Menu {
31
  return '';
32
  }
33
 
34
- if ( ! \Elementor\Plugin::$instance->db->is_built_with_elementor( $post_id ) ) {
35
  return '';
36
  }
37
 
31
  return '';
32
  }
33
 
34
+ if ( ! \Elementor\Plugin::$instance->documents->get( $post_id )->is_built_with_elementor() ) {
35
  return '';
36
  }
37
 
modules/loop-item/widgets/loop-item.php CHANGED
@@ -69,7 +69,7 @@ class Ele_Custom_Loop_Item_Widget extends \Elementor\Widget_Base {
69
  * @since 0.1
70
  * @access protected
71
  */
72
- protected function _register_controls() {
73
 
74
  $this->start_controls_section(
75
  'content_section',
@@ -117,8 +117,8 @@ class Ele_Custom_Loop_Item_Widget extends \Elementor\Widget_Base {
117
  protected function show_nice(){
118
  $is_preview=false;
119
  $document = elecs_get_document( get_the_ID() );
120
- //print_r($document->get_location());
121
- if($document) if('custom_grid' == $document->get_location()){
122
  if (isset($_GET['action'])) $is_preview = $_GET['action'] == 'elementor' ? true : false;
123
  }
124
  return $is_preview;
69
  * @since 0.1
70
  * @access protected
71
  */
72
+ protected function register_controls() {
73
 
74
  $this->start_controls_section(
75
  'content_section',
117
  protected function show_nice(){
118
  $is_preview=false;
119
  $document = elecs_get_document( get_the_ID() );
120
+ //print_r ( $document->get_type());
121
+ if($document) if('custom_grid' == $document->get_type()){
122
  if (isset($_GET['action'])) $is_preview = $_GET['action'] == 'elementor' ? true : false;
123
  }
124
  return $is_preview;
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dudaster
3
  Tags: page-builder, elementor, loop, archive list, post widget, skin, custom, post grid
4
  Donate link: https://www.paypal.me/dudaster
5
  Requires at least: 5.0
6
- Tested up to: 5.8.2
7
- Stable tag: 3.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,7 +16,6 @@ This plugin adds new skin to Elementor Page Builder Posts and Posts Archive widg
16
 
17
  You can design a loop item just like a single template and it would be used as a skin so you can be able to create a post grid the way you like.
18
 
19
- Working on a major release!!! A new widget will be available that would increase the flexibility of loop creation.
20
 
21
  All you have to do is to create a Custom Grid Template and place the Post Item Widget (placeholder) in your template made with sections and columns, and why not other widgets.
22
 
@@ -64,6 +63,10 @@ Add to your template a Post or Post Archive widget and from Skins select Custom
64
 
65
  == Changelog ==
66
 
 
 
 
 
67
  = 3.1.4 =
68
  * Fixed error with Custom Grid Loop Item Widget when added to the template.
69
  * Fixed issues with the new Theme Builder View
3
  Tags: page-builder, elementor, loop, archive list, post widget, skin, custom, post grid
4
  Donate link: https://www.paypal.me/dudaster
5
  Requires at least: 5.0
6
+ Tested up to: 5.9.2
7
+ Stable tag: 3.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  You can design a loop item just like a single template and it would be used as a skin so you can be able to create a post grid the way you like.
18
 
 
19
 
20
  All you have to do is to create a Custom Grid Template and place the Post Item Widget (placeholder) in your template made with sections and columns, and why not other widgets.
21
 
63
 
64
  == Changelog ==
65
 
66
+ = 3.1.5 =
67
+ * Fixed issue with Custom Grid tab missing when the woocommerce is active.
68
+ * Fixed deprecated erros with the new Elementor version.
69
+
70
  = 3.1.4 =
71
  * Fixed error with Custom Grid Loop Item Widget when added to the template.
72
  * Fixed issues with the new Theme Builder View
skins/skin-custom.php CHANGED
@@ -362,7 +362,7 @@ class Skin_Posts_ECS extends Skin_Base {
362
  $parent_settings[$this->get_id().'_post_slider'] = isset($parent_settings[$this->get_id().'_post_slider'])? $parent_settings[$this->get_id().'_post_slider'] : "";
363
 
364
  if($parent_settings[$this->get_id().'_post_slider'] == "yes") {
365
- echo '<div class="swiper-container">';
366
  $this->grid_settings['allow'] = false;
367
  } else {// we don't use custom grid if slider is activated
368
  if($parent_settings[$this->get_id().'_use_custom_grid'] == "yes" && $parent_settings[$this->get_id().'_custom_grid'] ){
362
  $parent_settings[$this->get_id().'_post_slider'] = isset($parent_settings[$this->get_id().'_post_slider'])? $parent_settings[$this->get_id().'_post_slider'] : "";
363
 
364
  if($parent_settings[$this->get_id().'_post_slider'] == "yes") {
365
+ echo '<div class="elementor-main-swiper swiper-container">';
366
  $this->grid_settings['allow'] = false;
367
  } else {// we don't use custom grid if slider is activated
368
  if($parent_settings[$this->get_id().'_use_custom_grid'] == "yes" && $parent_settings[$this->get_id().'_custom_grid'] ){
theme-builder/documents/custom-grid.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
 
3
  use ElementorPro\Modules\ThemeBuilder\Documents\Theme_Section_Document;
 
 
4
 
5
  if ( ! defined( 'ABSPATH' ) ) {
6
  exit; // Exit if accessed directly
@@ -57,4 +59,3 @@ I want a preview like the template not default
57
 
58
 
59
  }
60
-
1
  <?php
2
 
3
  use ElementorPro\Modules\ThemeBuilder\Documents\Theme_Section_Document;
4
+ use Elementor\Core\DocumentTypes\Post;
5
+ use ElementorPro\Modules\ThemeBuilder\Documents\Single;
6
 
7
  if ( ! defined( 'ABSPATH' ) ) {
8
  exit; // Exit if accessed directly
59
 
60
 
61
  }
 
theme-builder/documents/loop.php CHANGED
@@ -20,6 +20,10 @@ class Loop extends Single {
20
  return $properties;
21
  }
22
 
 
 
 
 
23
  public function get_name() {
24
  return 'loop';
25
  }
20
  return $properties;
21
  }
22
 
23
+ protected static function get_site_editor_type() {
24
+ return 'loop';
25
+ }
26
+
27
  public function get_name() {
28
  return 'loop';
29
  }
theme-builder/dynamic-tags/tags/post-summary.php CHANGED
@@ -26,7 +26,7 @@ class Post_Summary extends Tag {
26
  return [ Module::TEXT_CATEGORY ];
27
  }
28
 
29
- protected function _register_controls() {
30
  $this->add_control(
31
  'length',
32
  [
26
  return [ Module::TEXT_CATEGORY ];
27
  }
28
 
29
+ protected function register_controls() {
30
  $this->add_control(
31
  'length',
32
  [
theme-builder/init.php CHANGED
@@ -20,6 +20,9 @@ use ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager;
20
 
21
  Plugin::elementor()->documents->register_document_type( 'loop', Loop::get_class_full_name() );
22
  Source_Local::add_template_type( 'loop' );
 
 
 
23
 
24
  function elecs_get_document( $post_id ) {
25
  $document = null;
@@ -101,4 +104,4 @@ add_action( 'elementor/documents/register', 'elecs_register_documents_grid' );
101
  );
102
  }
103
 
104
- add_action( 'elementor/theme/register_locations', 'elecs_register_location_grid' );
20
 
21
  Plugin::elementor()->documents->register_document_type( 'loop', Loop::get_class_full_name() );
22
  Source_Local::add_template_type( 'loop' );
23
+ //fix for EPro 3.6 when woocommerce is active
24
+ Plugin::elementor()->documents->register_document_type( 'custom_grid', customGrid::get_class_full_name() );
25
+ Source_Local::add_template_type( 'custom_grid' );
26
 
27
  function elecs_get_document( $post_id ) {
28
  $document = null;
104
  );
105
  }
106
 
107
+ //add_action( 'elementor/theme/register_locations', 'elecs_register_location_grid' );//not working from EPro 3.6