Plugin Directory

Changeset 2769206


Ignore:
Timestamp:
08/11/2022 07:24:48 AM (4 years ago)
Author:
piotnetdotcom
Message:

Update 2.4.18

Location:
piotnet-addons-for-elementor
Files:
80 added
2 edited

Legend:

Unmodified
Added
Removed
  • piotnet-addons-for-elementor/trunk/piotnet-addons-for-elementor.php

    r2749969 r2769206  
    44 * Description: Piotnet Addons For Elementor (PAFE) adds many new features for Elementor
    55 * Plugin URI:  https://pafe.piotnet.com/
    6  * Version:     2.4.17
     6 * Version:     2.4.18
    77 * Author:      Piotnet
    88 * Author URI:  https://piotnet.com/
    99 * Text Domain: pafe
    10  * Elementor tested up to: 3.6.6
    11  * Elementor Pro tested up to: 3.7.2
     10 * Elementor tested up to: 3.7.0
     11 * Elementor Pro tested up to: 3.7.3
    1212 */
    1313
    1414if ( ! defined( 'ABSPATH' ) ) { exit; }
    1515
    16 define( 'PAFE_VERSION', '2.4.17' );
     16define( 'PAFE_VERSION', '2.4.18' );
    1717
    1818define( 'PAFE_DIR', plugin_dir_path(__FILE__));
     
    141141
    142142        // Add Plugin actions
    143         add_action( 'elementor/widgets/widgets_registered', [ $this, 'init_widgets' ] );
     143        if ( version_compare( ELEMENTOR_VERSION, '3.7.0', '<' ) ) {
     144            add_action( 'elementor/widgets/widgets_registered', [ $this, 'init_widgets' ] );
     145        } else {
     146            add_action( 'elementor/widgets/register', [ $this, 'init_widgets_new' ] );
     147        }
    144148        add_action( 'elementor/controls/controls_registered', [ $this, 'init_controls' ] );
    145149        add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue' ] );
     
    380384        }
    381385
    382     } 
     386    }
    383387
    384388    public function init_controls() {
     
    418422    }
    419423
     424    public function init_widgets_new($widgets_manager) {
     425
     426        if( get_option( 'pafe-features-before-after-image-comparison-slider', 2 ) == 2 || get_option( 'pafe-features-before-after-image-comparison-slider', 2 ) == 1 ) {
     427            require_once( __DIR__ . '/widgets/pafe-before-after-image-comparison-slider.php' );
     428            $widgets_manager->register( new \PAFE_Before_After_Image_Comparison_Slider() );
     429        }
     430
     431        if( get_option( 'pafe-features-switch-content', 2 ) == 2 || get_option( 'pafe-features-switch-content', 2 ) == 1 ) {
     432            require_once( __DIR__ . '/widgets/pafe-switch-content.php' );
     433            $widgets_manager->register( new \PAFE_Switch_Content() );
     434        }
     435
     436        if( get_option( 'pafe-features-video-playlist', 2 ) == 2 || get_option( 'pafe-features-video-playlist', 2 ) == 1 ) {
     437            require_once( __DIR__ . '/widgets/pafe-video-playlist.php' );
     438            $widgets_manager->register( new \PAFE_Video_Playlist() );
     439        }
     440
     441        if( get_option( 'pafe-features-vertical-timeline', 2 ) == 2 || get_option( 'pafe-features-vertical-timeline', 2 ) == 1 ) {
     442            require_once( __DIR__ . '/widgets/pafe-vertical-timeline.php' );
     443            $widgets_manager->register( new \PAFE_Vertical_Timeline() );
     444        }
     445
     446        if( get_option( 'pafe-features-image-accordion', 2 ) == 2 || get_option( 'pafe-features-image-accordion', 2 ) == 1 ) {
     447            require_once( __DIR__ . '/widgets/pafe-image-accordion.php' );
     448            $widgets_manager->register( new \PAFE_Image_Accordion() );
     449        }
     450
     451        if( get_option( 'pafe-features-posts-list', 2 ) == 2 || get_option( 'pafe-features-posts-list', 2 ) == 1 ) {
     452            require_once( __DIR__ . '/widgets/pafe-posts-list.php' );
     453            $widgets_manager->register( new \PAFE_Posts_List() );
     454        }
     455
     456        if( get_option( 'pafe-features-sales-pop', 2 ) == 2 || get_option( 'pafe-features-sales-pop', 2 ) == 1 ) {
     457            require_once( __DIR__ . '/widgets/pafe-sales-pop.php' );
     458            $widgets_manager->register( new \PAFE_Sales_Pop() );
     459        }
     460        if( get_option( 'pafe-features-countdown-cart', 2 ) == 2 || get_option( 'pafe-features-countdown-cart', 2 ) == 1 ) {
     461            require_once( __DIR__ . '/widgets/pafe-countdown-cart.php' );
     462            $widgets_manager->register( new \PAFE_Countdown_Cart() );
     463        }
     464        if( get_option( 'pafe-features-dual-color-headline', 2 ) == 2 || get_option( 'pafe-features-dual-color-headline', 2 ) == 1 ) {
     465            require_once( __DIR__ . '/widgets/pafe-dual-color-headline.php' );
     466            $widgets_manager->register( new \PAFE_DUal_Color_Headline() );
     467        }
     468        if( get_option( 'pafe-features-hotspot', 2 ) == 2 || get_option( 'pafe-features-hotspot', 2 ) == 1 ) {
     469            require_once( __DIR__ . '/widgets/pafe-hotspot.php' );
     470            $widgets_manager->register( new \PAFE_Hotspot() );
     471        }
     472        if( get_option( 'pafe-features-progressbar', 2 ) == 2 || get_option( 'pafe-features-progressbar', 2 ) == 1 ) {
     473            require_once( __DIR__ . '/widgets/pafe-progressbar.php' );
     474            $widgets_manager->register( new \PAFE_Progress_Bar() );
     475        }
     476        if( get_option( 'pafe-features-table', 2 ) == 2 || get_option( 'pafe-features-table', 2 ) == 1 ) {
     477            require_once( __DIR__ . '/widgets/pafe-table.php' );
     478            $widgets_manager->register( new \PAFE_Table() );
     479        }
     480
     481    }
     482
    420483}
    421484
  • piotnet-addons-for-elementor/trunk/readme.txt

    r2749969 r2769206  
    33Tags: pafe, elementor addons, gradient text, gradient button, image carousel multiple custom urls
    44Requires at least: 4.7
    5 Tested up to: 6.0
     5Tested up to: 6.0.1
    66Requires PHP: 5.4
    7 Stable tag: 2.4.17
     7Stable tag: 2.4.18
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    120120
    121121== Changelog ==
     122= 2.4.18 =
     123* Fix conflict with Elementor 3.7.0.
    122124= 2.4.17 =
    123125* Add "PAFE Gradient Button" for Submit button of form.
Note: See TracChangeset for help on using the changeset viewer.