'description'=>'Temporary hue slider will be replaced with a visual hue picker that is only shown when a custom scheme is selected',// temporary, intentionally untranslated.
// @todo change this to a visual hue picker control, ideally extending the color control and leveraging iris by adding a `hue` mode in core.
// See https://core.trac.wordpress.org/ticket/38263
// @todo only show this control when the colorscheme is custom.
));
/**
*AddtheThemeOptionssection.
*/
$wp_customize->add_panel('options_panel',array(
'title'=>__('Theme Options','twentyseventeen'),
'description'=>__('Configure your theme settings','twentyseventeen'),
'description'=>__('When no sidebar widgets are assigned, you can opt to display all pages with a one column or two column layout. When the two column layout is assigned, the page title is in one column and content is in the other.','twentyseventeen'),
'choices'=>array(
'one-column'=>__('One Column','twentyseventeen'),
'two-column'=>__('Two Column','twentyseventeen'),
),
));
// Panel 1.
$wp_customize->add_section('panel_1',array(
'title'=>__('Panel 1','twentyseventeen'),
'active_callback'=>'is_front_page',
'panel'=>'options_panel',
'description'=>__('Add an image to your panel by setting a featured image in the page editor. If you don’t select a page, this panel will not be displayed.','twentyseventeen'),
));
$wp_customize->add_setting('panel_1',array(
'default'=>false,
'sanitize_callback'=>'absint',
));
$wp_customize->add_control('panel_1',array(
'label'=>__('Panel Content','twentyseventeen'),
'section'=>'panel_1',
'type'=>'dropdown-pages',
));
// Panel 2.
$wp_customize->add_section('panel_2',array(
'title'=>__('Panel 2','twentyseventeen'),
'active_callback'=>'is_front_page',
'panel'=>'options_panel',
'description'=>__('Add an image to your panel by setting a featured image in the page editor. If you don’t select a page, this panel will not be displayed.','twentyseventeen'),
));
$wp_customize->add_setting('panel_2',array(
'default'=>false,
'sanitize_callback'=>'absint',
));
$wp_customize->add_control('panel_2',array(
'label'=>__('Panel Content','twentyseventeen'),
'section'=>'panel_2',
'type'=>'dropdown-pages',
));
// Panel 3.
$wp_customize->add_section('panel_3',array(
'title'=>__('Panel 3','twentyseventeen'),
'active_callback'=>'is_front_page',
'panel'=>'options_panel',
'description'=>__('Add an image to your panel by setting a featured image in the page editor. If you don’t select a page, this panel will not be displayed.','twentyseventeen'),
));
$wp_customize->add_setting('panel_3',array(
'default'=>false,
'sanitize_callback'=>'absint',
));
$wp_customize->add_control('panel_3',array(
'label'=>__('Panel Content','twentyseventeen'),
'section'=>'panel_3',
'type'=>'dropdown-pages',
));
// Panel 4.
$wp_customize->add_section('panel_4',array(
'title'=>__('Panel 4','twentyseventeen'),
'active_callback'=>'is_front_page',
'panel'=>'options_panel',
'description'=>__('Add an image to your panel by setting a featured image in the page editor. If you don’t select a page, this panel will not be displayed.','twentyseventeen'),