Plugin Directory

Changeset 3132825


Ignore:
Timestamp:
08/08/2024 05:28:11 PM (19 months ago)
Author:
crazypsycho
Message:

hotfix error with documents

Location:
dynamicconditions
Files:
65 added
5 edited

Legend:

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

    r3132763 r3132825  
    44
    55use Elementor\Controls_Manager;
     6use Elementor\Core\Base\Document;
    67use Elementor\Element_Base;
    78use Elementor\Modules\DynamicTags\Module;
     
    7879    /**
    7980     * Creates section for dynamic conditions in elementor-widgets
     81     * @param Element_Base|Document $element
    8082     */
    81     public function addConditionFields( Element_Base $element, $section_id = null, ?array $args = null ): void {
     83    public function addConditionFields( $element, $section_id = null, ?array $args = null ): void {
    8284        $valueCondition = [
    8385            'equal',
  • dynamicconditions/trunk/Lib/DynamicConditions.php

    r3132763 r3132825  
    227227     * @since    1.0.0
    228228     */
    229     public static function run(): void{
     229    public static function run(): void {
    230230        $plugin = new self();
    231231        $plugin->loader->run();
  • dynamicconditions/trunk/Public/DynamicConditionsPublic.php

    r3132763 r3132825  
    33namespace DynamicConditions\Pub;
    44
     5use Elementor\Core\Base\Document;
    56use Elementor\Element_Base;
    67use Elementor\Plugin;
     
    7576    /**
    7677     * Gets settings with english locale (needed for date)
    77      */
    78     private function getElementSettings( Element_Base $element ): array {
     78     * @param Element_Base|Document $element
     79     */
     80    private function getElementSettings( $element ): array {
    7981        $id = $element->get_id();
    8082        $clonedElement = clone $element;
     
    290292    /**
    291293     * Check if section is hidden, before rendering
    292      */
    293     public function filterSectionContentBefore( Element_Base $section ): void {
     294     * @param Element_Base|Document $section
     295     */
     296    public function filterSectionContentBefore( $section ): void {
    294297        if ( $this->getMode() === 'edit' ) {
    295298            return;
     
    318321     * Clean output of section if it is hidden
    319322     *
    320      * @param Element_Base $section
    321      */
    322     public function filterSectionContentAfter( Element_Base $section ): void {
     323     * @param Element_Base|Document $section
     324     */
     325    public function filterSectionContentAfter( $section ): void {
    323326        // reset shortcode tags
    324327        $GLOBALS['shortcode_tags'] += $this->shortcodeTags;
  • dynamicconditions/trunk/README.txt

    r3132763 r3132825  
    66Requires PHP: 7.4
    77Tested up to: 6.6
    8 Stable tag: 1.7.0
     8Stable tag: 1.7.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68= 1.7.1 =
     69* Hotfix issue when element is no Base_Element
     70
    6871= 1.7.0 =
    6972* Fix issue with removed css
  • dynamicconditions/trunk/dynamic-conditions.php

    r3132763 r3132825  
    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.7.0
     25 * Version:           1.7.1
    2626 * Author:            RTO GmbH
    2727 * Author URI:        https://www.rto.de
     
    3737}
    3838
    39 define( 'DynamicConditions_VERSION', '1.7.0' );
     39define( 'DynamicConditions_VERSION', '1.7.1' );
    4040
    4141define( 'DynamicConditions_DIR', str_replace( '\\', '/', __DIR__ ) );
Note: See TracChangeset for help on using the changeset viewer.