add_section( 'home_page_jumbotron_option', array( 'title' => __('Jumbotron Options', 'avenews'), 'panel' => 'theme_home_option_panel', ) ); /* Home Page Layout */ $wp_customize->add_setting( 'avenews_options[enable_jumbotron_section]', array( 'default' => $default_options['enable_jumbotron_section'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_jumbotron_section]', array( 'label' => __('Enable Jumbotron Section', 'avenews'), 'section' => 'home_page_jumbotron_option', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[jumbotron_section_cat]', array( 'default' => $default_options['jumbotron_section_cat'], 'sanitize_callback' => 'avenews_sanitize_select', ) ); $wp_customize->add_control( 'avenews_options[jumbotron_section_cat]', array( 'label' => __('Choose Jumbotron Category', 'avenews'), 'section' => 'home_page_jumbotron_option', 'type' => 'select', 'choices' => avenews_post_category_list(), ) ); $wp_customize->add_setting( 'avenews_options[enable_jumbotron_cat_meta]', array( 'default' => $default_options['enable_jumbotron_cat_meta'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_jumbotron_cat_meta]', array( 'label' => __('Enable Category', 'avenews'), 'section' => 'home_page_jumbotron_option', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_jumbotron_cat_meta_bg_color]', array( 'default' => $default_options['enable_jumbotron_cat_meta_bg_color'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_jumbotron_cat_meta_bg_color]', array( 'label' => __('Categories have background color', 'avenews'), 'section' => 'home_page_jumbotron_option', 'type' => 'checkbox', 'active_callback' => 'avenews_is_enable_jumbotron_cat_meta' ) ); $wp_customize->add_setting( 'avenews_options[enable_jumbotron_author_meta]', array( 'default' => $default_options['enable_jumbotron_author_meta'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_jumbotron_author_meta]', array( 'label' => __('Enable Author', 'avenews'), 'section' => 'home_page_jumbotron_option', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_jumbotron_date_meta]', array( 'default' => $default_options['enable_jumbotron_date_meta'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_jumbotron_date_meta]', array( 'label' => __('Enable Date', 'avenews'), 'section' => 'home_page_jumbotron_option', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[jumbotron_bg_color]', array( 'default' => $default_options['jumbotron_bg_color'], 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'avenews_options[jumbotron_bg_color]', array( 'label' => __('Background Color', 'avenews'), 'section' => 'home_page_jumbotron_option', 'type' => 'color', ) ) ); $wp_customize->add_setting( 'avenews_options[jumbotron_text_color]', array( 'default' => $default_options['jumbotron_text_color'], 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'avenews_options[jumbotron_text_color]', array( 'label' => __('Text Color', 'avenews'), 'section' => 'home_page_jumbotron_option', 'type' => 'color', ) ) );