get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; // header option $wp_customize->add_section("home_page_set", array( "title" => __("Header Section", "business-booster"), "priority" => 29, )); // for call us section on/off $wp_customize->add_setting("call_us_sec_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "call_us_sec_on_off", array( 'type' => 'radio', 'label' => __("Call us Section On/Off", "business-booster"), 'section' => 'home_page_set', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for call us label $wp_customize->add_setting("business_booster_call_label", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_call_label", array( "label" => __("Call Us Label", "business-booster"), "section" => "home_page_set", "settings" => "business_booster_call_label", ) )); // for call us number $wp_customize->add_setting("business_booster_call_num", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_call_num", array( "label" => __("Call Us Number", "business-booster"), "section" => "home_page_set", "settings" => "business_booster_call_num", ) )); // for email id section on/off $wp_customize->add_setting("email_sec_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "email_sec_on_off", array( 'type' => 'radio', 'label' => __("Email Section On/Off", "business-booster"), 'section' => 'home_page_set', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for email label $wp_customize->add_setting("business_booster_email_label", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_email_label", array( "label" => __("Email Label", "business-booster"), "section" => "home_page_set", "settings" => "business_booster_email_label", ) )); // for email id $wp_customize->add_setting("business_booster_email_id", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'sanitize_email' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_email_id", array( "label" => __("Email Id:", "business-booster"), "section" => "home_page_set", "settings" => "business_booster_email_id", ) )); // for Follow us text $wp_customize->add_setting("business_booster_follow_us_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_follow_us_text", array( "label" => __("Follow Us Text", "business-booster"), "section" => "home_page_set", "settings" => "business_booster_follow_us_text", ) )); // for facebook icons on off option $wp_customize->add_setting("social_fb_sec_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_fb_sec_on_off", array( 'type' => 'radio', 'label' => __("Facebook Icon On/Off", "business-booster"), 'section' => 'home_page_set', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for social site link options // for facebook link $wp_customize->add_setting("social_fb_btn_lnk", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_fb_btn_lnk", array( "label" => __("Facebook Button Link", "business-booster"), "section" => "home_page_set", "settings" => "social_fb_btn_lnk", "type" => "url", ) )); // for twitter icons on off option $wp_customize->add_setting("social_twitter_sec_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_twitter_sec_on_off", array( 'type' => 'radio', 'label' => __("Twitter Icon On/Off", "business-booster"), 'section' => 'home_page_set', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for twitter link $wp_customize->add_setting("social_twitter_btn_lnk", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_twitter_btn_lnk", array( "label" => __("Twitter Button Link", "business-booster"), "section" => "home_page_set", "settings" => "social_twitter_btn_lnk", "type" => "url", ) )); // for linkedin icons on off option $wp_customize->add_setting("social_linkedin_sec_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_linkedin_sec_on_off", array( 'type' => 'radio', 'label' => __("Linkedin Icon On/Off", "business-booster"), 'section' => 'home_page_set', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for linkedin link $wp_customize->add_setting("social_linkedin_btn_lnk", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_linkedin_btn_lnk", array( "label" => __("Linkedin Button Link", "business-booster"), "section" => "home_page_set", "settings" => "social_linkedin_btn_lnk", "type" => "url", ) )); // for google icons on off option $wp_customize->add_setting("social_google_sec_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_google_sec_on_off", array( 'type' => 'radio', 'label' => __("Google Plus Icon On/Off", "business-booster"), 'section' => 'home_page_set', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for google link $wp_customize->add_setting("social_google_btn_lnk", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_google_btn_lnk", array( "label" => __("Google Plus Button Link", "business-booster"), "section" => "home_page_set", "settings" => "social_google_btn_lnk", "type" => "url", ) )); // for rss icons on off option $wp_customize->add_setting("social_rss_sec_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_rss_sec_on_off", array( 'type' => 'radio', 'label' => __("RSS Icon On/Off", "business-booster"), 'section' => 'home_page_set', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for rss feed link $wp_customize->add_setting("social_rssfeed_btn_lnk", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "social_rssfeed_btn_lnk", array( "label" => __("RSS Feed Button Link", "business-booster"), "section" => "home_page_set", "settings" => "social_rssfeed_btn_lnk", "type" => "url", ) )); // Banner section $wp_customize->add_section("business_booster_banner_section", array( "title" => __("Banner Section", "business-booster"), "priority" => 35, )); // Banner section on off option $wp_customize->add_setting("business_booster_banner_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_banner_on_off", array( 'type' => 'radio', 'label' => __("Banner Section On/Off", "business-booster"), 'section' => 'business_booster_banner_section', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for banner image $wp_customize->add_setting("business_booster_banner_img", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_booster_banner_img", array( "label" => __("Banner Image", "business-booster"), "section" => "business_booster_banner_section", "settings" => "business_booster_banner_img", ) )); // for banner small heading $wp_customize->add_setting("business_booster_banner_small_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_banner_small_head", array( "label" => __("Small Heading", "business-booster"), "section" => "business_booster_banner_section", "settings" => "business_booster_banner_small_head", ) )); // for banner main heading $wp_customize->add_setting("business_booster_banner_main_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_banner_main_head", array( "label" => __("Main Heading", "business-booster"), "section" => "business_booster_banner_section", "settings" => "business_booster_banner_main_head", ) )); // for banner description $wp_customize->add_setting("business_booster_banner_desc", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_banner_desc", array( "label" => __("Description", "business-booster"), "section" => "business_booster_banner_section", "settings" => "business_booster_banner_desc", ) )); // for banner button text $wp_customize->add_setting("business_booster_banner_btn_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_banner_btn_text", array( "label" => __("Button Text", "business-booster"), "section" => "business_booster_banner_section", "settings" => "business_booster_banner_btn_text", ) )); // for banner button link $wp_customize->add_setting("business_booster_banner_btn_link", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_banner_btn_link", array( "label" => __("Button Link", "business-booster"), "section" => "business_booster_banner_section", "settings" => "business_booster_banner_btn_link", "type" => "url", ) )); // services section $wp_customize->add_section("business_booster_services_section", array( "title" => __("Services Section", "business-booster"), "priority" => 35, )); // services section on off option $wp_customize->add_setting("business_booster_services_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_services_on_off", array( 'type' => 'radio', 'label' => __("Services Section On/Off", "business-booster"), 'section' => 'business_booster_services_section', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for services small heading $wp_customize->add_setting("business_booster_services_small_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_services_small_head", array( "label" => __("Small Heading", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_services_small_head", ) )); // for services main heading $wp_customize->add_setting("business_booster_services_main_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_services_main_head", array( "label" => __("Main Heading", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_services_main_head", ) )); // for services description text $wp_customize->add_setting("business_booster_services_desc_txt", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_services_desc_txt", array( "label" => __("Description Text", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_services_desc_txt", ) )); // for srevice 1 content // for service 1 icon $wp_customize->add_setting("business_booster_service1_icon", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_booster_service1_icon", array( "label" => __("Service 1 Icon", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service1_icon", ) )); // for service 1 heading $wp_customize->add_setting("business_booster_service1_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service1_head", array( "label" => __("Service 1 Heading", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service1_head", ) )); // for service 1 text $wp_customize->add_setting("business_booster_service1_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service1_text", array( "label" => __("Service 1 Text", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service1_text", ) )); // for srevice 2 content // for service 2 icon $wp_customize->add_setting("business_booster_service2_icon", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_booster_service2_icon", array( "label" => __("Service 2 Icon", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service2_icon", ) )); // for service 2 heading $wp_customize->add_setting("business_booster_service2_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service2_head", array( "label" => __("Service 2 Heading", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service2_head", ) )); // for service 2 text $wp_customize->add_setting("business_booster_service2_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service2_text", array( "label" => __("Service 2 Text", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service2_text", ) )); // for srevice 3 content // for service 3 icon $wp_customize->add_setting("business_booster_service3_icon", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_booster_service3_icon", array( "label" => __("Service 3 Icon", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service3_icon", ) )); // for service 3 heading $wp_customize->add_setting("business_booster_service3_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service3_head", array( "label" => __("Service 3 Heading", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service3_head", ) )); // for service 3 text $wp_customize->add_setting("business_booster_service3_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service3_text", array( "label" => __("Service 3 Text", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service3_text", ) )); // for srevice 4 content // for service 4 icon $wp_customize->add_setting("business_booster_service4_icon", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_booster_service4_icon", array( "label" => __("Service 4 Icon", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service4_icon", ) )); // for service 4 heading $wp_customize->add_setting("business_booster_service4_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service4_head", array( "label" => __("Service 4 Heading", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service4_head", ) )); // for service 4 text $wp_customize->add_setting("business_booster_service4_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service4_text", array( "label" => __("Service 4 Text", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service4_text", ) )); // for srevice 5 content // for service 5 icon $wp_customize->add_setting("business_booster_service5_icon", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_booster_service5_icon", array( "label" => __("Service 5 Icon", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service5_icon", ) )); // for service 5 heading $wp_customize->add_setting("business_booster_service5_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service5_head", array( "label" => __("Service 5 Heading", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service5_head", ) )); // for service 5 text $wp_customize->add_setting("business_booster_service5_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service5_text", array( "label" => __("Service 5 Text", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service5_text", ) )); // for srevice 6 content // for service 6 icon $wp_customize->add_setting("business_booster_service6_icon", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_booster_service6_icon", array( "label" => __("Service 6 Icon", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service6_icon", ) )); // for service 6 heading $wp_customize->add_setting("business_booster_service6_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service6_head", array( "label" => __("Service 6 Heading", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service6_head", ) )); // for service 6 text $wp_customize->add_setting("business_booster_service6_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_service6_text", array( "label" => __("Service 6 Text", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_service6_text", ) )); // for service button text $wp_customize->add_setting("business_booster_services_btn_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_services_btn_text", array( "label" => __("Services Button Text", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_services_btn_text", ) )); // for service button link $wp_customize->add_setting("business_booster_services_btn_link", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_services_btn_link", array( "label" => __("Services Button Link", "business-booster"), "section" => "business_booster_services_section", "settings" => "business_booster_services_btn_link", "type" => "url", ) )); // counters section $wp_customize->add_section("business_booster_counters_section", array( "title" => __("Counters Section", "business-booster"), "priority" => 35, )); // for counter section on/off $wp_customize->add_setting("business_counters_sec_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_counters_sec_on_off", array( 'type' => 'radio', 'label' => __("Counters Section On/Off", "business-booster"), 'section' => 'business_booster_counters_section', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for counters section background image $wp_customize->add_setting("business_counters_bg_image", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_counters_bg_image", array( "label" => __("Counters Section Background Image", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_counters_bg_image", ) )); // for counters small head text $wp_customize->add_setting("business_booster_counter_small_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter_small_head", array( "label" => __("Small Heading Text", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter_small_head", ) )); // for counters main head text $wp_customize->add_setting("business_booster_counter_main_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter_main_head", array( "label" => __("Main Heading Text", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter_main_head", ) )); // for counters description text $wp_customize->add_setting("business_booster_counter_desc_txt", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter_desc_txt", array( "label" => __("Description Text", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter_desc_txt", ) )); // for counters button text $wp_customize->add_setting("business_booster_counter_btn_txt", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter_btn_txt", array( "label" => __("Button Text", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter_btn_txt", ) )); // for counters button link $wp_customize->add_setting("business_booster_counter_btn_link", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter_btn_link", array( "label" => __("Button Link", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter_btn_link", "type" => "url", ) )); // for counter1 number and text // for counter1 number $wp_customize->add_setting("business_booster_counter1_number", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter1_number", array( "label" => __("Counter 1 Number", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter1_number", ) )); // for counter1 text $wp_customize->add_setting("business_booster_counter1_number_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter1_number_text", array( "label" => __("Counter 1 Text", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter1_number_text", ) )); // for counter2 number and text // for counter2 number $wp_customize->add_setting("business_booster_counter2_number", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter2_number", array( "label" => __("Counter 2 Number", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter2_number", ) )); // for counter2 text $wp_customize->add_setting("business_booster_counter2_number_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter2_number_text", array( "label" => __("Counter 2 Text", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter2_number_text", ) )); // for counter3 number and text // for counter3 number $wp_customize->add_setting("business_booster_counter3_number", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter3_number", array( "label" => __("Counter 3 Number", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter3_number", ) )); // for counter3 text $wp_customize->add_setting("business_booster_counter3_number_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_counter3_number_text", array( "label" => __("Counter 3 Text", "business-booster"), "section" => "business_booster_counters_section", "settings" => "business_booster_counter3_number_text", ) )); // team member section $wp_customize->add_section("business_booster_team_section", array( "title" => __("Team Member Section", "business-booster"), "priority" => 35, )); // for team member section on/off $wp_customize->add_setting("business_booster_team_section_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_team_section_on_off", array( 'type' => 'radio', 'label' => __("Team Members Section On/Off", "business-booster"), 'section' => 'business_booster_team_section', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for team small heading $wp_customize->add_setting("business_booster_team_small_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_team_small_head", array( "label" => __("Team Member Small Heading", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_booster_team_small_head", ) )); // for team main heading $wp_customize->add_setting("business_booster_team_main_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_team_main_head", array( "label" => __("Team Member Main Heading", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_booster_team_main_head", ) )); // for team description text $wp_customize->add_setting("business_booster_team_desc_txt", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_team_desc_txt", array( "label" => __("Team Member Description Text", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_booster_team_desc_txt", ) )); // for team member 1 image and position // for team member1 image $wp_customize->add_setting("business_team_member1_img", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_team_member1_img", array( "label" => __("Team Member 1 Image", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member1_img", ) )); // for team member1 name $wp_customize->add_setting("business_team_member1_name", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_team_member1_name", array( "label" => __("Team Member 1 Name", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member1_name", ) )); // for team member1 page link $wp_customize->add_setting("business_team_member1_page_link", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_team_member1_page_link", array( "label" => __("Team Member 1 Page Link", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member1_page_link", "type" => "url", ) )); // for team member1 position $wp_customize->add_setting("business_team_member1_pos", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_team_member1_pos", array( "label" => __("Team Member 1 Position", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member1_pos", ) )); // for team member 2 image and position // for team member2 image $wp_customize->add_setting("business_team_member2_img", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_team_member2_img", array( "label" => __("Team Member 2 Image", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member2_img", ) )); // for team member2 name $wp_customize->add_setting("business_team_member2_name", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_team_member2_name", array( "label" => __("Team Member 2 Name", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member2_name", ) )); // for team member2 page link $wp_customize->add_setting("business_team_member2_page_link", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_team_member2_page_link", array( "label" => __("Team Member 2 Page Link", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member2_page_link", "type" => "url", ) )); // for team member2 position $wp_customize->add_setting("business_team_member2_pos", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_team_member2_pos", array( "label" => __("Team Member 2 Position", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member2_pos", ) )); // for team member 3 image and position // for team member3 image $wp_customize->add_setting("business_team_member3_img", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_team_member3_img", array( "label" => __("Team Member 3 Image", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member3_img", ) )); // for team member3 name $wp_customize->add_setting("business_team_member3_name", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_team_member3_name", array( "label" => __("Team Member 3 Name", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member3_name", ) )); // for team member3 page link $wp_customize->add_setting("business_team_member3_page_link", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_team_member3_page_link", array( "label" => __("Team Member 3 Page Link", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member3_page_link", "type" => "url", ) )); // for team member3 position $wp_customize->add_setting("business_team_member3_pos", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_team_member3_pos", array( "label" => __("Team Member 3 Position", "business-booster"), "section" => "business_booster_team_section", "settings" => "business_team_member3_pos", ) )); // news section $wp_customize->add_section("business_booster_news_section", array( "title" => __("News Section", "business-booster"), "priority" => 35, )); // for team member section on/off $wp_customize->add_setting("business_booster_news_section_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_news_section_on_off", array( 'type' => 'radio', 'label' => __("News Section On/Off", "business-booster"), 'section' => 'business_booster_news_section', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // for news section background image $wp_customize->add_setting("business_booster_news_bg_image", array( "default" => "", "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize, "business_booster_news_bg_image", array( "label" => __("News Section Background Image", "business-booster"), "section" => "business_booster_news_section", "settings" => "business_booster_news_bg_image", ) )); // for news small heading text $wp_customize->add_setting("business_booster_news_small_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_news_small_head", array( "label" => __("Small Heading", "business-booster"), "section" => "business_booster_news_section", "settings" => "business_booster_news_small_head", ) )); // for news main heading text $wp_customize->add_setting("business_booster_news_main_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_news_main_head", array( "label" => __("Main Heading", "business-booster"), "section" => "business_booster_news_section", "settings" => "business_booster_news_main_head", ) )); // for news main heading text $wp_customize->add_setting("business_booster_news_desc_txt", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_news_desc_txt", array( "label" => __("Description Text", "business-booster"), "section" => "business_booster_news_section", "settings" => "business_booster_news_desc_txt", ) )); // stay tuned section $wp_customize->add_section("business_booster_stay_tuned_section", array( "title" => __("Stay Tuned Section", "business-booster"), "priority" => 35, )); // for stay tuned section on/off $wp_customize->add_setting("business_booster_stay_tuned_section_on_off", array( "default" => 'off', "transport" => "refresh", 'sanitize_callback' => 'business_booster_radio_sanitize_row', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_stay_tuned_section_on_off", array( 'type' => 'radio', 'label' => __("Stay Tuned Section On/Off", "business-booster"), 'section' => 'business_booster_stay_tuned_section', 'choices' => array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ), ) )); // stay tuned main heading text $wp_customize->add_setting("business_booster_stay_tuned_head", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_stay_tuned_head", array( "label" => __("Heading Text", "business-booster"), "section" => "business_booster_stay_tuned_section", "settings" => "business_booster_stay_tuned_head", ) )); // stay tuned button text $wp_customize->add_setting("business_booster_stay_tuned_button_txt", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_stay_tuned_button_txt", array( "label" => __("Button Text", "business-booster"), "section" => "business_booster_stay_tuned_section", "settings" => "business_booster_stay_tuned_button_txt", ) )); // stay tuned button link $wp_customize->add_setting("business_booster_stay_tuned_button_link", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_stay_tuned_button_link", array( "label" => __("Button Link", "business-booster"), "section" => "business_booster_stay_tuned_section", "settings" => "business_booster_stay_tuned_button_link", "type" => "url", ) )); //Footer text $wp_customize->add_section("footer_sec", array( "title" => __("Footer Text", "business-booster"), "priority" => 35, )); // for copyright text $wp_customize->add_setting("business_booster_copyright_text", array( "default" => '', "transport" => "refresh", 'sanitize_callback' => 'business_booster_text_sanitize_row' )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, "business_booster_copyright_text", array( "label" => __("Footer Text", "business-booster"), "section" => "footer_sec", "settings" => "business_booster_copyright_text", ) )); } add_action( 'customize_register', 'business_booster_customize_register' ); // sanitize_callback function function business_booster_text_sanitize_row( $input ) { return sanitize_text_field( $input ); } function business_booster_radio_sanitize_row($input) { $valid_keys = array( 'on' =>__("On", "business-booster"), 'off' => __("Off", "business-booster") ); if ( array_key_exists( $input, $valid_keys ) ) { return $input; } else { return ''; } } /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function business_booster_customize_preview_js() { wp_enqueue_script( 'business_booster_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true ); } add_action( 'customize_preview_init', 'business_booster_customize_preview_js' );