remove_control('header_textcolor'); /* Header Section */ $wp_customize->add_panel( 'header_options', array( 'priority' => 1, 'capability' => 'edit_theme_options', 'title' => __('Theme Options Settings', 'becorp'), ) ); $wp_customize->add_section( 'header_front_data' , array( 'title' => __('Custom Header Settings', 'becorp'), 'panel' => 'header_options', 'priority' => 20, ) ); //Hide slider $wp_customize->add_setting( 'becorp_option[header_info_phone]', array( 'default' => __('(2)245 23 68','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control('becorp_option[header_info_phone]', array( 'label' => __('Header Headline :', 'becorp'), 'section' => 'header_front_data', 'type' => 'text', )); $wp_customize->add_setting('becorp_option[header_info_mail]' , array( 'default' => 'becorp@gmail.com', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[header_info_mail]', array( 'label' => __('Header Text :', 'becorp'), 'section' => 'header_front_data', 'type' => 'text', )); //Header logo setting $wp_customize->add_section( 'header_logo' , array( 'title' => __('Header Logo setting', 'becorp'), 'panel' => 'header_options', 'priority' => 21, ) ); $wp_customize->add_setting( 'becorp_option[upload_image_logo]' , array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'becorp_option[upload_image_logo]', array( 'label' => __( 'Upload a 250x50 for Logo Image', 'becorp' ), 'section' => 'header_logo', ) ) ); //Logo width $wp_customize->add_setting( 'becorp_option[width]',array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 200, 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[width]', array( 'type' => 'text', 'label' => __('Enter Logo Width','becorp'), 'section' => 'header_logo', ) ); //Logo Height $wp_customize->add_setting( 'becorp_option[height]',array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 50, 'type'=>'option', )); $wp_customize->add_control( 'becorp_option[height]', array( 'type' => 'text', 'label' => __('Enter Logo Height','becorp'), 'section' => 'header_logo', ) ); //Header social Icon $wp_customize->add_section( 'header_social_icon', array( 'title' => 'Social Link ', 'panel' => 'header_options', 'priority' => 23, ) ); //Show and hide Header Social Icons $wp_customize->add_setting( 'becorp_option[header_social_media_enabled]' , array( 'default' => 0, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[header_social_media_enabled]', array( 'label' => __('Show Social icons','becorp'), 'section' => 'header_social_icon', 'type' => 'checkbox', ) ); // Facebook link $wp_customize->add_setting( 'becorp_option[social_media_facebook_link]', array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_facebook_link]', array( 'label' => __('Facebook URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[facebook_media_enabled]',array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[facebook_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //twitter link $wp_customize->add_setting( 'becorp_option[social_media_twitter_link]', array( 'default' => '#', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_twitter_link]', array( 'label' => __('Twitter URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[twitter_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[twitter_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //Linkdin link $wp_customize->add_setting( 'becorp_option[social_media_linkedin_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_linkedin_link]', array( 'label' => __('Linkdin URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[linkedin_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[linkedin_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //dribbble link $wp_customize->add_setting( 'becorp_option[social_media_dribbble_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_dribbble_link]', array( 'label' => __('Dribbble URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[dribbble_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[dribbble_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //googlelink $wp_customize->add_setting( 'becorp_option[social_media_google_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_google_link]', array( 'label' => __('Google URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[google_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[google_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //rss link $wp_customize->add_setting( 'becorp_option[social_media_rss_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'becorp_option[social_media_rss_link]', array( 'label' => __('rss URL','becorp'), 'section' => 'header_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'becorp_option[rss_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'becorp_option[rss_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','becorp'), 'section' => 'header_social_icon', ) ); //Custom css $wp_customize->add_section( 'custom_css' , array( 'title' => __('Custom css', 'becorp'), 'panel' => 'header_options', 'priority' => 24, ) ); $wp_customize->add_setting( 'becorp_option[becorp_custom_css]' , array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_strip_all_tags', 'type'=> 'option', )); $wp_customize->add_control( 'becorp_option[becorp_custom_css]', array( 'label' => __('Custom css snippet:', 'becorp'), 'section' => 'custom_css', 'type' => 'textarea', )); // Footer Copyright Option Settings $wp_customize->add_section( 'footer_copyright_setting' , array( 'title' => __('Footer Customization', 'becorp'), 'panel' => 'header_options', 'priority' => 39, ) ); $wp_customize->add_setting( 'becorp_option[footer_customization_text]' , array( 'default' => __('@ 2015 Becorp Theme ','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type'=> 'option', )); $wp_customize->add_control( 'becorp_option[footer_customization_text]', array( 'label' => __('Footer Customization Text', 'becorp'), 'section' => 'footer_copyright_setting', 'type' => 'text', )); $wp_customize->add_setting( 'becorp_option[footer_customization_develop]' , array( 'default' => __('Developed By ','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type'=> 'option', )); $wp_customize->add_control( 'becorp_option[footer_customization_develop]', array( 'label' => __('Footer Customization Developed By', 'becorp'), 'section' => 'footer_copyright_setting', 'type' => 'text', )); $wp_customize->add_setting( 'becorp_option[develop_by_name]' , array( 'default' => __('Asia Themes ','becorp'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type'=> 'option', )); $wp_customize->add_control( 'becorp_option[develop_by_name]', array( 'label' => __('Theme Developed By Name', 'becorp'), 'section' => 'footer_copyright_setting', 'type' => 'text', )); $wp_customize->add_setting( 'becorp_option[develop_by_link]' , array( 'default' => 'https://asiathemes.com/', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type'=> 'option', )); $wp_customize->add_control( 'becorp_option[develop_by_link]', array( 'label' => __('Theme Developed By Link', 'becorp'), 'section' => 'footer_copyright_setting', 'type' => 'text', )); $wp_customize->add_section( 'becorp_pro' , array( 'title' => __( 'Upgrade to Becorp Premium', 'becorp' ), 'priority' => 999, 'panel'=>'header_options', ) ); $wp_customize->add_setting( 'becorp_pro', array( 'default' => null, 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new More_becorp_Control( $wp_customize, 'becorp_pro', array( 'label' => __( 'becorp Premium', 'becorp' ), 'section' => 'becorp_pro', 'settings' => 'becorp_pro', 'priority' => 1, ) ) ); } /* Custom Control Class */ if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'becorp_Customize_Misc_Control' ) ) : class becorp_Customize_Misc_Control extends WP_Customize_Control { public $settings = 'blogname'; public $description = ''; public function render_content() { switch ( $this->type ) { default: case 'heading': echo '' . esc_html( $this->label ) . ''; break; case 'line' : echo '