add_section( 'read_more_post_section', array( 'title' => __( 'Read More Post', 'avenews' ), 'panel' => 'theme_home_option_panel', ) ); /* Home Page Layout */ $wp_customize->add_setting( 'avenews_options[enable_read_more_post_section]', array( 'default' => $default_options['enable_read_more_post_section'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_read_more_post_section]', array( 'label' => __( 'Enable Read More Post Section', 'avenews' ), 'section' => 'read_more_post_section', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[read_more_post_title]', array( 'default' => $default_options['read_more_post_title'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'avenews_options[read_more_post_title]', array( 'label' => __( 'Read More Posts Title', 'avenews' ), 'section' => 'read_more_post_section', 'type' => 'text', ) ); $wp_customize->add_setting( 'avenews_options[flip_read_more_post_section]', array( 'default' => $default_options['flip_read_more_post_section'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[flip_read_more_post_section]', array( 'label' => __( 'Flip Panel', 'avenews' ), 'section' => 'read_more_post_section', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[select_cat_for_read_more_post]', array( 'default' => $default_options['select_cat_for_read_more_post'], 'sanitize_callback' => 'avenews_sanitize_select', ) ); $wp_customize->add_control( 'avenews_options[select_cat_for_read_more_post]', array( 'label' => __( 'Choose Read More Grid Post Category', 'avenews' ), 'section' => 'read_more_post_section', 'type' => 'select', 'choices' => avenews_post_category_list(), ) ); $wp_customize->add_setting( 'avenews_options[select_cat_for_read_more_list_post]', array( 'default' => $default_options['select_cat_for_read_more_list_post'], 'sanitize_callback' => 'avenews_sanitize_select', ) ); $wp_customize->add_control( 'avenews_options[select_cat_for_read_more_list_post]', array( 'label' => __( 'Choose Read More List Post Category', 'avenews' ), 'section' => 'read_more_post_section', 'type' => 'select', 'choices' => avenews_post_category_list(), ) ); $wp_customize->add_setting( 'avenews_options[read_more_style]', array( 'default' => $default_options['read_more_style'], 'sanitize_callback' => 'avenews_sanitize_select', ) ); $wp_customize->add_control( 'avenews_options[read_more_style]', array( 'label' => __( 'Select Style', 'avenews' ), 'section' => 'read_more_post_section', 'type' => 'select', 'choices' => array( 'style-1' => __( 'Style 1', 'avenews' ), 'style-2' => __( 'Style 2', 'avenews' ), ), ) ); $wp_customize->add_setting( 'avenews_options[enable_read_more_category_meta]', array( 'default' => $default_options['enable_read_more_category_meta'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_read_more_category_meta]', array( 'label' => __( 'Show Categories', 'avenews' ), 'section' => 'read_more_post_section', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_read_more_category_meta_color]', array( 'default' => $default_options['enable_read_more_category_meta_color'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_read_more_category_meta_color]', array( 'label' => __( 'Categories have background color', 'avenews' ), 'section' => 'read_more_post_section', 'type' => 'checkbox', 'active_callback' => 'avenews_is_enable_read_more_category_meta' ) ); $wp_customize->add_setting( 'avenews_options[enable_date_meta]', array( 'default' => $default_options['enable_date_meta'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_date_meta]', array( 'label' => __( 'Enable Date Meta', 'avenews' ), 'section' => 'read_more_post_section', 'type' => 'checkbox', ) );