' . __( 'You are using two instances of MasterSlider plugin at same time, please deactive one of them.', 'masterslider' ) . '
';
}
if( defined( 'MSWP_AVERTA_VERSION' ) ){
add_action( 'admin_notices', 'mspr_two_instance_notice' );
return;
}
function mspr_requirement_notice() {
echo '' . __( 'PHP version 5.3.0 or above is required for "Master Slider" plugin', 'masterslider' ) . '
';
}
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' ) );
/*----------------------------------------------------------------------------*/