Plugin Directory

Changeset 3221981


Ignore:
Timestamp:
01/14/2025 06:15:14 AM (14 months ago)
Author:
plugindevs
Message:

1.5.0 (01-14-25)

# Update some deprecated functions to load the widget
# Compatible with WordPress Latest Version
# Compatible with Elementor Latest Version
# Compatible with Elementor PRO Latest Version
# Update readme.txt (remove unused tags)

Location:
post-carousel-slider-for-elementor
Files:
151 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • post-carousel-slider-for-elementor/trunk/admin/admin-pages.php

    r3160909 r3221981  
    22add_action('admin_menu', 'wb_ps_menu_page');
    33function wb_ps_menu_page(){
     4    global $submenu;
    45    add_menu_page(
    56        'Post Carousel Slider for Elementor',
     
    2930        'wbel_ps_js_callback'
    3031    );
     32
     33    $link_text = '<span class="wb_ps-up-pro-link" style="font-weight: bold; color: #FCB214">Upgrade To Pro</span>';
     34           
     35    $submenu["wbel-post-slider"][4] = array( $link_text, 'manage_options' , WB_PS_PRO_LINK );
     36   
     37    return $submenu;
    3138   
    3239}
    3340
    34 function wbel_ps_callback(){
    35     wp_redirect( admin_url( 'admin.php?page=wbel-ps-custom-css' ) );
    36     exit();
    37 }
     41function wbel_ps_callback(){}
     42
    3843function wbel_ps_css_callback(){
    3944     // The default message that will appear
  • post-carousel-slider-for-elementor/trunk/admin/post-slider-utils.php

    r2706955 r3221981  
    205205     * @access public
    206206     */
    207     public function register_widgets() {
     207    public function register_widgets( $controls_manager ) {
    208208        $this->includes();
    209         $this->register_slider_widgets();
     209        $this->register_slider_widgets( $controls_manager );
    210210    }
    211211
     
    234234     * @access public
    235235     */
    236     public function register_slider_widgets() {
    237         \Elementor\Plugin::instance()->widgets_manager->register( new POST_SLIDER\WB_PS_WIDGET() );
     236    public function register_slider_widgets( $controls_manager ) {
     237        $controls_manager->register( new POST_SLIDER\WB_PS_WIDGET() );
    238238    }
    239239}
  • post-carousel-slider-for-elementor/trunk/post-slider-for-elementor.php

    r3160909 r3221981  
    66 * Author URI: https://plugin-devs.com/
    77 * Plugin URI: https://plugin-devs.com/product/post-carousel-slider-for-elementor/
    8  * Version: 1.4.0
     8 * Version: 1.5.0
    99 * License: GPLv2
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1111 * Text Domain: post-slider-for-elementor
    1212 *
    13  * Elementor tested up to: 3.24.5
    14  * Elementor Pro tested up to: 3.24.3
     13 * Elementor tested up to: 3.26.4
     14 * Elementor Pro tested up to: 3.26.3
    1515*/
    1616
     
    4949        define( 'WB_PS_PATH', plugin_dir_path( __FILE__ ) );
    5050        define( 'WB_PS_URL', plugin_dir_url( __FILE__ ) ) ;
    51         define( 'WB_PS_VERSION', '1.4.0' ) ; //Plugin Version
     51        define( 'WB_PS_VERSION', '1.5.0' ) ; //Plugin Version
    5252        define( 'WB_PS_MIN_ELEMENTOR_VERSION', '3.0.0' ) ; //MINIMUM ELEMENTOR Plugin Version
    5353        define( 'WB_PS_MIN_PHP_VERSION', '7.0' ) ; //MINIMUM PHP Plugin Version
     
    5858    public function include_files(){
    5959
    60         require_once( WB_PS_PATH . 'freemius.php' );
    6160        require_once( WB_PS_PATH . 'functions.php' );
    6261        require_once( WB_PS_PATH . 'admin/post-slider-utils.php' );
    6362        if( is_admin() ){
    6463            require_once( WB_PS_PATH . 'admin/admin-pages.php' );   
     64            require_once( WB_PS_PATH . 'class-plugin-deactivate-feedback.php' );   
     65            require_once( WB_PS_PATH . 'support-page/class-support-page.php' );
    6566            require_once( WB_PS_PATH . 'class-plugin-review.php');
    6667        }
     
    8990function wb_post_slider_register_function(){
    9091    $wb_post_slider = WB_POST_SLIDER::getInstance();
     92    if( is_admin() ){
     93        $wb_ps_feedback = new WB_PS_Usage_Feedback(
     94            __FILE__,
     95            'webbuilders03@gmail.com',
     96            false,
     97            true
     98        );
     99    }
    91100}
    92101add_action('plugins_loaded', 'wb_post_slider_register_function');
     
    105114}
    106115
     116/**
     117 * Submenu filter function. Tested with Wordpress 4.1.1
     118 * Sort and order submenu positions to match your custom order.
     119 *
     120 */
     121function wb_ps_order_submenu( $menu_ord ) {
     122
     123    global $submenu;
     124 
     125    // Enable the next line to see a specific menu and it's order positions
     126    //echo '<pre>'; print_r( $submenu['wbel-post-slider'] ); echo '</pre>'; exit();
     127 
     128    $arr = array();
     129 
     130    $arr[] = $submenu['wbel-post-slider'][1];
     131    $arr[] = $submenu['wbel-post-slider'][2];
     132    $arr[] = $submenu['wbel-post-slider'][5];
     133    $arr[] = $submenu['wbel-post-slider'][4];
     134 
     135    $submenu['wbel-post-slider'] = $arr;
     136 
     137    return $menu_ord;
     138 
     139}
     140add_filter( 'custom_menu_order', 'wb_ps_order_submenu' );
    107141
    108142/**
  • post-carousel-slider-for-elementor/trunk/readme.txt

    r3160936 r3221981  
    11Post Carousel Slider for Elementor
    2 Tags: elementor post carousel, post carousel elementor, elementor post slider, post slider wordpress, post slider, post carousel, wordpress post carousel
     2Tags: elementor post carousel, post carousel elementor, elementor post slider, post slider, post carousel
    33Requires at least: 5.0
    44Tested up to: 6.6.3
    5 Stable tag: 1.4.0
     5Stable tag: 1.5.0
    66Requires PHP: 7.2
    77License: GPLv2 or later
     
    8989
    9090== Changelog ==
     91
     92= 1.5.0 (01-14-25) =
     93# Update some deprecated functions to load the widget
     94# Compatible with WordPress Latest Version
     95# Compatible with Elementor Latest Version
     96# Compatible with Elementor PRO Latest Version
     97# Update readme.txt (remove unused tags)
    9198
    9299= 1.4.0 (10-01-24) =
Note: See TracChangeset for help on using the changeset viewer.