Plugin Directory

Changeset 3417319


Ignore:
Timestamp:
12/11/2025 11:48:25 AM (4 months ago)
Author:
azplugins
Message:

Update to version 3.0.1 from GitHub

Location:
az-video-and-audio-player-addon-for-elementor
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • az-video-and-audio-player-addon-for-elementor/tags/3.0.1/includes/class-dual-activation-preventer.php

    r3417290 r3417319  
    1515    /**
    1616     * Ensure only one version (free or pro) is active at a time
    17      * Automatically deactivates the other version if both are activated
     17     * Pro version always takes priority - Free is auto-deactivated when Pro is active
    1818     */
    1919    public static function ensure_single_activation() {
     
    2323        }
    2424       
    25         // Detect if THIS plugin is PRO version (folder has -pro suffix)
    26         $is_pro_version = strpos(plugin_basename(LEANPL_FILE), '-pro/') !== false;
     25        $free_plugin = 'az-video-and-audio-player-addon-for-elementor/plugin-main.php';
     26        $pro_plugin = 'lean-player-pro/plugin-main.php';
    2727       
    28         if ($is_pro_version) {
    29             self::deactivate_free_version();
    30         } else {
    31             self::deactivate_pro_version();
    32         }
    33     }
    34    
    35     /**
    36      * Deactivate free version if active
    37      */
    38     private static function deactivate_free_version() {
    39         $free_plugin = 'az-video-and-audio-player-addon-for-elementor/plugin-main.php';
    40        
    41         if (is_plugin_active($free_plugin)) {
     28        // If both are active, deactivate Free (Pro wins)
     29        if (is_plugin_active($pro_plugin) && is_plugin_active($free_plugin)) {
    4230            deactivate_plugins($free_plugin);
     31           
    4332            add_action('admin_notices', function() {
    4433                echo '<div class="notice notice-success is-dismissible">';
    45                 echo '<p><strong>Lean Player Pro is active.</strong> The free version was automatically turned off. Disable Pro if you need to use the free version again.</p>';
    46                 echo '</div>';
    47             });
    48         }
    49     }
    50    
    51     /**
    52      * Deactivate pro version if active
    53      */
    54     private static function deactivate_pro_version() {
    55         $pro_plugin = 'lean-player-pro/plugin-main.php';
    56        
    57         if (is_plugin_active($pro_plugin)) {
    58             deactivate_plugins($pro_plugin);
    59             add_action('admin_notices', function() {
    60                 echo '<div class="notice notice-info is-dismissible">';
    61                 echo '<p><strong>Lean Player Free is active.</strong> The Pro version was automatically turned off. Disable Free if you need to use the Pro version again.</p>';
     34                echo '<p><strong>Lean Player Pro is active.</strong> The free version was automatically turned off.</p>';
    6235                echo '</div>';
    6336            });
  • az-video-and-audio-player-addon-for-elementor/tags/3.0.1/plugin-main.php

    r3417290 r3417319  
    44Plugin URI: https://leanplugins.com/
    55Description: Video & Audio player for Elementor, Gutenberg & Classic Editor
    6 Version: 3.0.0
     6Version: 3.0.1
    77Author: LeanPlugins
    88Author URI: https://leanplugins.com/
     
    1919// Both version may have this constant, so check first
    2020if (!defined('LEANPL_VERSION')) {
    21     define('LEANPL_VERSION', '3.0.0');
     21    define('LEANPL_VERSION', '3.0.1');
    2222    define('LEANPL_URI', plugins_url('', __FILE__));
    2323    define('LEANPL_DIR', dirname(__FILE__));
  • az-video-and-audio-player-addon-for-elementor/tags/3.0.1/readme.txt

    r3417290 r3417319  
    9898
    9999== Changelog ==
     100= Version: 3.0.1 =
     101- Fixed: Dual plugin activation issue
     102
    100103= Version: 3.0.0 =
    101104* Major: Rebranded plugin under LeanPlugins brand
  • az-video-and-audio-player-addon-for-elementor/trunk/includes/class-dual-activation-preventer.php

    r3417290 r3417319  
    1515    /**
    1616     * Ensure only one version (free or pro) is active at a time
    17      * Automatically deactivates the other version if both are activated
     17     * Pro version always takes priority - Free is auto-deactivated when Pro is active
    1818     */
    1919    public static function ensure_single_activation() {
     
    2323        }
    2424       
    25         // Detect if THIS plugin is PRO version (folder has -pro suffix)
    26         $is_pro_version = strpos(plugin_basename(LEANPL_FILE), '-pro/') !== false;
     25        $free_plugin = 'az-video-and-audio-player-addon-for-elementor/plugin-main.php';
     26        $pro_plugin = 'lean-player-pro/plugin-main.php';
    2727       
    28         if ($is_pro_version) {
    29             self::deactivate_free_version();
    30         } else {
    31             self::deactivate_pro_version();
    32         }
    33     }
    34    
    35     /**
    36      * Deactivate free version if active
    37      */
    38     private static function deactivate_free_version() {
    39         $free_plugin = 'az-video-and-audio-player-addon-for-elementor/plugin-main.php';
    40        
    41         if (is_plugin_active($free_plugin)) {
     28        // If both are active, deactivate Free (Pro wins)
     29        if (is_plugin_active($pro_plugin) && is_plugin_active($free_plugin)) {
    4230            deactivate_plugins($free_plugin);
     31           
    4332            add_action('admin_notices', function() {
    4433                echo '<div class="notice notice-success is-dismissible">';
    45                 echo '<p><strong>Lean Player Pro is active.</strong> The free version was automatically turned off. Disable Pro if you need to use the free version again.</p>';
    46                 echo '</div>';
    47             });
    48         }
    49     }
    50    
    51     /**
    52      * Deactivate pro version if active
    53      */
    54     private static function deactivate_pro_version() {
    55         $pro_plugin = 'lean-player-pro/plugin-main.php';
    56        
    57         if (is_plugin_active($pro_plugin)) {
    58             deactivate_plugins($pro_plugin);
    59             add_action('admin_notices', function() {
    60                 echo '<div class="notice notice-info is-dismissible">';
    61                 echo '<p><strong>Lean Player Free is active.</strong> The Pro version was automatically turned off. Disable Free if you need to use the Pro version again.</p>';
     34                echo '<p><strong>Lean Player Pro is active.</strong> The free version was automatically turned off.</p>';
    6235                echo '</div>';
    6336            });
  • az-video-and-audio-player-addon-for-elementor/trunk/plugin-main.php

    r3417290 r3417319  
    44Plugin URI: https://leanplugins.com/
    55Description: Video & Audio player for Elementor, Gutenberg & Classic Editor
    6 Version: 3.0.0
     6Version: 3.0.1
    77Author: LeanPlugins
    88Author URI: https://leanplugins.com/
     
    1919// Both version may have this constant, so check first
    2020if (!defined('LEANPL_VERSION')) {
    21     define('LEANPL_VERSION', '3.0.0');
     21    define('LEANPL_VERSION', '3.0.1');
    2222    define('LEANPL_URI', plugins_url('', __FILE__));
    2323    define('LEANPL_DIR', dirname(__FILE__));
  • az-video-and-audio-player-addon-for-elementor/trunk/readme.txt

    r3417290 r3417319  
    9898
    9999== Changelog ==
     100= Version: 3.0.1 =
     101- Fixed: Dual plugin activation issue
     102
    100103= Version: 3.0.0 =
    101104* Major: Rebranded plugin under LeanPlugins brand
Note: See TracChangeset for help on using the changeset viewer.