public_html/wp-content/themes/LocalTwo/inc/customizer/section__header.php
/**
 * ============================================================================
 * Create controls for section: header settings
 * ============================================================================
 */
Create controls for section: header settings
Create controls for section : header settings
function register_controls_for_header_settings_section( $controls ) {
	$section  = 'header_settings_section';
	$priority = 1;
	$controls[] = array(
		'type'      => 'group_title',
		'setting'   => 'group_title_header_presets',
		'label'     => __( 'Header Presets', 'divertheme' ),
		'section'   => $section,
		'separator' => false,
		'priority'  => $priority ++
	);
	$controls[] = array(
		'type'      => 'select',
		'setting'   => 'header_preset',
		'subtitle'  => __( 'Choose a preset setup for your header', 'divertheme' ),
		'section'   => $section,
		'separator' => false,
		'default'   => header_preset,
		'choices'   => array(
			'header-preset-01' => __( 'Preset 01', 'divertheme' ),
			'header-preset-02' => __( 'Preset 02', 'divertheme' ),
			'header-preset-03' => __( 'Preset 03', 'divertheme' ),
			'header-preset-04' => __( 'Preset 04', 'divertheme' ),
			'header-preset-05' => __( 'Preset 05', 'divertheme' ),
			'header-preset-06' => __( 'Preset 06', 'divertheme' ),
			'header-preset-07' => __( 'Preset 07', 'divertheme' ),
			'header-preset-08' => __( 'Preset 08', 'divertheme' ),
		),
		'priority'  => $priority ++
	);
	$controls[] = array(
		'type'      => 'group_title',
		'setting'   => 'group_title_header_general_settings',
		'label'     => __( 'General Settings', 'divertheme' ),
		'section'   => $section,
		'separator' => false,
		'priority'  => $priority ++
	);
	$controls[] = array(
		'type'      => 'checkbox',
		'mode'      => 'toggle',
		'setting'   => 'header_top_enable',
		'label'     => __( 'Top Area', 'divertheme' ),
		'subtitle'  => __( 'Enabling this option will show header top area', 'divertheme' ),
		'section'   => $section,
		'separator' => true,
		'default'   => header_top_enable,
		'priority'  => $priority ++
	);
	$controls[] = array(
		'type'      => 'checkbox',
		'mode'      => 'toggle',
		'setting'   => 'header_sticky_enable',
		'label'     => __( 'Sticky', 'divertheme' ),
		'subtitle'  => __( 'Enabling this option will sticky your header', 'divertheme' ),
		'section'   => $section,
		'separator' => true,
		'default'   => header_sticky_enable,
		'priority'  => $priority ++
	);
	$controls[] = array(
		'type'      => 'checkbox',
		'mode'      => 'toggle',
		'setting'   => 'header_search_enable',
		'label'     => __( 'Search', 'divertheme' ),
		'subtitle'  => __( 'Enabling this option will display search button on header', 'divertheme' ),
		'section'   => $section,
		'separator' => true,
		'default'   => header_search_enable,
		'priority'  => $priority ++
	);
	$controls[] = array(
		'type'     => 'checkbox',
		'mode'     => 'toggle',
		'setting'  => 'header_cart_enable',
		'label'    => __( 'Mini Cart', 'divertheme' ),
		'subtitle' => __( 'Enabling this option will display mini cart button on header', 'divertheme' ),
		'section'  => $section,
		'default'  => header_cart_enable,
		'priority' => $priority ++
	);
	return $controls;
}
function register_controls_for_header_settings_section ( $ controls ) { $ section = 'header_settings_section' ; $ priority = 1 ; $ controls [ ] = array ( 'type' => 'group_title' , 'setting' => 'group_title_header_presets' , 'label' => __ ( 'Header Presets' , 'divertheme' ) , 'section' => $ section , 'separator' => false , 'priority' => $ priority ++ ) ; $ controls [ ] = array ( 'type' => 'select' , 'setting' => 'header_preset' , 'subtitle' => __ ( 'Choose a preset setup for your header' , 'divertheme' ) , 'section' => $ section , 'separator' => false , 'default' => header_preset , 'choices' => array ( 'header-preset-01' => __ ( 'Preset 01' , 'divertheme' ) , 'header-preset-02' => __ ( 'Preset 02' , 'divertheme' ) , 'header-preset-03' => __ ( 'Preset 03' , 'divertheme' ) , 'header-preset-04' => __ ( 'Preset 04' , 'divertheme' ) , 'header-preset-05' => __ ( 'Preset 05' , 'divertheme' ) , 'header-preset-06' => __ ( 'Preset 06' , 'divertheme' ) , 'header-preset-07' => __ ( 'Preset 07' , 'divertheme' ) , 'header-preset-08' => __ ( 'Preset 08' , 'divertheme' ) , ) , 'priority' => $ priority ++ ) ; $ controls [ ] = array ( 'type' => 'group_title' , 'setting' => 'group_title_header_general_settings' , 'label' => __ ( 'General Settings' , 'divertheme' ) , 'section' => $ section , 'separator' => false , 'priority' => $ priority ++ ) ; $ controls [ ] = array ( 'type' => 'checkbox' , 'mode' => 'toggle' , 'setting' => 'header_top_enable' , 'label' => __ ( 'Top Area' , 'divertheme' ) , 'subtitle' => __ ( 'Enabling this option will show header top area' , 'divertheme' ) , 'section' => $ section , 'separator' => true , 'default' => header_top_enable , 'priority' => $ priority ++ ) ; $ controls [ ] = array ( 'type' => 'checkbox' , 'mode' => 'toggle' , 'setting' => 'header_sticky_enable' , 'label' => __ ( 'Sticky' , 'divertheme' ) , 'subtitle' => __ ( 'Enabling this option will sticky your header' , 'divertheme' ) , 'section' => $ section , 'separator' => true , 'default' => header_sticky_enable , 'priority' => $ priority ++ ) ; $ controls [ ] = array ( 'type' => 'checkbox' , 'mode' => 'toggle' , 'setting' => 'header_search_enable' , 'label' => __ ( 'Search' , 'divertheme' ) , 'subtitle' => __ ( 'Enabling this option will display search button on header' , 'divertheme' ) , 'section' => $ section , 'separator' => true , 'default' => header_search_enable , 'priority' => $ priority ++ ) ; $ controls [ ] = array ( 'type' => 'checkbox' , 'mode' => 'toggle' , 'setting' => 'header_cart_enable' , 'label' => __ ( 'Mini Cart' , 'divertheme' ) , 'subtitle' => __ ( 'Enabling this option will display mini cart button on header' , 'divertheme' ) , 'section' => $ section , 'default' => header_cart_enable , 'priority' => $ priority ++ ) ; return $ controls ; }
Create controls for section: header settings
Create controls for section : header settings
//Header Presets Settings Group Title //Header Presets choose //Header Presets Settings Group Title //Header Top Area //Header Sticky //Header Search //Header Search