<?php

/**
 * @link              https://www.themepunch.com/
 * @package           Revslider_Login_Addon
 * @wordpress-plugin
 * Plugin Name:       Slider Revolution Login Page Add-on
 * Plugin URI:        https://www.themepunch.com/
 * Description:       Very simple WP Login Page by RevSlider
 * Version:           2.0.1
 * Author:            ThemePunch
 * Author URI:        https://www.themepunch.com/
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain:       revslider-login-addon
 * Domain Path:       /languages
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

define("REV_ADDON_LOGIN_VERSION", "2.0.1");
define("REV_ADDON_LOGIN_URL", str_replace('index.php','',plugins_url( 'index.php', __FILE__ )));
	
/**
 * New "verify/notices" setup for all Global Addons
 * @since    2.0.0
 */
function run_revslider_login_addon() {
	require_once plugin_dir_path( __FILE__ ) . 'includes/verify-addon.php';
	
	$verify = new Revslider_Login_Addon_Verify();
	if($verify->is_verified()) {
		
		require_once plugin_dir_path( __FILE__ ) . 'includes/class-revslider-login-addon.php';
		$plugin = new Revslider_Login_Addon();
		$plugin->run();
		
	}

}

add_action('plugins_loaded', 'run_revslider_login_addon');
register_activation_hook( __FILE__, 'run_revslider_login_addon');
