HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/www/home/wp-content/themes/nanosoft/inc/customize/functions-customize-header.php
<?php
defined( 'ABSPATH' ) or die();

add_filter( 'nanosoft_customize_containers', 'nanosoft_customize_header_containers' );
add_filter( 'nanosoft_customize_controls', 'nanosoft_customize_header_controls' );
add_filter( 'nanosoft_customize_settings', 'nanosoft_customize_header_settings' );

function nanosoft_customize_header_containers( $containers ) {
	$containers['headerAndFooter'] = array(
		'type'        => 'panel',
		'title'       => _x( 'Header & Footer Builder', 'customize', 'nanosoft' ),
		'description' => _x( 'Controls the settings for customizing the header and footer styles', 'customize', 'nanosoft' )
	);

	$containers['headerGeneral'] = array(
		'type'        => 'section',
		'panel'       => 'headerAndFooter',
		'title'       => _x( 'General', 'customize', 'nanosoft' ),
		'parent'      => _x( 'Header Settings', 'customize', 'nanosoft' ),
		'description' => _x( 'Controls the general settings for the header.', 'customize', 'nanosoft' ),
		'heading'     => array(
			'title'       => esc_html__( 'Header Settings', 'nanosoft' ),
		)
	);
	$containers['headerTopbar'] = array(
		'type'        => 'section',
		'panel'       => 'headerAndFooter',
		'title'       => _x( 'Topbar Settings', 'customize', 'nanosoft' ),
		'parent'      => _x( 'Header Settings', 'customize', 'nanosoft' ),
		'description' => _x( 'Configure the settings for the header topbar area.', 'customize', 'nanosoft' )
	);
	$containers['headerNavigator'] = array(
		'type'        => 'section',
		'panel'       => 'headerAndFooter',
		'title'       => _x( 'Navigation Bar', 'customize', 'nanosoft' ),
		'parent'      => _x( 'Header Settings', 'customize', 'nanosoft' ),
		'description' => _x( 'Configure the settings for the header navigation bar area.', 'customize', 'nanosoft' )
	);

	$containers['headerTitle'] = array(
		'type'        => 'section',
		'panel'       => 'headerAndFooter',
		'title'       => _x( 'Title Bar', 'customize', 'nanosoft' ),
		'parent'      => _x( 'Header Settings', 'customize', 'nanosoft' )
	);

	$containers['headerSticky'] = array(
		'type'        => 'section',
		'panel'       => 'headerAndFooter',
		'title'       => _x( 'General Settings', 'customize', 'nanosoft' ),
		'description' => _x( 'Configure the settings for the sticky header.', 'customize', 'nanosoft' ),
		'heading'     => array(
			'title'       => esc_html__( 'Header Sticky Setting', 'nanosoft' ),
		)
	);
	$containers['headerStickyNav'] = array(
		'type'        => 'section',
		'panel'       => 'headerAndFooter',
		'title'       => _x( 'Navigation Bar', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);

	return $containers;
}

function nanosoft_customize_header_controls( $controls ) {
	$controls['header__position'] = array(
		'type'        => 'radio-buttons',
		'section'     => 'headerGeneral',
		'label'       => _x( 'Header Position', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' ),
		'choices'     => array(
			'top'   => _x( 'Top', 'customize', 'nanosoft' ),
			'right' => _x( 'Right', 'customize', 'nanosoft' ),
			'bottom' => _x( 'Bottom', 'customize', 'nanosoft' ),
			'left' => _x( 'Left', 'customize', 'nanosoft' )
		)
	);

	/**
	 * The logo profile
	 */
	$controls['header__logo'] = array(
		'type'        => 'dropdown',
		'section'     => 'headerGeneral',
		'label'       => _x( 'logo that will be shown', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' ),
		'choices'     => array(
			'logoDefault' => _x( 'Logo Default', 'customize', 'nanosoft' ),
			'logoDark'    => _x( 'Logo Dark', 'customize', 'nanosoft' ),
			'logoLight'   => _x( 'Logo Light', 'customize', 'nanosoft' )
		)
	);
	$controls['header__logoAlign'] = array(
		'type'        => 'radio-buttons',
		'section'     => 'headerGeneral',
		'label'       => _x( 'Logo Alignment', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' ),
		'choices'     => array(
			'left'   => _x( 'Left', 'customize', 'nanosoft' ),
			'center' => _x( 'Center', 'customize', 'nanosoft' ),
			'right'  => _x( 'Right', 'customize', 'nanosoft' )
		)
	);
	$controls[ 'header__logoMargin'] = array(
		'type'        => 'dimension',
		'section'     => 'headerGeneral',
		'label'       => esc_html__( 'Logo Margin (px)', 'nanosoft' ),
		'choices'     => array(
			'margin-top'    => esc_html__( 'Top', 'nanosoft' ),
			'margin-right'  => esc_html__( 'Right', 'nanosoft' ),
			'margin-bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'margin-left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);

	/**
	 * Header Settings
	 */
	$controls['header__height'] = array(
		'type'        => 'textfield',
		'section'     => 'headerGeneral',
		'label'       => _x( 'Header Height', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__width'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerGeneral',
		'label'       => _x( '100% Header Full Width', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__shadow'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerGeneral',
		'label'       => esc_html__( 'Enable Shadow', 'nanosoft' ),
	);
	$controls['header__transparent'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerGeneral',
		'label'       => esc_html__( 'Enable Header Transparent', 'nanosoft' ),
	);

	$controls['header__border'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerGeneral',
		'label'       => esc_html__( 'Header Border', 'nanosoft' ),
	);
	$controls[ 'header__border__options'] = array(
		'type'        => 'border',
		'section'     => 'headerGeneral',
		'choices'     => array(
			'top'    => esc_html__( 'Top', 'nanosoft' ),
			'right'  => esc_html__( 'Right', 'nanosoft' ),
			'bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);

	$controls['header__backgroundHeading'] = array(
		'type'        => 'heading',
		'section'     => 'headerGeneral',
		'label'       => _x( 'Header Background', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__background'] = array(
		'type'        => 'background',
		'section'     => 'headerGeneral'
	);

	$controls['header__info__text'] = array(
		'type'        => 'textareafield',
		'section'     => 'headerGeneral',
		'label'       => _x( 'Contact Info', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);


	/**
	 * Topbar Settings
	 */
	$controls['header__topbar'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerTopbar',
		'label'       => _x( 'Enable Topbar', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__topbar__height'] = array(
		'type'        => 'text',
		'section'     => 'headerTopbar',
		'label'       => _x( 'Topbar Height', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);

	// Topbar content
	$controls['header__topbar__text'] = array(
		'type'        => 'textareafield',
		'section'     => 'headerTopbar',
		'label'       => _x( 'Topbar Content', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);

	$controls['header__topbar__typoHeading'] = array(
		'type'        => 'heading',
		'section'     => 'headerTopbar',
		'label'       => esc_html__( 'Topbar Font', 'nanosoft' ),
	);
	$controls['header__topbar__typography'] = array(
		'type'        => 'typography',
		'section'     => 'headerTopbar'
	);
	$controls['header__topbar__colors'] = array(
		'type'        => 'colors',
		'section'     => 'headerTopbar',
		'label'       => esc_html__( 'Topbar Link Colors', 'nanosoft' ),
		'choices'     => array(
			'menu'        => esc_html__( 'Link Color', 'nanosoft' ),
			'menu-hover'  => esc_html__( 'Hover Color', 'nanosoft' ),
			'menu-active' => esc_html__( 'Active Color', 'nanosoft' )
		)
	);

	$controls['header__topbar__backgroundHeading'] = array(
		'type'        => 'heading',
		'section'     => 'headerTopbar',
		'label'       => _x( 'Topbar Background', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__topbar__background'] = array(
		'type'        => 'background',
		'section'     => 'headerTopbar'
	);


	/**
	 * Navigation Bar Settings
	 */
	$controls['header__nav__typography'] = array(
		'type'        => 'typography',
		'section'     => 'headerNavigator',
		'label'       => esc_html__( 'Menu Font', 'nanosoft' ),
	);
	$controls['header__nav__colors'] = array(
		'type'        => 'colors',
		'section'     => 'headerNavigator',
		'label'       => esc_html__( 'Menu Colors', 'nanosoft' ),
		'choices'     => array(
			'menu'        => esc_html__( 'Menu Color', 'nanosoft' ),
			'menu-hover'  => esc_html__( 'Hover Color', 'nanosoft' ),
			'menu-active' => esc_html__( 'Active Color', 'nanosoft' )
		)
	);
	$controls[ 'header__nav__margin'] = array(
		'type'        => 'dimension',
		'section'     => 'headerNavigator',
		'label'       => esc_html__( 'Menu Margin', 'nanosoft' ),
		'choices'     => array(
			'margin-top'    => esc_html__( 'Top', 'nanosoft' ),
			'margin-right'  => esc_html__( 'Right', 'nanosoft' ),
			'margin-bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'margin-left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);
	$controls['header__nav__padding'] = array(
		'type'        => 'dimension',
		'section'     => 'headerNavigator',
		'label'       => esc_html__( 'Menu Padding', 'nanosoft' ),
		'choices'     => array(
			'padding-top'    => esc_html__( 'Top', 'nanosoft' ),
			'padding-right'  => esc_html__( 'Right', 'nanosoft' ),
			'padding-bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'padding-left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);
	$controls['header__nav__extras'] = array(
		'type'        => 'checkboxes',
		'section'     => 'headerNavigator',
		'label'       => esc_html__( 'Show Extra Items On The Header', 'nanosoft' ),
		'choices'     => array(
			'cart'      => _x( 'Shopping Cart', 'customize', 'nanosoft' ),
			'search'    => _x( 'Search Box', 'customize', 'nanosoft' )
		)
	);

	$controls['header__nav__backgroundHeading'] = array(
		'type'        => 'heading',
		'section'     => 'headerNavigator',
		'label'       => _x( 'Navigator Background', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__nav__background'] = array(
		'type'        => 'background',
		'section'     => 'headerNavigator'
	);

	$controls['header__nav__text'] = array(
		'type'        => 'textareafield',
		'section'     => 'headerNavigator',
		'label'       => _x( 'Navigator Info', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);

	/**
	 * Sticky Header Settings
	 */
	$controls['header__sticky'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerSticky',
		'label'       => _x( 'Enable Sticky Header', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' ),
		'default'     => 'on'
	);
	$controls['header__sticky__logo'] = array(
		'type'        => 'dropdown',
		'section'     => 'headerSticky',
		'label'       => _x( 'logo that will be shown', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' ),
		'choices'     => array(
			'logoDefault' => _x( 'Logo Default', 'customize', 'nanosoft' ),
			'logoDark'    => _x( 'Logo Dark', 'customize', 'nanosoft' ),
			'logoLight'   => _x( 'Logo Light', 'customize', 'nanosoft' )
		)
	);
	$controls['header__sticky__logoAlign'] = array(
		'type'        => 'radio-buttons',
		'section'     => 'headerSticky',
		'label'       => _x( 'Logo Alignment', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' ),
		'choices'     => array(
			'left'   => _x( 'Left', 'customize', 'nanosoft' ),
			'center' => _x( 'Center', 'customize', 'nanosoft' ),
			'right'  => _x( 'Right', 'customize', 'nanosoft' )
		)
	);
	$controls[ 'header__sticky__logoMargin'] = array(
		'type'        => 'dimension',
		'section'     => 'headerSticky',
		'label'       => esc_html__( 'Logo Margin', 'nanosoft' ),
		'choices'     => array(
			'margin-top'    => esc_html__( 'Top', 'nanosoft' ),
			'margin-right'  => esc_html__( 'Right', 'nanosoft' ),
			'margin-bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'margin-left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);

	/**
	 * Header Settings
	 */
	$controls['header__sticky__height'] = array(
		'type'        => 'textfield',
		'section'     => 'headerSticky',
		'label'       => _x( 'Header Sticky Height', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__sticky__width'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerSticky',
		'label'       => _x( '100% Full Width', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	
	$controls['header__sticky__shadow'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerSticky',
		'label'       => esc_html__( 'Enable Shadow', 'nanosoft' ),
	);

	$controls['header__sticky__border'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerSticky',
		'label'       => esc_html__( 'Header Sticky Border', 'nanosoft' ),
	);
	$controls[ 'header__sticky__border__options'] = array(
		'type'        => 'border',
		'section'     => 'headerSticky',
		'choices'     => array(
			'top'    => esc_html__( 'Top', 'nanosoft' ),
			'right'  => esc_html__( 'Right', 'nanosoft' ),
			'bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);

	$controls['header__sticky__backgroundHeading'] = array(
		'type'        => 'heading',
		'section'     => 'headerSticky',
		'label'       => _x( 'Header Sticky Background', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__sticky__background'] = array(
		'type'        => 'background',
		'section'     => 'headerSticky'
	);

	$controls['header__sticky__nav__typography'] = array(
		'type'        => 'typography',
		'section'     => 'headerStickyNav',
		'label'       => esc_html__( 'Menu Sticky Font', 'nanosoft' ),
	);
	$controls['header__sticky__nav__colors'] = array(
		'type'        => 'colors',
		'section'     => 'headerStickyNav',
		'label'       => esc_html__( 'Menu Sticky Colors', 'nanosoft' ),
		'choices'     => array(
			'menu'        => esc_html__( 'Menu Color', 'nanosoft' ),
			'menu-hover'  => esc_html__( 'Hover Color', 'nanosoft' ),
			'menu-active' => esc_html__( 'Active Color', 'nanosoft' )
		)
	);
	$controls[ 'header__sticky__nav__margin'] = array(
		'type'        => 'dimension',
		'section'     => 'headerStickyNav',
		'label'       => esc_html__( 'Menu Sticky Margin', 'nanosoft' ),
		'choices'     => array(
			'margin-top'    => esc_html__( 'Top', 'nanosoft' ),
			'margin-right'  => esc_html__( 'Right', 'nanosoft' ),
			'margin-bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'margin-left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);
	$controls['header__sticky__nav__padding'] = array(
		'type'        => 'dimension',
		'section'     => 'headerStickyNav',
		'label'       => esc_html__( 'Menu Sticky Padding', 'nanosoft' ),
		'choices'     => array(
			'padding-top'    => esc_html__( 'Top', 'nanosoft' ),
			'padding-right'  => esc_html__( 'Right', 'nanosoft' ),
			'padding-bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'padding-left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);


	/**
	 * Title bar
	 */
	$controls['header__titlebar'] = array(
		'type'        => 'dropdown',
		'section'     => 'headerTitle',
		'label'       => _x( 'Title Bar Displays', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' ),
		'choices'     => array(
			'both'        => _x( 'Page Title and Breadcrumbs', 'customize', 'nanosoft' ),
			'title'       => _x( 'Page Title Only', 'customize', 'nanosoft' ),
			'breadcrumbs' => _x( 'Breadcrumbs Only', 'customize', 'nanosoft' ),
			'none'        => _x( 'None', 'customize', 'nanosoft' )
		)
	);
	$controls['header__titlebar__align'] = array(
		'type'        => 'radio-buttons',
		'section'     => 'headerTitle',
		'label'       => _x( 'Title Bar Alignment', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' ),
		'choices'     => array(
			'left'   => _x( 'Left', 'customize', 'nanosoft' ),
			'center' => _x( 'Center', 'customize', 'nanosoft' ),
			'right'  => _x( 'Right', 'customize', 'nanosoft' ),
			'inline' => _x( 'Inline', 'customize', 'nanosoft' )
		)
	);
	$controls['header__titlebar__height'] = array(
		'type'        => 'textfield',
		'section'     => 'headerTitle',
		'label'       => _x( 'Title Bar Height', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__titlebar__full'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerTitle',
		'label'       => _x( 'Title Bar Full Width', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__titlebar__home'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerTitle',
		'label'       => _x( 'Display On The Homepage', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	
	$controls['header__titlebar__shadow'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerTitle',
		'label'       => esc_html__( 'Enable Shadow', 'nanosoft' ),
	);

	$controls['header__titlebar__scrolldown'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerTitle',
		'label'       => esc_html__( 'Enable Scroll Down Button', 'nanosoft' ),
	);

	$controls['header__titlebar__canvaseffect'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerTitle',
		'label'       => esc_html__( 'Enable Canvas Effect', 'nanosoft' ),
	);

	$controls['header__titlebar__border'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'headerTitle',
		'label'       => esc_html__( 'Title Bar Border', 'nanosoft' ),
	);
	$controls[ 'header__titlebar__border__options'] = array(
		'type'        => 'border',
		'section'     => 'headerTitle',
		'choices'     => array(
			'top'    => esc_html__( 'Top', 'nanosoft' ),
			'right'  => esc_html__( 'Right', 'nanosoft' ),
			'bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);
	$controls['header__titlebar__background'] = array(
		'type'        => 'background',
		'section'     => 'headerTitle',
		'label'   => _x( 'Title Bar Background', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls[ 'header__titlebar__margin'] = array(
		'type'        => 'dimension',
		'section'     => 'headerTitle',
		'label'       => esc_html__( 'Title Bar Margin', 'nanosoft' ),
		'choices'     => array(
			'margin-top'    => esc_html__( 'Top', 'nanosoft' ),
			'margin-right'  => esc_html__( 'Right', 'nanosoft' ),
			'margin-bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'margin-left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);
	$controls['header__titlebar__padding'] = array(
		'type'        => 'dimension',
		'section'     => 'headerTitle',
		'label'       => esc_html__( 'Title Bar Padding', 'nanosoft' ),
		'choices'     => array(
			'padding-top'    => esc_html__( 'Top', 'nanosoft' ),
			'padding-right'  => esc_html__( 'Right', 'nanosoft' ),
			'padding-bottom' => esc_html__( 'Bottom', 'nanosoft' ),
			'padding-left'   => esc_html__( 'Left', 'nanosoft' )
		)
	);
	$controls['header__titlebar__backgroundFeatured'] = array(
		'type'        => 'checkboxes',
		'section'     => 'headerTitle',
		'label'       => _x( 'Use Featured Image As Background in', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' ),
		'choices'     => 'nanosoft_customize_post_types_options'
	);

	$controls['header__titlebar__titleHeading'] = array(
		'type'        => 'heading',
		'section'     => 'headerTitle',
		'label'       => _x( 'Page Title Font', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__titlebar__titleFont'] = array(
		'type'        => 'typography',
		'section'     => 'headerTitle'
	);

	$controls['header__titlebar__breadcrumbHeading'] = array(
		'type'        => 'heading',
		'section'     => 'headerTitle',
		'label'       => _x( 'Breadcrumbs Font', 'customize', 'nanosoft' ),
		'description' => _x( '', 'customize', 'nanosoft' )
	);
	$controls['header__titlebar__breadcrumbFont'] = array(
		'type'        => 'typography',
		'section'     => 'headerTitle'
	);
	$controls['header__titlebar__breadcrumbColors'] = array(
		'type'        => 'colors',
		'section'     => 'headerTitle',
		'label'       => _x( 'Breadcrumbs Link Color', 'customize', 'nanosoft' ),
		'choices'     => array(
			'link' => _x( 'Link Color', 'customize', 'nanosoft' ),
			'linkHover' => _x( 'Hover Color', 'customize', 'nanosoft' )
		)
	);


	/**
	 * Sticky Header Settings
	 */
	$controls['header__widgets'] = array(
		'type'        => 'radio-onoff',
		'section'     => 'header__widgets',
		'label'       => _x( 'Enable Sticky Header', 'customize', 'nanosoft' ),
		'description' => _x( 'Turn ON to enable the header widgets area', 'customize', 'nanosoft' ),
		'default'     => 'on'
	);

	return $controls;
}



function nanosoft_customize_header_settings( $settings ) {
	$border_default = array( 'size' => '0px', 'style' => 'none', 'color' => '#000000' );
	$settings = array_merge( $settings, array(
		'header__position'  => array( 'default' => 'top' ),
		'header__logo'       => array( 'default' => 'logoDefault' ),
		'header__logoAlign'  => array( 'default' => 'left' ),
		'header__logoMargin' => array( 'default' => array(
			'margin-top'    => '0px', 'margin-right'  => '0px',
			'margin-bottom' => '0px', 'margin-left'   => '0px'
		) ),

		'header__width'      => array( 'default' => 'on' ),
		'header__height'     => array( 'default' => '80px' ),
		'header__background' => array( 'default' => array() ),
		'header__shadow'     => array( 'default' => 'off' ),
		'header__border'     => array( 'default' => 'off' ),
		'header__border__options'     => array( 'default' => array(
			'all'  => $border_default, 'top'   => $border_default, 'bottom' => $border_default,
			'left' => $border_default, 'right' => $border_default
		) ),
		'header__transparent' => array( 'default' => 'off' ),

		'header__topbar'             => array( 'default' => 'on' ),
		'header__topbar__width'      => array( 'default' => 'on' ),
		'header__topbar__height'     => array( 'default' => '40px' ),
		'header__topbar__text'       => array( 'default' => '' ),
		'header__topbar__icons'      => array( 'default' => '' ),
		'header__topbar__background' => array( 'default' => array() ),
		'header__topbar__typography' => array( 'default' => array() ),
		'header__topbar__colors'     => array( 'default' => array() ),

		'header__nav__typography' => array( 'default' => array() ),
		'header__nav__colors'     => array( 'default' => array() ),
		'header__nav__margin'     => array( 'default' => array(
			'margin-top'    => '0px', 'margin-right' => '0px',
			'margin-bottom' => '0px', 'margin-left'  => '0px'
		) ),
		'header__nav__padding' => array( 'default' => array(
			'padding-top'    => '0px', 'padding-right' => '0px',
			'padding-bottom' => '0px', 'padding-left'  => '0px'
		) ),
		'header__nav__background' => array( 'default' => array() ),
		'header__nav__extras'     => array( 'default' => array() ),


		'header__sticky__logo'       => array( 'default' => 'logoDefault' ),
		'header__sticky__logoAlign'  => array( 'default' => 'left' ),
		'header__sticky__logoMargin' => array( 'default' => array(
			'margin-top'    => '0px', 'margin-right'  => '0px',
			'margin-bottom' => '0px', 'margin-left'   => '0px'
		) ),

		'header__sticky__width'      => array( 'default' => 'on' ),
		'header__sticky__height'     => array( 'default' => '80px' ),
		'header__sticky__background' => array( 'default' => array() ),
		'header__sticky__shadow'     => array( 'default' => 'off' ),
		'header__sticky__border'     => array( 'default' => 'off' ),
		'header__sticky__border__options'     => array( 'default' => array(
			'all'  => $border_default, 'top'   => $border_default, 'bottom' => $border_default,
			'left' => $border_default, 'right' => $border_default
		) ),
		'header__sticky__transparent' => array( 'default' => 'off' ),
		'header__sticky__nav__typography' => array( 'default' => array() ),
		'header__sticky__nav__colors'     => array( 'default' => array() ),
		'header__sticky__nav__margin'     => array( 'default' => array(
			'margin-top'    => '0px', 'margin-right' => '0px',
			'margin-bottom' => '0px', 'margin-left'  => '0px'
		) ),
		'header__sticky__nav__padding'    => array( 'default' => array(
			'padding-top'    => '0px', 'padding-right' => '0px',
			'padding-bottom' => '0px', 'padding-left'  => '0px'
		) ),

		'header__titlebar'         => array( 'default' => 'both' ),
		'header__titlebar__home'   => array( 'default' => 'on' ),
		'header__titlebar__align'  => array( 'default' => 'left' ),
		'header__titlebar__full'   => array( 'default' => 'off' ),
		'header__titlebar__height' => array( 'default' => '80px' ),
		'header__titlebar__margin' => array( 'default' => array(
			'margin-top'    => '0px', 'margin-right' => '0px',
			'margin-bottom' => '0px', 'margin-left'  => '0px'
		) ),
		'header__titlebar__padding' => array( 'default' => array(
			'padding-top'    => '0px', 'padding-right' => '0px',
			'padding-bottom' => '0px', 'padding-left'  => '0px'
		) ),
		'header__titlebar__shadow' => array( 'default' => 'off' ),
		'header__titlebar__scrolldown' => array( 'default' => 'on' ),
		'header__titlebar__border' => array( 'default' => 'off' ),
		'header__titlebar__border__options' => array( 'default' => array(
			'all'  => $border_default, 'top'   => $border_default, 'bottom' => $border_default,
			'left' => $border_default, 'right' => $border_default
		) ),
		'header__titlebar__background'         => array( 'default' => array() ),
		'header__titlebar__backgroundFeatured' => array( 'default' => array() ),
		'header__titlebar__titleFont'          => array( 'default' => array() ),
		'header__titlebar__breadcrumbFont'     => array( 'default' => array() ),
		'header__titlebar__breadcrumbColors'   => array( 'default' => array() ),
	) );

	return $settings;
}