*/ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly if (!function_exists('is_plugin_active')) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } if (!defined('YITH_YWSL_DIR')) { define('YITH_YWSL_DIR', plugin_dir_path(__FILE__)); } /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YITH_YWSL_DIR . 'plugin-fw/init.php')) { require_once YITH_YWSL_DIR . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YITH_YWSL_DIR); // This version can't be activate if premium version is active ________________________________________ if (defined('YITH_YWSL_PREMIUM')) { function yith_ywsl_install_free_admin_notice() { ?> <div class="error"> <p><?php _e('You can\'t activate the free version of YITH Woocommerce Social Login while you are using the premium one.', 'yith-woocommerce-social-login'); ?> </p> </div> <?php } add_action('admin_notices', 'yith_ywsl_install_free_admin_notice'); deactivate_plugins(plugin_basename(__FILE__));
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 if (!defined('YITH_WCAS_DIR')) { define('YITH_WCAS_DIR', plugin_dir_path(__FILE__)); } /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YITH_WCAS_DIR . 'plugin-fw/init.php')) { require_once YITH_WCAS_DIR . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YITH_WCAS_DIR); if (defined('YITH_WCAS_PREMIUM')) { function yith_wcas_install_free_admin_notice() { ?> <div class="error"> <p><?php _e('You can\'t activate the free version of YITH WooCommerce Ajax Search while you are using the premium one.', 'yith-woocommerce-ajax-search'); ?> </p> </div> <?php } add_action('admin_notices', 'yith_wcas_install_free_admin_notice'); deactivate_plugins(plugin_basename(__FILE__)); return;
define('YITH_WOOCOMPARE_URL', plugin_dir_url(__FILE__)); } if (!defined('YITH_WOOCOMPARE_DIR')) { define('YITH_WOOCOMPARE_DIR', plugin_dir_path(__FILE__)); } if (!defined('YITH_WOOCOMPARE_TEMPLATE_PATH')) { define('YITH_WOOCOMPARE_TEMPLATE_PATH', YITH_WOOCOMPARE_DIR . 'templates'); } if (!defined('YITH_WOOCOMPARE_ASSETS_URL')) { define('YITH_WOOCOMPARE_ASSETS_URL', YITH_WOOCOMPARE_URL . 'assets'); } /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YITH_WOOCOMPARE_DIR . 'plugin-fw/init.php')) { require_once YITH_WOOCOMPARE_DIR . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YITH_WOOCOMPARE_DIR); function yith_woocompare_constructor() { global $woocommerce; if (!isset($woocommerce) || !function_exists('WC')) { add_action('admin_notices', 'yith_woocompare_install_woocommerce_admin_notice'); return; } elseif (defined('YITH_WOOCOMPARE_PREMIUM')) { add_action('admin_notices', 'yith_woocompare_install_free_admin_notice'); deactivate_plugins(plugin_basename(__FILE__)); return; } load_plugin_textdomain('yith-woocommerce-compare', false, dirname(plugin_basename(__FILE__)) . '/languages/'); // Load required classes and functions require_once 'includes/class.yith-woocompare-helper.php'; require_once 'includes/functions.yith-woocompare.php';
if (!function_exists('YITH_Vendors')) { /** * Unique access to instance of YITH_Vendors class * * @return YITH_Vendors|YITH_Vendors_Premium * @since 1.0.0 */ function YITH_Vendors() { // Load required classes and functions require_once YITH_WPV_PATH . 'includes/class.yith-vendors.php'; if (defined('YITH_WPV_PREMIUM') && file_exists(YITH_WPV_PATH . 'includes/class.yith-vendors-premium.php')) { require_once YITH_WPV_PATH . 'includes/class.yith-vendors-premium.php'; return YITH_Vendors_Premium::instance(); } return YITH_Vendors::instance(); } } /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YITH_WPV_PATH . 'plugin-fw/init.php')) { require_once YITH_WPV_PATH . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YITH_WPV_PATH); /** * Instance main plugin class */ YITH_Vendors(); register_activation_hook(YITH_WPV_FILE, array('YITH_Commissions', 'create_commissions_table')); register_activation_hook(YITH_WPV_FILE, 'YITH_Vendors::add_vendor_role'); register_deactivation_hook(YITH_WPV_FILE, 'YITH_Vendors::setup'); register_deactivation_hook(YITH_WPV_FILE, 'YITH_Vendors::remove_vendor_role');
define('YWRR_DIR', plugin_dir_path(__FILE__)); } if (!defined('YWRR_URL')) { define('YWRR_URL', plugins_url('/', __FILE__)); } if (!defined('YWRR_ASSETS_URL')) { define('YWRR_ASSETS_URL', YWRR_URL . 'assets/'); } if (!defined('YWRR_TEMPLATE_PATH')) { define('YWRR_TEMPLATE_PATH', YWRR_DIR . 'templates/'); } /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YWRR_DIR . 'plugin-fw/init.php')) { require_once YWRR_DIR . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YWRR_DIR); function ywrr_init() { /* Load YWRR text domain */ load_plugin_textdomain('yith-woocommerce-review-reminder', false, dirname(plugin_basename(__FILE__)) . '/languages/'); YITH_WRR(); } add_action('ywrr_init', 'ywrr_init'); function ywrr_install() { if (!function_exists('WC')) { add_action('admin_notices', 'ywrr_install_woocommerce_admin_notice'); } elseif (defined('YWRR_PREMIUM')) { add_action('admin_notices', 'ywrr_install_free_admin_notice'); deactivate_plugins(plugin_basename(__FILE__)); } else {
define('YWCTM_DIR', plugin_dir_path(__FILE__)); } if (!defined('YWCTM_URL')) { define('YWCTM_URL', plugins_url('/', __FILE__)); } if (!defined('YWCTM_ASSETS_URL')) { define('YWCTM_ASSETS_URL', YWCTM_URL . 'assets/'); } if (!defined('YWCTM_TEMPLATE_PATH')) { define('YWCTM_TEMPLATE_PATH', YWCTM_DIR . 'templates/'); } /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YWCTM_DIR . 'plugin-fw/init.php')) { require_once YWCTM_DIR . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YWCTM_DIR); function ywctm_init() { /* Load YWCTM text domain */ load_plugin_textdomain('yith-woocommerce-catalog-mode', false, dirname(plugin_basename(__FILE__)) . '/languages/'); global $YITH_WC_Catalog_Mode; $YITH_WC_Catalog_Mode = new YITH_WC_Catalog_Mode(); } add_action('ywctm_init', 'ywctm_init'); function ywctm_install() { require_once YWCTM_DIR . 'class.yith-woocommerce-catalog-mode.php'; if (!function_exists('WC')) { add_action('admin_notices', 'ywctm_install_woocommerce_admin_notice'); } elseif (defined('YWCTM_PREMIUM')) { add_action('admin_notices', 'ywctm_install_free_admin_notice');
define('YITH_INFS_URL', plugin_dir_url(__FILE__)); } if (!defined('YITH_INFS_DIR')) { define('YITH_INFS_DIR', plugin_dir_path(__FILE__)); } if (!defined('YITH_INFS_TEMPLATE_PATH')) { define('YITH_INFS_TEMPLATE_PATH', YITH_INFS_DIR . 'templates'); } if (!defined('YITH_INFS_ASSETS_URL')) { define('YITH_INFS_ASSETS_URL', YITH_INFS_URL . 'assets'); } /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YITH_INFS_DIR . 'plugin-fw/init.php')) { require_once YITH_INFS_DIR . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YITH_INFS_DIR); function yith_infs_init() { load_plugin_textdomain('yith-infinite-scrolling', false, dirname(plugin_basename(__FILE__)) . '/languages/'); // Load required classes and functions require_once 'includes/class.yith-infs-admin.php'; require_once 'includes/class.yith-infs-frontend.php'; require_once 'includes/class.yith-infs.php'; // Let's start the game! YITH_INFS(); } add_action('yith_infs_init', 'yith_infs_init'); function yith_infs_install() { if (defined('YITH_INFS_PREMIUM')) { add_action('admin_notices', 'yith_infs_install_free_admin_notice');
} if (!defined('YWCFAV_INC')) { define('YWCFAV_INC', YWCFAV_DIR . 'includes/'); } if (!defined('YWCFAV_SLUG')) { define('YWCFAV_SLUG', 'yith-woocommerce-featured-video'); } if (!function_exists('yith_plugin_registration_hook')) { require_once 'plugin-fw/yit-plugin-registration-hook.php'; } register_activation_hook(__FILE__, 'yith_plugin_registration_hook'); /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YWCFAV_DIR . 'plugin-fw/init.php')) { require_once YWCFAV_DIR . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YWCFAV_DIR); if (!function_exists('YITH_Featured_Audio_Video_Init')) { /** * Unique access to instance of YITH_WC_Audio_Video class * * @return YITH_WC_Audio_Video * @since 1.1.4 */ function YITH_Featured_Audio_Video_Init() { load_plugin_textdomain('yith-woocommerce-featured-video', false, dirname(plugin_basename(__FILE__)) . '/languages/'); require_once YWCFAV_INC . 'functions.yith-wc-featured-audio-video.php'; require_once YWCFAV_INC . 'classes/class.yith-woocommerce-audio-video-content.php'; global $YITH_Featured_Audio_Video; $YITH_Featured_Audio_Video = YITH_WC_Audio_Video::get_instance(); }
define('YLC_DIR', plugin_dir_path(__FILE__)); } if (!defined('YLC_URL')) { define('YLC_URL', plugins_url('/', __FILE__)); } if (!defined('YLC_ASSETS_URL')) { define('YLC_ASSETS_URL', YLC_URL . 'assets'); } if (!defined('YLC_TEMPLATE_PATH')) { define('YLC_TEMPLATE_PATH', YLC_DIR . 'templates'); } /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YLC_DIR . 'plugin-fw/init.php')) { require_once YLC_DIR . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YLC_DIR); function ylc_free_init() { /* Load text domain */ load_plugin_textdomain('yith-live-chat', false, dirname(plugin_basename(__FILE__)) . '/languages/'); YITH_Live_Chat(); } add_action('ylc_init', 'ylc_free_init'); function ylc_install() { if (defined('YLC_PREMIUM')) { add_action('admin_notices', 'ylc_install_free_admin_notice'); deactivate_plugins(plugin_basename(__FILE__)); } else { do_action('ylc_init'); }
define('YITH_WCSTRIPE_FREE_INIT', plugin_basename(__FILE__)); } if (!defined('YITH_WCSTRIPE_URL')) { define('YITH_WCSTRIPE_URL', plugin_dir_url(__FILE__)); } if (!defined('YITH_WCSTRIPE_DIR')) { define('YITH_WCSTRIPE_DIR', plugin_dir_path(__FILE__)); } if (!defined('YITH_WCSTRIPE_INC')) { define('YITH_WCSTRIPE_INC', YITH_WCSTRIPE_DIR . 'includes/'); } /* Plugin Framework Version Check */ if (!function_exists('yit_maybe_plugin_fw_loader') && file_exists(YITH_WCSTRIPE_DIR . 'plugin-fw/init.php')) { require_once YITH_WCSTRIPE_DIR . 'plugin-fw/init.php'; } yit_maybe_plugin_fw_loader(YITH_WCSTRIPE_DIR); if (!function_exists('YITH_WCStripe')) { /** * Unique access to instance of YITH_WCStripe class * * @return \YITH_WCStripe|YITH_WCStripe_Premium * @since 1.0.0 */ function YITH_WCStripe() { // Load required classes and functions require_once YITH_WCSTRIPE_INC . 'class-yith-stripe.php'; if (defined('YITH_WCSTRIPE_PREMIUM') && file_exists(YITH_WCSTRIPE_INC . 'class-yith-stripe-premium.php')) { require_once YITH_WCSTRIPE_INC . 'class-yith-stripe-premium.php'; return YITH_WCStripe_Premium::get_instance(); }
require_once ABSPATH . 'wp-admin/includes/plugin.php'; } if (!defined('YJP_DIR')) { define('YJP_DIR', plugin_dir_path(__FILE__)); } if (!defined('YJP_URL')) { define('YJP_URL', plugins_url('/', __FILE__)); } if (!defined('YJP_ASSETS_URL')) { define('YJP_ASSETS_URL', YJP_URL . 'assets'); } if (!defined('YJP_TEMPLATE_PATH')) { define('YJP_TEMPLATE_PATH', YJP_DIR . 'templates'); } if (!function_exists('yith_plugin_registration_hook')) { require_once 'plugin-fw/yit-plugin-registration-hook.php'; } register_activation_hook(__FILE__, 'yith_plugin_registration_hook'); /* Plugin Framework Version Check */ !function_exists('yit_maybe_plugin_fw_loader') && (require_once 'plugin-fw/init.php'); yit_maybe_plugin_fw_loader(dirname(__FILE__)); /** * Check if a jetpack module is currently active and try disabling before activating this one */ if (!function_exists('yith_deactive_jetpack_module')) { require_once 'yith-deactive-module.php'; } load_plugin_textdomain('yith-essential-kit-for-woocommerce-1', false, dirname(plugin_basename(__FILE__)) . '/languages/'); require_once YJP_DIR . 'yith-jetpack.php'; global $yith_jetpack_1; $yith_jetpack_1 = new YITH_JetPack(__FILE__, 'YITH Essential Kit for WooCommerce #1', 1);