Dynamic Conditions - Version 1.6.0

Version Description

  • Add support for containers
Download this release

Release Info

Developer rtowebsites
Plugin Icon wp plugin Dynamic Conditions
Version 1.6.0
Comparing to
See all releases

Code changes from version 1.5.1 to 1.6.0

Lib/DynamicConditions.php CHANGED
@@ -147,6 +147,8 @@ class DynamicConditions {
147
 
148
  $this->loader->addAction( 'elementor/element/popup/section_advanced/after_section_end', $pluginAdmin, 'addConditionFields', 10, 3 );
149
 
 
 
150
  $this->loader->addAction( 'admin_notices', $pluginAdmin, 'addAdminNotices', 10, 3 );
151
  $this->loader->addAction( 'admin_enqueue_scripts', $pluginAdmin, 'enqueueStyles' );
152
  $this->loader->addAction( 'elementor/editor/before_enqueue_styles', $pluginAdmin, 'enqueueStyles' );
@@ -176,6 +178,10 @@ class DynamicConditions {
176
  $this->loader->addAction( "elementor/frontend/column/before_render", $pluginPublic, 'filterSectionContentBefore', 10, 1 );
177
  $this->loader->addAction( "elementor/frontend/column/after_render", $pluginPublic, 'filterSectionContentAfter', 10, 1 );
178
 
 
 
 
 
179
  // filter popup
180
  $this->loader->addAction( "elementor/theme/before_do_popup", $pluginPublic, 'checkPopupsCondition', 10, 1 );
181
  }
147
 
148
  $this->loader->addAction( 'elementor/element/popup/section_advanced/after_section_end', $pluginAdmin, 'addConditionFields', 10, 3 );
149
 
150
+ $this->loader->addAction( 'elementor/element/container/section_layout/after_section_end', $pluginAdmin, 'addConditionFields', 10, 3 );
151
+
152
  $this->loader->addAction( 'admin_notices', $pluginAdmin, 'addAdminNotices', 10, 3 );
153
  $this->loader->addAction( 'admin_enqueue_scripts', $pluginAdmin, 'enqueueStyles' );
154
  $this->loader->addAction( 'elementor/editor/before_enqueue_styles', $pluginAdmin, 'enqueueStyles' );
178
  $this->loader->addAction( "elementor/frontend/column/before_render", $pluginPublic, 'filterSectionContentBefore', 10, 1 );
179
  $this->loader->addAction( "elementor/frontend/column/after_render", $pluginPublic, 'filterSectionContentAfter', 10, 1 );
180
 
181
+ // filter container
182
+ $this->loader->addAction( "elementor/frontend/container/before_render", $pluginPublic, 'filterSectionContentBefore', 10, 1 );
183
+ $this->loader->addAction( "elementor/frontend/container/after_render", $pluginPublic, 'filterSectionContentAfter', 10, 1 );
184
+
185
  // filter popup
186
  $this->loader->addAction( "elementor/theme/before_do_popup", $pluginPublic, 'checkPopupsCondition', 10, 1 );
187
  }
Lib/DynamicTags/NumberPostsTag.php CHANGED
@@ -30,7 +30,7 @@ Class NumberPostsTag extends \Elementor\Core\DynamicTags\Tag {
30
  return [ Module::TEXT_CATEGORY ];
31
  }
32
 
33
- protected function _register_controls() {
34
 
35
  $this->add_control(
36
  'category',
30
  return [ Module::TEXT_CATEGORY ];
31
  }
32
 
33
+ protected function register_controls() {
34
 
35
  $this->add_control(
36
  'category',
README.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.rto.de
4
  Tags: elementor, conditions, dynamic, fields, rto
5
  Requires at least: 5.0
6
  Requires PHP: 7.0
7
- Tested up to: 5.7
8
- Stable tag: 1.5.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -65,6 +65,9 @@ You can find it here:
65
  1. Widget options for conditions
66
 
67
  == Changelog ==
 
 
 
68
  = 1.5.1 =
69
  * Fix issue with shortcodes
70
 
4
  Tags: elementor, conditions, dynamic, fields, rto
5
  Requires at least: 5.0
6
  Requires PHP: 7.0
7
+ Tested up to: 5.9
8
+ Stable tag: 1.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
65
  1. Widget options for conditions
66
 
67
  == Changelog ==
68
+ = 1.6.0 =
69
+ * Add support for containers
70
+
71
  = 1.5.1 =
72
  * Fix issue with shortcodes
73
 
dynamic-conditions.php CHANGED
@@ -22,7 +22,7 @@ use DynamicConditions\Lib\Deactivator;
22
  * Plugin Name: DynamicConditions
23
  * Plugin URI: https://github.com/RTO-Websites/dynamic-conditions
24
  * Description: Activates conditions for dynamic tags to show/hides a widget.
25
- * Version: 1.5.1
26
  * Author: RTO GmbH
27
  * Author URI: https://www.rto.de
28
  * License: GPL-2.0+
@@ -36,7 +36,7 @@ if ( ! defined( 'ABSPATH' ) ) {
36
  die;
37
  }
38
 
39
- define( 'DynamicConditions_VERSION', '1.5.1' );
40
 
41
  define( 'DynamicConditions_DIR', str_replace( '\\', '/', __DIR__ ) );
42
  define( 'DynamicConditions_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
22
  * Plugin Name: DynamicConditions
23
  * Plugin URI: https://github.com/RTO-Websites/dynamic-conditions
24
  * Description: Activates conditions for dynamic tags to show/hides a widget.
25
+ * Version: 1.6.0
26
  * Author: RTO GmbH
27
  * Author URI: https://www.rto.de
28
  * License: GPL-2.0+
36
  die;
37
  }
38
 
39
+ define( 'DynamicConditions_VERSION', '1.6.0' );
40
 
41
  define( 'DynamicConditions_DIR', str_replace( '\\', '/', __DIR__ ) );
42
  define( 'DynamicConditions_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );