add_section( 'section_home_latest_posts', array( 'title' => __( 'Blog And Archive', 'akisa' ), 'priority' => 110, 'capability' => 'edit_theme_options', 'panel' => 'theme_option_panel', ) ); // Latest Posts title $wp_customize->add_setting('theme_options[latest_posts_title]', array( 'default' => $default['latest_posts_title'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[latest_posts_title]', array( 'label' => __('Static Blog Page Header Title', 'akisa'), 'section' => 'section_home_latest_posts', 'settings' => 'theme_options[latest_posts_title]', 'type' => 'text' ) ); // Latest Posts title $wp_customize->add_setting('theme_options[latest_section_posts_title]', array( 'default' => $default['latest_section_posts_title'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[latest_section_posts_title]', array( 'label' => __('Blog Page Header Title', 'akisa'), 'description' => __('This Setting works on the Latest posts option chosen as the Homepage Setting.', 'akisa'), 'section' => 'section_home_latest_posts', 'settings' => 'theme_options[latest_section_posts_title]', 'type' => 'text' ) ); // Add category enable setting and control. $wp_customize->add_setting( 'theme_options[latest_category_enable]', array( 'default' => $default['latest_category_enable'], 'sanitize_callback' => 'akisa_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[latest_category_enable]', array( 'label' => esc_html__( 'Enable Category', 'akisa' ), 'section' => 'section_home_latest_posts', 'type' => 'checkbox', ) ); // Add category enable setting and control. $wp_customize->add_setting( 'theme_options[latest_author_enable]', array( 'default' => $default['latest_author_enable'], 'sanitize_callback' => 'akisa_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[latest_author_enable]', array( 'label' => esc_html__( 'Enable Author', 'akisa' ), 'section' => 'section_home_latest_posts', 'type' => 'checkbox', ) ); // Add category enable setting and control. $wp_customize->add_setting( 'theme_options[latest_comment_enable]', array( 'default' => $default['latest_comment_enable'], 'sanitize_callback' => 'akisa_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[latest_comment_enable]', array( 'label' => esc_html__( 'Enable Comment', 'akisa' ), 'section' => 'section_home_latest_posts', 'type' => 'checkbox', ) ); // Add category enable setting and control. $wp_customize->add_setting( 'theme_options[latest_read_more_text_enable]', array( 'default' => $default['latest_read_more_text_enable'], 'sanitize_callback' => 'akisa_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[latest_read_more_text_enable]', array( 'label' => esc_html__( 'Enable Read More Text', 'akisa' ), 'description' => __('Enable read more text inside content and disable read more button.', 'akisa'), 'section' => 'section_home_latest_posts', 'type' => 'checkbox', ) ); // Add posted on enable setting and control. $wp_customize->add_setting( 'theme_options[latest_posted_on_enable]', array( 'default' => $default['latest_posted_on_enable'], 'sanitize_callback' => 'akisa_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[latest_posted_on_enable]', array( 'label' => esc_html__( 'Enable Author & Date', 'akisa' ), 'section' => 'section_home_latest_posts', 'type' => 'checkbox', ) ); // Add category enable setting and control. $wp_customize->add_setting( 'theme_options[latest_video_enable]', array( 'default' => $default['latest_video_enable'], 'sanitize_callback' => 'akisa_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[latest_video_enable]', array( 'label' => esc_html__( 'Enable Featured Video', 'akisa' ), 'section' => 'section_home_latest_posts', 'type' => 'checkbox', ) ); $wp_customize->add_setting('theme_options[latest_readmore_text]', array( 'default' => $default['latest_readmore_text'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[latest_readmore_text]', array( 'label' => __('Button Label', 'akisa'), 'section' => 'section_home_latest_posts', 'settings' => 'theme_options[latest_readmore_text]', 'type' => 'text' ) );