yith-woocommerce-compare
Last commit date
assets
12 years ago
languages
12 years ago
templates
12 years ago
widgets
12 years ago
yit-common
12 years ago
README.txt
12 years ago
class.yith-woocompare-admin.php
12 years ago
class.yith-woocompare-frontend.php
12 years ago
class.yith-woocompare-helper.php
12 years ago
class.yith-woocompare.php
12 years ago
functions.yith-woocompare.php
12 years ago
init.php
12 years ago
screenshot-1.png
12 years ago
screenshot-2.png
12 years ago
screenshot-3.png
12 years ago
wpml-config.xml
12 years ago
yith-woocompare-options.php
12 years ago
init.php
64 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: YITH Woocommerce Compare |
| 4 | * Plugin URI: http://yithemes.com/ |
| 5 | * Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes. |
| 6 | * Version: 1.1.4 |
| 7 | * Author: Your Inspiration Themes |
| 8 | * Author URI: http://yithemes.com/ |
| 9 | * Text Domain: yit |
| 10 | * Domain Path: /languages/ |
| 11 | * |
| 12 | * @author Your Inspiration Themes |
| 13 | * @package YITH Woocommerce Compare |
| 14 | * @version 1.1.4 |
| 15 | */ |
| 16 | /* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com) |
| 17 | |
| 18 | This program is free software; you can redistribute it and/or modify |
| 19 | it under the terms of the GNU General Public License, version 2, as |
| 20 | published by the Free Software Foundation. |
| 21 | |
| 22 | This program is distributed in the hope that it will be useful, |
| 23 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 25 | GNU General Public License for more details. |
| 26 | |
| 27 | You should have received a copy of the GNU General Public License |
| 28 | along with this program; if not, write to the Free Software |
| 29 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 30 | */ |
| 31 | if ( !defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly |
| 32 | |
| 33 | /* Include common functions */ |
| 34 | if( !defined('YITH_FUNCTIONS') ) { |
| 35 | require_once( 'yit-common/google_fonts.php' ); |
| 36 | require_once( 'yit-common/yit-functions.php' ); |
| 37 | require_once( 'yit-common/yith-panel.php' ); |
| 38 | } |
| 39 | |
| 40 | function yith_woocompare_constructor() { |
| 41 | global $woocommerce; |
| 42 | if ( ! isset( $woocommerce ) ) return; |
| 43 | |
| 44 | load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' ); |
| 45 | |
| 46 | define( 'YITH_WOOCOMPARE', true ); |
| 47 | define( 'YITH_WOOCOMPARE_VERSION', '1.1.2' ); |
| 48 | define( 'YITH_WOOCOMPARE_URL', plugin_dir_url( __FILE__ ) ); |
| 49 | define( 'YITH_WOOCOMPARE_DIR', plugin_dir_path( __FILE__ ) ); |
| 50 | |
| 51 | // Load required classes and functions |
| 52 | require_once('class.yith-woocompare-helper.php'); |
| 53 | require_once('functions.yith-woocompare.php'); |
| 54 | require_once('class.yith-woocompare-admin.php'); |
| 55 | require_once('class.yith-woocompare-frontend.php'); |
| 56 | require_once('widgets/class.yith-woocompare-widget.php'); |
| 57 | require_once('class.yith-woocompare.php'); |
| 58 | |
| 59 | // Let's start the game! |
| 60 | global $yith_woocompare; |
| 61 | $yith_woocompare = new YITH_Woocompare(); |
| 62 | } |
| 63 | add_action( 'plugins_loaded', 'yith_woocompare_constructor' ); |
| 64 |