add_section( 'top_tag_settings', array( 'title' => __('Top Tagged Settings', 'avenews'), 'panel' => 'avenews_option_panel', ) ); /*Show Preloader*/ $wp_customize->add_setting( 'avenews_options[show_top_tagged_section]', array( 'default' => $default_options['show_top_tagged_section'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[show_top_tagged_section]', array( 'label' => __('Show Top Tagged', 'avenews'), 'section' => 'top_tag_settings', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[top_tagged_title]', array( 'default' => $default_options['top_tagged_title'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'avenews_options[top_tagged_title]', array( 'label' => __('Top Tagged Title', 'avenews'), 'section' => 'top_tag_settings', 'type' => 'text', ) ); $wp_customize->add_setting('avenews_options[top_tagged_number]', array( 'default' => $default_options['top_tagged_number'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'avenews_sanitize_number_range', ) ); $wp_customize->add_control('avenews_options[top_tagged_number]', array( 'label' => esc_html__('Number of Tag to show', 'avenews'), 'description' => esc_html__('Max number of tag to shwo 5-10. (step-1)', 'avenews'), 'section' => 'top_tag_settings', 'type' => 'range', 'input_attrs' => array( 'min' => 5, 'max' => 10, 'step' => 1, ), ) );