add_section( 'single_post_setting', array( 'title' => esc_html__( 'Single Post Settings', 'asterisk-lite' ), 'capability' => 'edit_theme_options', 'panel' => 'asterisk_lite_options', ) ); $wp_customize->add_setting('enable_author_box', array( 'default' => $asterisk_lite_default['enable_author_box'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_checkbox', ) ); $wp_customize->add_control('enable_author_box', array( 'label' => esc_html__('Enable Author Box', 'asterisk-lite'), 'section' => 'single_post_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting('enable_single_related_post', array( 'default' => $asterisk_lite_default['enable_single_related_post'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_checkbox', ) ); $wp_customize->add_control('enable_single_related_post', array( 'label' => esc_html__('Enable Related Posts', 'asterisk-lite'), 'section' => 'single_post_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting('related_post_title', array( 'default' => $asterisk_lite_default['related_post_title'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control('related_post_title', array( 'label' => esc_html__('Related Posts Title', 'asterisk-lite'), 'section' => 'single_post_setting', 'type' => 'text', ) ); $wp_customize->add_setting('ed_floating_next_previous_nav', array( 'default' => $asterisk_lite_default['ed_floating_next_previous_nav'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'asterisk_lite_sanitize_checkbox', ) ); $wp_customize->add_control('ed_floating_next_previous_nav', array( 'label' => esc_html__('Enable Floating Next/Previous Post Nav', 'asterisk-lite'), 'section' => 'single_post_setting', 'type' => 'checkbox', ) );