add_section( 'aster_storefront_post_options', array( 'title' => esc_html__( 'Post Options', 'aster-storefront' ), 'panel' => 'aster_storefront_theme_options', ) ); // Post Options - Show / Hide Feature Image. $wp_customize->add_setting( 'aster_storefront_post_hide_feature_image', array( 'default' => false, 'sanitize_callback' => 'aster_storefront_sanitize_switch', ) ); $wp_customize->add_control( new Aster_Storefront_Toggle_Switch_Custom_Control( $wp_customize, 'aster_storefront_post_hide_feature_image', array( 'label' => esc_html__( 'Show / Hide Featured Image', 'aster-storefront' ), 'section' => 'aster_storefront_post_options', ) ) ); // Post Options - Show / Hide Post Heading. $wp_customize->add_setting( 'aster_storefront_post_hide_post_heading', array( 'default' => false, 'sanitize_callback' => 'aster_storefront_sanitize_switch', ) ); $wp_customize->add_control( new Aster_Storefront_Toggle_Switch_Custom_Control( $wp_customize, 'aster_storefront_post_hide_post_heading', array( 'label' => esc_html__( 'Show / Hide Post Heading', 'aster-storefront' ), 'section' => 'aster_storefront_post_options', ) ) ); // Post Options - Show / Hide Post Content. $wp_customize->add_setting( 'aster_storefront_post_hide_post_content', array( 'default' => false, 'sanitize_callback' => 'aster_storefront_sanitize_switch', ) ); $wp_customize->add_control( new Aster_Storefront_Toggle_Switch_Custom_Control( $wp_customize, 'aster_storefront_post_hide_post_content', array( 'label' => esc_html__( 'Show / Hide Post Content', 'aster-storefront' ), 'section' => 'aster_storefront_post_options', ) ) ); // Post Options - Show / Hide Date. $wp_customize->add_setting( 'aster_storefront_post_hide_date', array( 'default' => false, 'sanitize_callback' => 'aster_storefront_sanitize_switch', ) ); $wp_customize->add_control( new Aster_Storefront_Toggle_Switch_Custom_Control( $wp_customize, 'aster_storefront_post_hide_date', array( 'label' => esc_html__( 'Show / Hide Date', 'aster-storefront' ), 'section' => 'aster_storefront_post_options', ) ) ); // Post Options - Show / Hide Author. $wp_customize->add_setting( 'aster_storefront_post_hide_author', array( 'default' => false, 'sanitize_callback' => 'aster_storefront_sanitize_switch', ) ); $wp_customize->add_control( new Aster_Storefront_Toggle_Switch_Custom_Control( $wp_customize, 'aster_storefront_post_hide_author', array( 'label' => esc_html__( 'Show / Hide Author', 'aster-storefront' ), 'section' => 'aster_storefront_post_options', ) ) ); // Post Options - Show / Hide Category. $wp_customize->add_setting( 'aster_storefront_post_hide_category', array( 'default' => true, 'sanitize_callback' => 'aster_storefront_sanitize_switch', ) ); $wp_customize->add_control( new Aster_Storefront_Toggle_Switch_Custom_Control( $wp_customize, 'aster_storefront_post_hide_category', array( 'label' => esc_html__( 'Show / Hide Category', 'aster-storefront' ), 'section' => 'aster_storefront_post_options', ) ) ); $wp_customize->add_setting('aster_storefront_blog_layout_option_setting',array( 'default' => 'Left', 'sanitize_callback' => 'aster_storefront_sanitize_choices' )); $wp_customize->add_control(new Aster_Storefront_Image_Radio_Control($wp_customize, 'aster_storefront_blog_layout_option_setting', array( 'type' => 'select', 'label' => __('Blog Content Alignment','aster-storefront'), 'section' => 'aster_storefront_post_options', 'choices' => array( 'Left' => esc_url(get_template_directory_uri()).'/resource/img/layout-2.png', 'Default' => esc_url(get_template_directory_uri()).'/resource/img/layout-1.png', 'Right' => esc_url(get_template_directory_uri()).'/resource/img/layout-3.png', ))));