add_setting( 'header_bgcolor', array( 'default' => '', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'header_bgcolor', array( 'label' => 'Header Bgcolor', 'section' => 'colors', 'type' => 'color', 'priority' => 104, ) ); $fonk222->add_setting( 'header_color', array( 'default' => 'black', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'header_color', array( 'label' => 'Header Text-color', 'section' => 'colors', 'type' => 'color', 'priority' => 105, ) ); $fonk222->add_setting( 'gecerlimenu5', array( 'default' => '#00ffff', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'gecerlimenu5', array( 'label' => 'Submenu Bgcolor', 'section' => 'colors', 'type' => 'color', 'priority' => 106, ) ); $fonk222->add_setting( 'gecerlimenu', array( 'default' => '#000000', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'gecerlimenu', array( 'label' => 'Menu Link Bgcolor', 'section' => 'colors', 'type' => 'color', 'priority' => 107, ) ); $fonk222->add_setting( 'gecerlimenu2', array( 'default' => '', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'gecerlimenu2', array( 'label' => 'Menu Text-color', 'section' => 'colors', 'type' => 'color', 'priority' => 108, ) ); $fonk222->add_setting( 'gecerlimenu3', array( 'default' => 'green', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'gecerlimenu3', array( 'label' => 'Menu Hover Bgcolor', 'section' => 'colors', 'type' => 'color', 'priority' => 109, ) ); $fonk222->add_setting( 'gecerlimenu4', array( 'default' => '#444', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'gecerlimenu4', array( 'label' => 'Menu Drop-down Bgcolor', 'section' => 'colors', 'type' => 'color', 'priority' => 110, ) ); $fonk222->add_setting( 'contentbgcolor', array( 'default' => '', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'contentbgcolor', array( 'label' => 'Content Bgcolor', 'section' => 'colors', 'type' => 'color', 'priority' => 111, ) ); $fonk222->add_setting( 'contentcolor', array( 'default' => 'black', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'contentcolor', array( 'label' => 'Content Color', 'section' => 'colors', 'type' => 'color', 'priority' => 112, ) ); $fonk222->add_setting( 'contenttitlebgcolor', array( 'default' => '#eeee22', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'contenttitlebgcolor', array( 'label' => 'Content Title Bgcolor', 'section' => 'colors', 'type' => 'color', 'priority' => 113, ) ); $fonk222->add_setting( 'sidebar1bgcolor', array( 'default' => '', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'sidebar1bgcolor', array( 'label' => 'Sidebar-1 Bgcolor', 'section' => 'colors', 'type' => 'color', 'priority' => 114, ) ); $fonk222->add_setting( 'sidebar1color', array( 'default' => '', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( 'sidebar1color', array( 'label' => 'Sidebar-1 Color', 'section' => 'colors', 'type' => 'color', 'priority' => 115, ) ); $fonk222->add_setting( 'sidebar2bgcolor', array( 'default' => '', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( new WP_Customize_Color_Control( $fonk222, 'sidebar2bgcolor', array( 'label' => 'Sidebar-2 Bgcolor', 'section' => 'colors', 'priority' => 116, ) ) ); $fonk222->add_setting( 'sidebar2color', array( 'default' => '', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( new WP_Customize_Color_Control( $fonk222, 'sidebar2color', array( 'label' => 'Sidebar-2 Color', 'section' => 'colors', 'priority' => 117, ) ) ); $fonk222->add_setting( 'sidebar3bgcolor', array( 'default' => '', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( new WP_Customize_Color_Control( $fonk222, 'sidebar3bgcolor', array( 'label' => 'Sidebar-3 Bgcolor', 'section' => 'colors', 'priority' => 118, ) ) ); $fonk222->add_setting( 'sidebar3color', array( 'default' => '', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'refresh', ) ); $fonk222->add_control( new WP_Customize_Color_Control( $fonk222, 'sidebar3color', array( 'label' => 'Sidebar-3 Color', 'section' => 'colors', 'priority' => 119, ) ) ); $fonk222->add_setting( 'footerbgcolor', array( 'default' => '', 'transport' => 'refresh', ) ); $fonk222->add_control( 'footerbgcolor', array( 'label' => 'Footer Bgcolor', 'section' => 'colors', 'type' => 'color', 'priority' => 120, ) ); $fonk222->add_setting( 'footercolor', array( 'default' => '', 'transport' => 'refresh', ) ); $fonk222->add_control( 'footercolor', array( 'label' => 'Footer Text-color', 'section' => 'colors', 'type' => 'color', 'priority' => 121, ) ); $fonk222->add_section( 'edu_footer', array( 'title' => 'Footer', 'priority' => 505, 'capability' => 'edit_pages', ) ); $fonk222->add_setting( 'edu_footer_text', array( 'default' => '© FULLPORTAL - 2018', 'sanitize_callback' => 'edu_sanitize_footer_text', 'transport' => 'postMessage', ) ); $fonk222->add_control( 'edu_footer_text', array( 'label' => 'Footer contact info', 'section' => 'edu_footer', 'type' => 'text', ) ); $fonk222->add_setting( 'edu_footer_text2', array( 'default' => 'www.facebook.com', 'transport' => 'refresh', ) ); $fonk222->add_control( 'edu_footer_text2', array( 'label' => 'Facebook contact info', 'section' => 'edu_footer', 'type' => 'text', ) ); $fonk222->add_setting( 'edu_footer_text3', array( 'default' => 'www.twitter.com', 'transport' => 'refresh', ) ); $fonk222->add_control( 'edu_footer_text3', array( 'label' => 'Twitter contact info', 'section' => 'edu_footer', 'type' => 'text', ) ); $fonk222->add_setting( 'edu_footer_text4', array( 'default' => 'www.googleplus.com', 'transport' => 'refresh', ) ); $fonk222->add_control( 'edu_footer_text4', array( 'label' => 'Google+ contact info', 'section' => 'edu_footer', 'type' => 'text', ) ); $fonk222->add_setting( 'edu_footer_text5', array( 'default' => 'Bizi Takip Edin', 'transport' => 'refresh', ) ); $fonk222->add_control( 'edu_footer_text5', array( 'label' => 'Takip', 'section' => 'edu_footer', 'type' => 'text', ) ); } /** * Function edu_sanitize_footer_text * * @param var $input is footer text data from admin panel. * Sanitize footer text function. */ function edu_sanitize_footer_text( $input ) { return wp_kses_post( force_balance_tags( $input ) ); } add_action( 'customize_preview_init', 'edu_customizer_live_preview' ); /** * Live preview */ function edu_customizer_live_preview() { wp_enqueue_script( 'edu-theme-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'jquery', 'customize-preview' ), '1.0', true );}