1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<?php /** * Plugin Name: YITH WooCommerce Wishlist * Plugin URI: http://yithemes.com/ * Description: YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce. * Version: 1.1.6 * Author: Your Inspiration Themes * Author URI: http://yithemes.com/ * Text Domain: yit * Domain Path: /languages/ * * @author Your Inspiration Themes * @package YITH WooCommerce Wishlist * @version 1.1.5 */ /* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
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
/** * Required functions */ if( !defined('YITH_FUNCTIONS') ) { require_once( 'yit-common/yit-functions.php' ); }
function yith_wishlist_constructor() { global $woocommerce; if ( ! isset( $woocommerce ) ) return;
load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
define( 'YITH_WCWL', true ); define( 'YITH_WCWL_URL', plugin_dir_url( __FILE__ ) ); define( 'YITH_WCWL_DIR', plugin_dir_path( __FILE__ ) );
// Load required classes and functions require_once( 'functions.yith-wcwl.php' ); require_once( 'class.yith-wcwl.php' ); require_once( 'class.yith-wcwl-init.php' ); require_once( 'class.yith-wcwl-install.php' );
if( get_option( 'yith_wcwl_enabled' ) == 'yes' ) { require_once( 'class.yith-wcwl-ui.php' ); require_once( 'class.yith-wcwl-shortcode.php' ); }
// Let's start the game! global $yith_wcwl; $yith_wcwl = new YITH_WCWL( $_REQUEST ); } add_action( 'plugins_loaded', 'yith_wishlist_constructor' );
|