File: /var/www/html/site/newsite/wp-content/themes/ooze/inc/customizer/theme-options/front-page.php
<?php
$wp_customize->add_section(
'home_page_layout_options',
array(
'title' => __( 'Front Page Sidebar Options', 'ooze' ),
'panel' => 'ooze_option_panel',
)
);
/* Home Page Layout */
$wp_customize->add_setting(
'ooze_options[front_page_layout]',
array(
'default' => $default_options['front_page_layout'],
'sanitize_callback' => 'ooze_sanitize_select',
)
);
$wp_customize->add_control(
new Ooze_Radio_Image_Control(
$wp_customize,
'ooze_options[front_page_layout]',
array(
'label' => __( 'Front Page Sidebar Layout', 'ooze' ),
'section' => 'home_page_layout_options',
'choices' => ooze_get_general_layouts(),
)
)
);
// Hide Side Bar on Mobile
$wp_customize->add_setting(
'ooze_options[hide_front_page_sidebar_mobile]',
array(
'default' => $default_options['hide_front_page_sidebar_mobile'],
'sanitize_callback' => 'ooze_sanitize_checkbox',
)
);
$wp_customize->add_control(
'ooze_options[hide_front_page_sidebar_mobile]',
array(
'label' => __( 'Hide Front Page Sidebar on Mobile', 'ooze' ),
'section' => 'home_page_layout_options',
'type' => 'checkbox',
)
);
// Different Sidebar for front page
$wp_customize->add_setting(
'ooze_options[front_page_enable_sidebar]',
array(
'default' => $default_options['front_page_enable_sidebar'],
'sanitize_callback' => 'ooze_sanitize_checkbox',
)
);
$wp_customize->add_control(
'ooze_options[front_page_enable_sidebar]',
array(
'label' => __( 'Different sidebar for the front page.', 'ooze' ),
'section' => 'home_page_layout_options',
'description' => __( 'Widgets on this sidebar widget will reset if disabled.', 'ooze'),
'type' => 'checkbox',
)
);