/var/www/(Del)hsihk.com/wp-content/plugins/yith-woocommerce-ajax-search/init.php


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
<?php
/**
* Plugin Name: YITH WooCommerce Ajax Search
* Plugin URI: http://yithemes.com/
* Description: YITH WooCommerce Ajax Search allows your users to search products in real time.
* Version: 1.1.1
* Author: Your Inspiration Themes
* Author URI: http://yithemes.com/
* Text Domain: yit
* Domain Path: /languages/

* @author Your Inspiration Themes
* @package YITH WooCommerce Ajax Search
* @version 1.1.1
*/
/*  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

function yith_ajax_search_constructor() {
    global 
$woocommerce;
    if ( ! isset( 
$woocommerce ) ) return;

    
/**
     * Required functions
     */
    
if( !defined('YITH_FUNCTIONS') ) {
        require_once( 
'yit-common/yit-functions.php' );
    }

    
load_plugin_textdomain'yit'falsedirnameplugin_basename__FILE__ ) ). '/languages/' );

    
define'YITH_WCAS'true );
    
define'YITH_WCAS_URL'plugin_dir_url__FILE__ ) );
    
define'YITH_WCAS_DIR'plugin_dir_path__FILE__ ) );

    
// Load required classes and functions
    
require_once('functions.yith-wcas.php');
    require_once(
'class.yith-wcas-admin.php');
    require_once(
'class.yith-wcas-frontend.php');
    require_once(
'widgets/class.yith-wcas-ajax-search.php');
    require_once(
'class.yith-wcas.php');

    
// Let's start the game!
    
global $yith_wcas;
    
$yith_wcas = new YITH_WCAS();
}
add_action'plugins_loaded''yith_ajax_search_constructor' );