add_section( 'home_page_layout_options', array( 'title' => __('Front Page Sidebar Options', 'avenews'), 'panel' => 'avenews_option_panel', ) ); /* Home Page Layout */ $wp_customize->add_setting( 'avenews_options[front_page_layout]', array( 'default' => $default_options['front_page_layout'], 'sanitize_callback' => 'avenews_sanitize_select', ) ); $wp_customize->add_control( new Avenews_Radio_Image_Control( $wp_customize, 'avenews_options[front_page_layout]', array( 'label' => __('Front Page Sidebar Layout', 'avenews'), 'section' => 'home_page_layout_options', 'choices' => avenews_get_general_layouts(), ) ) ); // Hide Side Bar on Mobile $wp_customize->add_setting( 'avenews_options[hide_front_page_sidebar_mobile]', array( 'default' => $default_options['hide_front_page_sidebar_mobile'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[hide_front_page_sidebar_mobile]', array( 'label' => __('Hide Front Page Sidebar on Mobile', 'avenews'), 'section' => 'home_page_layout_options', 'type' => 'checkbox', ) ); // Different Sidebar for front page $wp_customize->add_setting( 'avenews_options[front_page_enable_sidebar]', array( 'default' => $default_options['front_page_enable_sidebar'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[front_page_enable_sidebar]', array( 'label' => __('Different sidebar for the front page.', 'avenews'), 'section' => 'home_page_layout_options', 'description' => __('Widgets on this sidebar widget will reset if disabled.', 'avenews'), 'type' => 'checkbox', ) );