$themename = "renovate"; /*function your_prefix_vcSetAsTheme() { vc_set_as_theme(); } add_action('init', 'your_prefix_vcSetAsTheme');*/ if(function_exists('set_revslider_as_theme')) { function renovate_set_revolution_as_theme() { set_revslider_as_theme(); } add_action('init', 'renovate_set_revolution_as_theme'); } //plugins activator require_once("plugins_activator.php"); //for is_plugin_active include_once( ABSPATH . 'wp-admin/includes/plugin.php'); //vc_remove_element("vc_row_inner"); if(function_exists("vc_remove_element")) { vc_remove_element("vc_gmaps"); vc_remove_element("vc_tour"); vc_remove_element("vc_separator"); vc_remove_element("vc_text_separator"); } //theme options re_get_theme_file("/theme-options.php"); //menu walker re_get_theme_file("/mobile_menu_walker.php"); //custom meta box re_get_theme_file("/meta-box.php"); if(function_exists("vc_map")) { //contact_form re_get_theme_file("/contact_form.php"); //shortcodes re_get_theme_file("/shortcodes/shortcodes.php"); } //comments re_get_theme_file("/comments-functions.php"); //widgets re_get_theme_file("/widgets/widget-contact-info.php"); re_get_theme_file("/widgets/widget-contact-details.php"); re_get_theme_file("/widgets/widget-contact-details-list.php"); re_get_theme_file("/widgets/widget-list.php"); re_get_theme_file("/widgets/widget-recent.php"); re_get_theme_file("/widgets/widget-social-icons.php"); re_get_theme_file("/widgets/widget-cart-icon.php"); function re_theme_after_setup_theme() { global $themename; //set default theme options if(!get_option($themename . "_installed") || !get_option("wpb_js_content_types") || !get_option("renovate_vc_access_rules")) { $theme_options = array( "favicon_url" => get_template_directory_uri() . "/images/favicon.ico", "logo_url" => "", "logo_text" => "RENOVATE", "footer_text" => sprintf(__('© Copyright 2021 Renovate Theme by QuanticaLabs', 'renovate'), esc_html__('Renovate Theme', 'renovate'), esc_url(__('https://1.envato.market/renovate-construction-renovation-wordpress-theme', 'renovate')), esc_html__('QuanticaLabs', 'renovate'), esc_url(__('https://quanticalabs.com', 'renovate'))), "sticky_menu" => 0, "responsive" => 1, "scroll_top" => 1, "layout" => 'fullwidth', "layout_style" => '', "layout_image_overlay" => '', "style_selector" => 0, "direction" => "default", "collapsible_mobile_submenus" => 1, "google_api_code" => "", "google_recaptcha" => "", "google_recaptcha_comments" => "", "recaptcha_site_key" => "", "recaptcha_secret_key" => "", "ga_tracking_id" => "", "ga_tracking_code" => "", "cf_admin_name" => get_option("admin_email"), "cf_admin_email" => get_option("admin_email"), "cf_admin_name_from" => "", "cf_admin_email_from" => "", "cf_smtp_host" => "", "cf_smtp_username" => "", "cf_smtp_password" => "", "cf_smtp_port" => "", "cf_smtp_secure" => "", "cf_email_subject" => "Renovate WP: Contact from WWW", "cf_template" => "