Plugin Directory

Changeset 2920521


Ignore:
Timestamp:
06/02/2023 09:27:59 AM (3 years ago)
Author:
rtowebsites
Message:

fix some issues

Location:
dynamicconditions/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • dynamicconditions/trunk/Admin/DynamicConditionsAdmin.php

    r2509948 r2920521  
    566566                'render_type' => $renderType,
    567567                'description' => '<script>
    568                     let $dcWidgetIdInput = jQuery(\'.elementor-control-dynamicconditions_widget_id input\');
     568                    $dcWidgetIdInput = jQuery(\'.elementor-control-dynamicconditions_widget_id input\');
    569569                    $dcWidgetIdInput.val(elementor.getCurrentElement().model.id);
    570570                    $dcWidgetIdInput.attr(\'readonly\', true);
  • dynamicconditions/trunk/Public/DynamicConditionsPublic.php

    r2920176 r2920521  
    196196
    197197        $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        }
    198205        $splitTag = explode( ' name="', $tag );
    199206
     
    338345        }
    339346
    340         ob_end_clean();
     347        $content = ob_get_clean();
     348        $matches = [];
     349        $regex = preg_match('/<link.*?\/?>/', $content, $matches);
     350        echo implode('', $matches);
    341351
    342352        $type = $section->get_type();
     
    710720     * @param $checkValue
    711721     * @param $checkValue2
     722     * @param $conditionMets
    712723     */
    713724    private function renderDebugInfo( $settings, $dynamicTagValue, $checkValue, $checkValue2, $conditionMets ) {
     
    722733        $visibility = self::checkEmpty( $settings, 'dynamicconditions_visibility', 'hide' );
    723734
    724         $dynamicTagValue = str_replace( '[', '&#91;', htmlentities( $dynamicTagValue ?? '') );
     735        $dynamicTagValue = str_replace( '[', '&#91;', htmlentities( $dynamicTagValue ?? '' ) );
    725736        $dynamicTagValue = str_replace( '~~*#~~', '<br />', $dynamicTagValue );
    726         $checkValue = str_replace( '[', '&#91;', htmlentities( $checkValue ?? '') );
    727         $checkValue2 = str_replace( '[', '&#91;', htmlentities( $checkValue2 ?? '') );
     737        $checkValue = str_replace( '[', '&#91;', htmlentities( $checkValue ?? '' ) );
     738        $checkValue2 = str_replace( '[', '&#91;', htmlentities( $checkValue2 ?? '' ) );
    728739        $dynamicTagValueRaw = self::checkEmpty( $settings, 'dynamicconditions_dynamic_raw', '' );
    729740
     
    754765    private function getMode() {
    755766        if ( !class_exists( 'Elementor\Plugin' ) ) {
    756             return;
     767            return '';
    757768        }
    758769
  • dynamicconditions/trunk/README.txt

    r2920434 r2920521  
    66Requires PHP: 7.4
    77Tested up to: 6.3
    8 Stable tag: 1.6.1
     8Stable tag: 1.6.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68= 1.6.2 =
     69* Fix missing css if elements are hidden
     70* Hotfix weird php-error on array-to-string-conversion
     71
    6872= 1.6.1 =
    6973* Fix deprecated warnings
  • dynamicconditions/trunk/dynamic-conditions.php

    r2920176 r2920521  
    2323 * Plugin URI:        https://github.com/RTO-Websites/dynamic-conditions
    2424 * Description:       Activates conditions for dynamic tags to show/hides a widget.
    25  * Version:           1.6.1
     25 * Version:           1.6.2
    2626 * Author:            RTO GmbH
    2727 * Author URI:        https://www.rto.de
     
    3737}
    3838
    39 define( 'DynamicConditions_VERSION', '1.6.1' );
     39define( 'DynamicConditions_VERSION', '1.6.2' );
    4040
    4141define( 'DynamicConditions_DIR', str_replace( '\\', '/', __DIR__ ) );
Note: See TracChangeset for help on using the changeset viewer.