| 1 |
<?php |
| 2 |
/** |
| 3 |
* Master Slider WordPress Plugin. |
| 4 |
* |
| 5 |
* @package MasterSlider |
| 6 |
* @author averta [averta.net] |
| 7 |
* @license LICENSE.txt |
| 8 |
* @link https://masterslider.com |
| 9 |
* |
| 10 |
* |
| 11 |
* Plugin Name: Master Slider |
| 12 |
* Plugin URI: https://wordpress.org/plugins/master-slider/ |
| 13 |
* Description: Master Slider is the most advanced responsive HTML5 WordPress slider plugin with touch swipe navigation that works smoothly on devices too. |
| 14 |
* Version: 3.11.2 |
| 15 |
* Author: Averta |
| 16 |
* Author URI: https://masterslider.com |
| 17 |
* Text Domain: master-slider |
| 18 |
* License URI: license.txt |
| 19 |
* Domain Path: /languages |
| 20 |
* Tested up to: 6.9 |
| 21 |
*/ |
| 22 |
|
| 23 |
// If this file is called directly, abort. |
| 24 |
if ( ! defined( 'WPINC' ) ) { |
| 25 |
die('No Naughty Business Please !'); |
| 26 |
} |
| 27 |
|
| 28 |
// Abort loading if WordPress is upgrading |
| 29 |
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) { |
| 30 |
return; |
| 31 |
} |
| 32 |
|
| 33 |
function msp_two_instance_notice() { |
| 34 |
echo '<div class="error"><p>' . __( 'You are using two instances of MasterSlider plugin at same time, please deactive one of them.', 'master-slider' ) . '</p></div>'; |
| 35 |
} |
| 36 |
|
| 37 |
// check whether another instance of Master Slider is activated or not |
| 38 |
if( defined( 'MSWP_AVERTA_VERSION' ) ){ |
| 39 |
add_action( 'admin_notices', 'msp_two_instance_notice' ); |
| 40 |
return; |
| 41 |
} |
| 42 |
|
| 43 |
/*----------------------------------------------------------------------------*/ |
| 44 |
|
| 45 |
require_once( plugin_dir_path( __FILE__ ) . 'includes/init/define.php' ); |
| 46 |
require_once( plugin_dir_path( __FILE__ ) . 'public/class-master-slider.php' ); |
| 47 |
|
| 48 |
// Register hooks that are fired when the plugin is activated or deactivated. |
| 49 |
register_activation_hook ( __FILE__, array( 'Master_Slider', 'activate' ) ); |
| 50 |
register_deactivation_hook( __FILE__, array( 'Master_Slider', 'deactivate' ) ); |
| 51 |
|
| 52 |
/*----------------------------------------------------------------------------*/ |
| 53 |
|