add_section( 'blogcafe_site_option_section' , array( 'title' => __( 'Site Option Section', 'blogcafe' ), 'priority' => 200, 'description' => __('Change site options here.', 'blogcafe'), ) ); $wp_customize->add_setting( 'blogcafe_logo' , array ( 'default' => '','sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'blogcafe_logo', array( 'label' => __( 'Logo', 'blogcafe' ), 'section' => 'blogcafe_site_option_section', 'settings' => 'blogcafe_logo', 'sanitize_callback' => 'esc_url_raw', ) ) ); $wp_customize->add_setting( 'blogcafe_blog_layout' , array ( 'default' => 'rightsidebar','sanitize_callback' => 'esc_html')); $wp_customize->add_control( 'blogcafe_blog_layout', array( 'label' => __( 'Select Blog Layout', 'blogcafe' ), 'type' => 'select', 'choices' => array( 'rightsidebar' => 'Right Sidebar', 'leftsidebar' => 'Left Sidebar', 'nosidebar' => 'Full Width', ), 'default' => 'Hide', 'section' => 'blogcafe_site_option_section', ) ); $wp_customize->add_setting( 'blogcafe_social_media_fb' , array ( 'default' => '','sanitize_callback' => 'esc_html')); $wp_customize->add_control( 'blogcafe_social_media_fb', array( 'label' => __( 'Facebook Link', 'blogcafe' ), 'type' => 'text', 'section' => 'blogcafe_site_option_section', ) ); $wp_customize->add_setting( 'blogcafe_social_media_tw' , array ( 'default' => '','sanitize_callback' => 'esc_html')); $wp_customize->add_control( 'blogcafe_social_media_tw', array( 'label' => __( 'Twitter Link', 'blogcafe' ), 'type' => 'text', 'section' => 'blogcafe_site_option_section', ) ); $wp_customize->add_setting( 'blogcafe_social_media_in' , array ( 'default' => '','sanitize_callback' => 'esc_html')); $wp_customize->add_control( 'blogcafe_social_media_in', array( 'label' => __( 'Linkdine Link', 'blogcafe' ), 'type' => 'text', 'section' => 'blogcafe_site_option_section', ) ); $wp_customize->add_setting( 'blogcafe_social_media_gp' , array ( 'default' => '','sanitize_callback' => 'esc_html')); $wp_customize->add_control( 'blogcafe_social_media_gp', array( 'label' => __( 'GooglePlus Link', 'blogcafe' ), 'type' => 'text', 'section' => 'blogcafe_site_option_section', ) ); $wp_customize->add_setting( 'blogcafe_footer_copyright' , array ( 'default' => '','sanitize_callback' => 'esc_html')); $wp_customize->add_control( 'blogcafe_footer_copyright', array( 'label' => __( 'Copyright Text', 'blogcafe' ), 'type' => 'text', 'section' => 'blogcafe_site_option_section', ) ); /*Ad Section*/ $wp_customize->add_section( 'blogcafe_ad_section' , array( 'title' => __( 'Ad Section', 'blogcafe' ), 'priority' => 210, 'description' => __('Change ad options here.', 'blogcafe'), ) ); $wp_customize->add_setting( 'blogcafe_ad_sidebar1' , array ( 'default' => '','sanitize_callback' => 'esc_textarea')); $wp_customize->add_control( 'blogcafe_ad_sidebar1', array( 'label' => __( 'Sidebar Ad 1', 'blogcafe' ), 'type' => 'textarea', 'section' => 'blogcafe_ad_section', ) ); $wp_customize->add_setting( 'blogcafe_ad_sidebar2' , array ( 'default' => '','sanitize_callback' => 'esc_textarea')); $wp_customize->add_control( 'blogcafe_ad_sidebar2', array( 'label' => __( 'Sidebar Ad 2', 'blogcafe' ), 'type' => 'textarea', 'section' => 'blogcafe_ad_section', ) ); } add_action( 'customize_register', 'blogcafe_theme_customizer' ); ?>