File: /hosting/www/highcmusic.com/public/wp-content/plugins/yith-pre-launch/init.php
<?php
/**
* Plugin Name: YITH Pre-Launch
* Plugin URI: https://yithemes.com/themes/plugins/yith-pre-launch/
* Description: YITH Pre-Launch allows you to add a prelaunch page and customize it.
* Version: 1.3.2
* Author: YITHEMES
* Author URI: http://yithemes.com/
* Text Domain: yith-pre-launch
* Domain Path: /languages/
*
* @author Your Inspiration Themes
* @package YITH Pre-Launch
* @version 1.3.2
*/
/* Copyright 2013 Your Inspiration Themes (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if ( !defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
/* Include common functions */
if( !defined('YITH_FUNCTIONS') ) {
require_once( 'yit-common/yit-functions.php' );
}
load_plugin_textdomain( 'yith-pre-launch', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
define( 'YITH_PRELAUNCH', true );
define( 'YITH_PRELAUNCH_URL', plugin_dir_url( __FILE__ ) );
define( 'YITH_PRELAUNCH_DIR', plugin_dir_path( __FILE__ ) );
define( 'YITH_PRELAUNCH_OPTIONS_FILE', 'yith-prelaunch-options.php' );
define( 'YITH_PRELAUNCH_VERSION', '1.3.1' );
// Load required classes and functions
require_once('functions.yith-prelaunch.php');
$theme_folder = apply_filters( 'yith_prelaunch_theme_path', '/theme/' );
/* Old Version Compatibility */
$old_theme_folder = '/theme/assets/prelaunch/';
$child_path = get_stylesheet_directory() . $theme_folder . YITH_PRELAUNCH_OPTIONS_FILE;
$theme_path = get_template_directory() . $theme_folder . YITH_PRELAUNCH_OPTIONS_FILE;
$plugin_path = YITH_PRELAUNCH_DIR . YITH_PRELAUNCH_OPTIONS_FILE;
foreach ( array( $child_path, $theme_path, $plugin_path ) as $var ) {
if ( file_exists( $var ) ) {
require_once( $var );
break;
} else {
/* Old Version Compatibility */
$var = str_replace( $theme_folder, $old_theme_folder, $var );
if( file_exists($var) ){
require_once( $var );
break;
}
}
}
require_once('class.yith-prelaunch-admin.php');
require_once('class.yith-prelaunch-frontend.php');
require_once('class.yith-prelaunch.php');
// Let's start the game!
global $yith_prelaunch;
$yith_prelaunch = new YITH_Prelaunch();