Current File : /home/bmofiscom/public_html/wp-content/plugins/masterslider/masterslider.php |
<?php
/**
* Master Slider WordPress Plugin.
*
* @package MasterSlider
* @author averta [averta.net]
* @license LICENSE.txt
* @link http://masterslider.com
* @copyright Copyright © 2014 averta
*
* Plugin Name: Master Slider Pro
* Plugin URI: http://codecanyon.net/item/masterslider-pro/7467925?ref=averta
* Description: Master Slider is the most advanced responsive HTML5 WordPress slider plugin with layer and Touch Swipe Navigation that works smoothly on devices too.
* Version: 3.2.7
* Author: averta
* Author URI: http://averta.net
* Text Domain: masterslider
* License URI: LICENSE.txt
* Domain Path: /languages
* Tested up to: 4.9.2
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die('No Naughty Business Please !');
}
// Abort loading if WordPress is upgrading
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
return;
}
function mspr_two_instance_notice() {
echo '<div class="error"><p>' . __( 'You are using two instances of MasterSlider plugin at same time, please deactive one of them.', 'masterslider' ) . '</p></div>';
}
if( defined( 'MSWP_AVERTA_VERSION' ) ){
add_action( 'admin_notices', 'mspr_two_instance_notice' );
return;
}
function mspr_requirement_notice() {
echo '<div class="error"><p>' . __( 'PHP version 5.3.0 or above is required for "Master Slider" plugin', 'masterslider' ) . '</p></div>';
}
if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) {
add_action( 'admin_notices', 'mspr_requirement_notice' );
return;
}
/*----------------------------------------------------------------------------*/
require_once( plugin_dir_path( __FILE__ ) . 'includes/init/define.php' );
require_once( plugin_dir_path( __FILE__ ) . 'public/class-master-slider.php' );
// Register hooks that are fired when the plugin is activated or deactivated.
register_activation_hook ( __FILE__, array( 'Master_Slider', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Master_Slider', 'deactivate' ) );
/*----------------------------------------------------------------------------*/