add_section( 'alley_themes_customize_blog_option', array( 'title' => esc_html__( 'Blog Options', 'alley-themes' ), 'priority' => 15, ) ); $wp_customize->add_setting( 'blog_post_view', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'alley_themes_sanitize_choices', 'default' => 'grid-view', ) ); $wp_customize->add_control( new Alley_Themes_Buttonset_Control( $wp_customize, 'blog_post_view', array( 'label' => esc_html__( 'Post View :', 'alley-themes' ), 'section' => 'alley_themes_customize_blog_option', 'settings' => 'blog_post_view', 'type' => 'radio-buttonset', 'choices' => array( 'grid-view' => esc_html__( 'Grid View', 'alley-themes' ), 'list-view' => esc_html__( 'List View', 'alley-themes' ), 'col-3-view' => esc_html__( 'Column 3 View', 'alley-themes' ), 'full-width-view' => esc_html__( 'Fullwidth View', 'alley-themes' ), ), ) ) ); $wp_customize->add_setting( 'hide_show_date', array( 'sanitize_callback' => 'alley_themes_sanitize_checkbox', 'default' => true, ) ); $wp_customize->add_control( new Alley_Themes_Toggle_Control( $wp_customize, 'hide_show_date', array( 'label' => esc_html__( 'Show/Hide Date', 'alley-themes' ), 'section' => 'alley_themes_customize_blog_option', 'settings' => 'hide_show_date', 'type' => 'toggle', ) ) ); $wp_customize->add_setting( 'hide_show_author', array( 'sanitize_callback' => 'alley_themes_sanitize_checkbox', 'default' => true, ) ); $wp_customize->add_control( new Alley_Themes_Toggle_Control( $wp_customize, 'hide_show_author', array( 'label' => esc_html__( 'Show/Hide Author', 'alley-themes' ), 'section' => 'alley_themes_customize_blog_option', 'settings' => 'hide_show_author', 'type' => 'toggle', ) ) ); $wp_customize->add_setting( 'hide_show_comment', array( 'sanitize_callback' => 'alley_themes_sanitize_checkbox', 'default' => true, ) ); $wp_customize->add_control( new Alley_Themes_Toggle_Control( $wp_customize, 'hide_show_comment', array( 'label' => esc_html__( 'Show/Hide Comment', 'alley-themes' ), 'section' => 'alley_themes_customize_blog_option', 'settings' => 'hide_show_comment', 'type' => 'toggle', ) ) ); }