add_section( 'alley_home_services_customize_blog_option', array( 'title' => esc_html__( 'Blog Options', 'alley-home-services' ), 'priority' => 17, ) ); if ( alley_home_services_set_pro_active() ) { $wp_customize->add_setting( 'blog_post_layout', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'alley_home_services_sanitize_choices', 'default' => 'sidebar-right', ) ); $wp_customize->add_control( new Alley_Home_Services_Buttonset_Control( $wp_customize, 'blog_post_layout', array( 'label' => esc_html__( 'Layouts :', 'alley-home-services' ), 'section' => 'alley_home_services_customize_blog_option', 'settings' => 'blog_post_layout', 'type'=> 'radio-buttonset', 'choices' => array( 'sidebar-left' => esc_html__( 'Sidebar at left', 'alley-home-services' ), 'no-sidebar' => esc_html__( 'No sidebar', 'alley-home-services' ), 'sidebar-right' => esc_html__( 'Sidebar at right', 'alley-home-services' ), ), ) ) ); } $wp_customize->add_setting( 'blog_post_view', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'alley_home_services_sanitize_choices', 'default' => 'grid-view', ) ); $wp_customize->add_control( new Alley_Home_Services_Buttonset_Control( $wp_customize, 'blog_post_view', array( 'label' => esc_html__( 'Post View :', 'alley-home-services' ), 'section' => 'alley_home_services_customize_blog_option', 'settings' => 'blog_post_view', 'type'=> 'radio-buttonset', 'choices' => array( 'grid-view' => esc_html__( 'Grid View', 'alley-home-services' ), 'list-view' => esc_html__( 'List View', 'alley-home-services' ), 'col-3-view' => esc_html__( 'Column 3 View', 'alley-home-services' ), 'full-width-view' => esc_html__( 'Fullwidth View', 'alley-home-services' ), ), ) ) ); $wp_customize->add_setting( 'hide_show_date', array( 'sanitize_callback' => 'alley_home_services_sanitize_checkbox', 'default' => true ) ); $wp_customize->add_control( new Alley_Home_Services_Toggle_Control( $wp_customize, 'hide_show_date', array( 'label' => esc_html__( 'Show/Hide Date','alley-home-services' ), 'section' => 'alley_home_services_customize_blog_option', 'settings' => 'hide_show_date', 'type'=> 'toggle', ) ) ); $wp_customize->add_setting( 'hide_show_author', array( 'sanitize_callback' => 'alley_home_services_sanitize_checkbox', 'default' => true ) ); $wp_customize->add_control( new Alley_Home_Services_Toggle_Control( $wp_customize, 'hide_show_author', array( 'label' => esc_html__( 'Show/Hide Author','alley-home-services' ), 'section' => 'alley_home_services_customize_blog_option', 'settings' => 'hide_show_author', 'type'=> 'toggle', ) ) ); $wp_customize->add_setting( 'hide_show_comment', array( 'sanitize_callback' => 'alley_home_services_sanitize_checkbox', 'default' => true ) ); $wp_customize->add_control( new Alley_Home_Services_Toggle_Control( $wp_customize, 'hide_show_comment', array( 'label' => esc_html__( 'Show/Hide Comment','alley-home-services' ), 'section' => 'alley_home_services_customize_blog_option', 'settings' => 'hide_show_comment', 'type'=> 'toggle', ) ) ); }