Changeset 2920521
- Timestamp:
- 06/02/2023 09:27:59 AM (3 years ago)
- Location:
- dynamicconditions/trunk
- Files:
-
- 4 edited
-
Admin/DynamicConditionsAdmin.php (modified) (1 diff)
-
Public/DynamicConditionsPublic.php (modified) (5 diffs)
-
README.txt (modified) (2 diffs)
-
dynamic-conditions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dynamicconditions/trunk/Admin/DynamicConditionsAdmin.php
r2509948 r2920521 566 566 'render_type' => $renderType, 567 567 'description' => '<script> 568 let$dcWidgetIdInput = jQuery(\'.elementor-control-dynamicconditions_widget_id input\');568 $dcWidgetIdInput = jQuery(\'.elementor-control-dynamicconditions_widget_id input\'); 569 569 $dcWidgetIdInput.val(elementor.getCurrentElement().model.id); 570 570 $dcWidgetIdInput.attr(\'readonly\', true); -
dynamicconditions/trunk/Public/DynamicConditionsPublic.php
r2920176 r2920521 196 196 197 197 $tag = $this->elementSettings[$id]['__dynamic__']['dynamicconditions_dynamic']; 198 if ( is_array( $tag ) ) { 199 return [ 200 'selectedTag' => null, 201 'tagData' => null, 202 'tagKey' => null, 203 ]; 204 } 198 205 $splitTag = explode( ' name="', $tag ); 199 206 … … 338 345 } 339 346 340 ob_end_clean(); 347 $content = ob_get_clean(); 348 $matches = []; 349 $regex = preg_match('/<link.*?\/?>/', $content, $matches); 350 echo implode('', $matches); 341 351 342 352 $type = $section->get_type(); … … 710 720 * @param $checkValue 711 721 * @param $checkValue2 722 * @param $conditionMets 712 723 */ 713 724 private function renderDebugInfo( $settings, $dynamicTagValue, $checkValue, $checkValue2, $conditionMets ) { … … 722 733 $visibility = self::checkEmpty( $settings, 'dynamicconditions_visibility', 'hide' ); 723 734 724 $dynamicTagValue = str_replace( '[', '[', htmlentities( $dynamicTagValue ?? '' ) );735 $dynamicTagValue = str_replace( '[', '[', htmlentities( $dynamicTagValue ?? '' ) ); 725 736 $dynamicTagValue = str_replace( '~~*#~~', '<br />', $dynamicTagValue ); 726 $checkValue = str_replace( '[', '[', htmlentities( $checkValue ?? '' ) );727 $checkValue2 = str_replace( '[', '[', htmlentities( $checkValue2 ?? '' ) );737 $checkValue = str_replace( '[', '[', htmlentities( $checkValue ?? '' ) ); 738 $checkValue2 = str_replace( '[', '[', htmlentities( $checkValue2 ?? '' ) ); 728 739 $dynamicTagValueRaw = self::checkEmpty( $settings, 'dynamicconditions_dynamic_raw', '' ); 729 740 … … 754 765 private function getMode() { 755 766 if ( !class_exists( 'Elementor\Plugin' ) ) { 756 return ;767 return ''; 757 768 } 758 769 -
dynamicconditions/trunk/README.txt
r2920434 r2920521 6 6 Requires PHP: 7.4 7 7 Tested up to: 6.3 8 Stable tag: 1.6. 18 Stable tag: 1.6.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 67 67 == Changelog == 68 = 1.6.2 = 69 * Fix missing css if elements are hidden 70 * Hotfix weird php-error on array-to-string-conversion 71 68 72 = 1.6.1 = 69 73 * Fix deprecated warnings -
dynamicconditions/trunk/dynamic-conditions.php
r2920176 r2920521 23 23 * Plugin URI: https://github.com/RTO-Websites/dynamic-conditions 24 24 * Description: Activates conditions for dynamic tags to show/hides a widget. 25 * Version: 1.6. 125 * Version: 1.6.2 26 26 * Author: RTO GmbH 27 27 * Author URI: https://www.rto.de … … 37 37 } 38 38 39 define( 'DynamicConditions_VERSION', '1.6. 1' );39 define( 'DynamicConditions_VERSION', '1.6.2' ); 40 40 41 41 define( 'DynamicConditions_DIR', str_replace( '\\', '/', __DIR__ ) );
Note: See TracChangeset
for help on using the changeset viewer.