Example #1
0
function wptouch_create_three_object()
{
    if (!defined('WPTOUCH_IS_PRO')) {
        define('WPTOUCH_VERSION', '3.8.5');
        define('WPTOUCH_BASE_NAME', basename(__FILE__, '.php') . '.php');
        define('WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename(__FILE__, '.php'));
        $data = explode(DIRECTORY_SEPARATOR, WPTOUCH_DIR);
        define('WPTOUCH_ROOT_NAME', $data[count($data) - 1]);
        global $wptouch_pro;
        if (!$wptouch_pro) {
            // Load main configuration information - sets up directories and constants
            require_once 'core/config.php';
            // Load global functions
            require_once 'core/globals.php';
            // Load main compatibility file
            require_once 'core/compat.php';
            // Load main WPtouch Pro class
            require_once 'core/class-wptouch-pro.php';
            // Load main debugging class
            require_once 'core/class-wptouch-pro-debug.php';
            // Load right-to-left text code
            require_once 'core/rtl.php';
            $wptouch_pro = new WPtouchProThree();
            $wptouch_pro->initialize();
            do_action('wptouch_pro_loaded');
        }
    }
}
Example #2
0
function wptouch_create_three_object()
{
    global $wptouch_pro;
    if (!$wptouch_pro) {
        // Load main configuration information - sets up directories and constants
        require_once 'core/config.php';
        // Load global functions
        require_once 'core/globals.php';
        // Load main compatibility file
        require_once 'core/compat.php';
        // Load main WPtouch Pro class
        require_once 'core/class-wptouch-pro.php';
        // Load main debugging class
        require_once 'core/class-wptouch-pro-debug.php';
        // Load right-to-left text code
        require_once 'core/rtl.php';
        $wptouch_pro = new WPtouchProThree();
        $wptouch_pro->initialize();
        do_action('wptouch_pro_loaded');
    }
}