function start($v) { global $fonts, $google_fonts, $social_media_icons, $RTThemePageLayoutOptionsClass; $fonts = $this->fonts; $google_fonts = $this->google_fonts; $social_media_icons = $this->social_media_icons; // Load text domain load_theme_textdomain('rt_theme', get_template_directory() . '/languages'); //Call Theme Constants $this->theme_constants($v); //Load Classes $this->load_classes($v); //Load Widgets $this->load_widgets($v); //Load Functions $this->load_functions($v); //Create Menus add_action('init', array(&$this, 'rt_create_menus')); //Theme Supports $this->theme_supports(); //Admin Panel Jobs if (is_admin()) { require_once THEMEFRAMEWORKDIR . '/classes/admin.php'; $RTadmin = new RTThemeAdmin(); $RTadmin->admin_init(); //Save Default Options - First time loading or options resetted $this_page_url = 'http://' . $_SERVER['HTTP_HOST'] . '' . $_SERVER['SCRIPT_NAME']; $option_page_url = WPADMINURI . 'admin.php'; if (get_option(THEMESLUG . '_' . UTHEMENAME . '_defaults') != 'saved' || isset($_GET['reset_settings']) && $_GET['reset_settings'] == 'true') { //reset options $this->rt_save_defaults($RTadmin); //create default templates $RTThemePageLayoutOptionsClass->rt_create_default_templates(); if (isset($_GET['reset_settings']) && $_GET['reset_settings'] == 'true') { add_action('admin_notices', array(&$this, 'reset_message')); } } //activate revslider add_action('tgmpa_register', array(&$this, 'activate_revslider')); } //check woocommerce if (class_exists('Woocommerce')) { include THEMEFRAMEWORKDIR . "/functions/woo-integration.php"; } //Ajax Contact Form add_action('wp_ajax_rt_ajax_contact_form', array(&$this, 'rt_ajax_contact_form')); add_action('wp_ajax_nopriv_rt_ajax_contact_form', array(&$this, 'rt_ajax_contact_form')); //Ajax Product Scroller add_action('wp_ajax_rt_ajax_product_scroller', array(&$this, 'rt_ajax_product_scroller')); add_action('wp_ajax_nopriv_rt_ajax_product_scroller', array(&$this, 'rt_ajax_product_scroller')); }
function start($v) { global $rt_websafe_fonts, $rt_google_fonts, $rt_social_media_icons, $RTThemePageLayoutOptionsClass, $RTThemePageLayouts; $rt_websafe_fonts = $this->rt_websafe_fonts; $rt_google_fonts = $this->rt_google_fonts; $rt_social_media_icons = apply_filters("rt_social_media_list", $this->rt_social_media_icons); // Load text domain if (!is_admin()) { load_theme_textdomain('rt_theme', get_template_directory() . '/languages'); } //Call Theme Constants $this->theme_constants($v); //Load Classes $this->load_classes($v); //Load Widgets $this->load_widgets($v); //Load Functions $this->load_functions($v); //Create Menus add_action('init', array(&$this, 'rt_create_menus')); //Theme Supports $this->theme_supports(); //Admin Panel Jobs if (is_admin()) { require_once RT_THEMEFRAMEWORKDIR . '/classes/admin.php'; $RTadmin = new RTThemeAdmin(); $RTadmin->admin_init(); //activate revslider add_action('tgmpa_register', array(&$this, 'activate_plugins')); } //check woocommerce if (class_exists('Woocommerce')) { include RT_THEMEFRAMEWORKDIR . "/functions/woo-integration.php"; } //Ajax Contact Form add_action('wp_ajax_rt_ajax_contact_form', array(&$this, 'rt_ajax_contact_form')); add_action('wp_ajax_nopriv_rt_ajax_contact_form', array(&$this, 'rt_ajax_contact_form')); //Ajax Product Scroller add_action('wp_ajax_rt_ajax_product_scroller', array(&$this, 'rt_ajax_product_scroller')); add_action('wp_ajax_nopriv_rt_ajax_product_scroller', array(&$this, 'rt_ajax_product_scroller')); }