add_panel('callcenter_copyright', array( 'priority' => 455, 'capability' => 'edit_theme_options', 'title' => __('Footer Settings', 'callcenter'), ) ); $wp_customize->add_section('copyright_section_one', array( 'title' => __('Footer Copyright Settings','callcenter'), 'description' => __('This is a Footer section.','callcenter'), 'priority' => 35, 'panel' => 'callcenter_copyright', ) ); // hide meta content $wp_customize->add_setting( 'hide_copyright',array( 'default' => 'true', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control('hide_copyright', array( 'label' => __('Hide/Show Copyright Text','callcenter'), 'description' => __('Hide/Show Footer Copyright Text', 'callcenter'), 'section' => 'copyright_section_one', 'type' => 'radio', 'choices' => array('true'=>'On','false'=>'Off'), ) ); $wp_customize->add_setting('callcenter_footer_copyright_setting', array( 'sanitize_callback' => 'callcenter_footer_copyright_sanitize_text', 'default' => __('
© Copyright 2015 by callcenter. All Rights Reserved. Powered by WordPress
','callcenter'), ) ); $wp_customize->add_control('callcenter_footer_copyright_setting', array( 'label' => __('Copyright text','callcenter'), 'section' => 'copyright_section_one', 'type' => 'textarea', ) ); //Footer social link $wp_customize->add_section('copyright_social_icon', array( 'title' => __('Social Link','callcenter'), 'priority' => 45, 'panel' => 'callcenter_copyright', ) ); //Hide Footer Social Icons $wp_customize->add_setting('hide_footer_icon', array( 'default' => 'true', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control('hide_footer_icon', array( 'label' => __('Hide/Show Social Icons','callcenter'), 'description' => __('Hide/Show Footer Social Icons', 'callcenter'), 'section' => 'copyright_social_icon', 'type' => 'radio', 'choices' => array('true'=>'On','false'=>'Off'), ) ); // Facebook link $wp_customize->add_setting('social_link_facebook', array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control('social_link_facebook', array( 'label' => __('Facebook URL','callcenter'), 'section' => 'copyright_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'Social_link_facebook_tab',array( 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('Social_link_facebook_tab', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','callcenter'), 'section' => 'copyright_social_icon', ) ); //Twitter link $wp_customize->add_setting( 'social_link_twitter', array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'social_link_twitter', array( 'label' => __('Twitter URL','callcenter'), 'section' => 'copyright_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'Social_link_twitter_tab',array( 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'Social_link_twitter_tab', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','callcenter'), 'section' => 'copyright_social_icon', ) ); //Linkdin link $wp_customize->add_setting( 'social_link_linkedin', array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'social_link_linkedin', array( 'label' => __('Linkedin URL','callcenter'), 'section' => 'copyright_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'Social_link_linkedin_tab',array( 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'Social_link_linkedin_tab', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','callcenter'), 'section' => 'copyright_social_icon', ) ); //Google-plus link $wp_customize->add_setting('social_link_google', array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control('social_link_google', array( 'label' => __('Google-plus URL','callcenter'), 'section' => 'copyright_social_icon', 'type' => 'text', ) ); $wp_customize->add_setting( 'Social_link_google_tab',array( 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control('Social_link_google_tab', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','callcenter'), 'section' => 'copyright_social_icon', ) ); function callcenter_footer_copyright_sanitize_text( $input ) { return wp_kses_post( force_balance_tags( $input ) ); } function callcenter_footer_copyright_sanitize_html( $input ) { return force_balance_tags( $input ); } } add_action( 'customize_register', 'callcenter_footer_copyright' ); ?>