File: /home/slfopp7cb1df/www/home/wp-content/themes/nanosoft/inc/customize/functions-customize-global.php
<?php
defined( 'ABSPATH' ) or die();
// Add filter to register customize containers
add_filter( 'nanosoft_customize_containers', 'nanosoft_customize_global_containers' );
add_filter( 'nanosoft_customize_settings', 'nanosoft_customize_global_settings' );
// Add filter to register customize controls
add_filter( 'nanosoft_customize_controls', 'nanosoft_customize_global_logo_controls' );
add_filter( 'nanosoft_customize_controls', 'nanosoft_customize_global_layout_controls' );
add_filter( 'nanosoft_customize_controls', 'nanosoft_customize_global_styles_controls' );
add_filter( 'nanosoft_customize_controls', 'nanosoft_customize_global_connections_controls' );
add_filter( 'nanosoft_customize_controls', 'nanosoft_customize_global_sliding_controls' );
add_filter( 'nanosoft_customize_controls', 'nanosoft_customize_global_misc_controls' );
add_filter( 'nanosoft_customize_controls', 'nanosoft_customize_global_content_bottom_controls' );
/**
* Return an array of the containers that will be registered
* into the theme customizer
*
* @return array
* @since 1.0.0
*/
function nanosoft_customize_global_containers( $containers ) {
$containers['global__logo'] = array(
'type' => 'panel',
'title' => esc_html__( 'Logos', 'nanosoft' ),
'heading' => array(
'title' => esc_html__( 'Global Settings', 'nanosoft' ),
'description' => esc_html__( 'Controls the settings that will throughout the theme. These settings can be overridden by the specific sections.', 'nanosoft' )
)
);
$containers['global__logoDefault'] = array(
'type' => 'section',
'panel' => 'global__logo',
'title' => esc_html__( 'Logo Default', 'nanosoft' ),
'description' => esc_html__( 'Configure the logo image that will be used in overall pages', 'nanosoft' )
);
$containers['global__logoDark'] = array(
'type' => 'section',
'panel' => 'global__logo',
'title' => esc_html__( 'Logo Dark', 'nanosoft' ),
'description' => esc_html__( 'Configure the logo image in the dark style that will be used in overall pages', 'nanosoft' )
);
$containers['global__logoLight'] = array(
'type' => 'section',
'panel' => 'global__logo',
'title' => esc_html__( 'Logo Light', 'nanosoft' ),
'description' => esc_html__( 'Configure the logo image in the light style that will be used in overall pages', 'nanosoft' )
);
$containers['global__styles'] = array(
'type' => 'panel',
'title' => esc_html__( 'Layout & Styles', 'nanosoft' )
);
$containers['global__layout'] = array(
'type' => 'section',
'panel' => 'global__styles',
'title' => esc_html__( 'Layout Settings', 'nanosoft' ),
'description' => esc_html__( 'Controls the settings for the overall site layout.', 'nanosoft' )
);
$containers['global__sidebar'] = array(
'type' => 'section',
'panel' => 'global__styles',
'title' => esc_html__( 'Sidebar Settings', 'nanosoft' )
);
$containers['global__typography'] = array(
'type' => 'section',
'panel' => 'global__styles',
'title' => esc_html__( 'Color & Typography', 'nanosoft' )
);
$containers['global__connections'] = array(
'type' => 'section',
'title' => esc_html__( 'Social Networks', 'nanosoft' )
);
$containers['global__slidingSidebar'] = array(
'type' => 'section',
'panel' => 'global__styles',
'title' => _x( 'Sliding Sidebar', 'customize', 'nanosoft' ),
'description' => _x( 'Configure the styles for the left content area.', 'customize', 'nanosoft' ),
'heading' => array(
'title' => esc_html__( 'Sliding Areas', 'nanosoft' ),
'description' => esc_html__( 'Controls the settings for the sliding content areas.', 'nanosoft' )
)
);
$containers['global__slidingMenu'] = array(
'type' => 'section',
'panel' => 'global__styles',
'title' => _x( 'Sliding Menu', 'customize', 'nanosoft' ),
'description' => _x( 'Configure the styles for the left content area.', 'customize', 'nanosoft' )
);
$containers['global__contentBottom'] = array(
'type' => 'section',
'panel' => 'global__styles',
'title' => _x( 'Content Bottom Widgets', 'customize', 'nanosoft' )
);
return $containers;
}
/**
* Return an array of the settings that will be registered
* into the theme customizer
*
* @return array
* @since 1.0.0
*/
function nanosoft_customize_global_settings( $settings ) {
$layout_width = array(
'width' => '1100px',
'max-width' => '90%'
);
$layout_padding = array(
'padding-top' => '0px',
'padding-right' => '0px',
'padding-bottom' => '0px',
'padding-left' => '0px'
);
$text_link_colors = array(
'a' => '',
'a:hover' => '',
'a:visited' => '',
'a:active, a:focus' => ''
);
$settings = array_merge( $settings, array(
'logoDefault__logo' => array( 'default' => array( 'url' => get_theme_file_uri( 'assets/img/logo.png' ) ) ),
'logoDefault__logoRetina' => array( 'default' => array( 'url' => get_theme_file_uri( 'assets/img/logo@2x.png' ) ) ),
'logoDefault__logoSize' => array( 'default' => array( 'width' => 'auto', 'height' => 'auto' ) ),
'logoDark__logo' => array( 'default' => array( 'url' => get_theme_file_uri( 'assets/img/logo_sticky.png' ) ) ),
'logoDark__logoRetina' => array( 'default' => array( 'url' => get_theme_file_uri( 'assets/img/logo_sticky@2x.png' ) ) ),
'logoDark__logoSize' => array( 'default' => array( 'width' => 'auto', 'height' => 'auto' ) ),
'logoLight__logo' => array( 'default' => array( 'id' => -1, 'url' => false ) ),
'logoLight__logoRetina' => array( 'default' => array( 'id' => -1, 'url' => false ) ),
'logoLight__logoSize' => array( 'default' => array( 'width' => 'auto', 'height' => 'auto' ) ),
'global__layout__mode' => array( 'default' => 'wide' ),
'global__layout__width' => array( 'default' => $layout_width ),
'global__layout__padding' => array( 'default' => $layout_padding ),
'global__layout__background' => array( 'default' => array() ),
'global__layout__frame' => array( 'default' => '#000' ),
'global__sidebar__position' => array( 'default' => 'right' ),
'global__sidebar__dimension' => array( 'default' => array( 'width' => '200px', 'margin' => '50px' ) ),
'global__sidebar__background' => array( 'default' => array() ),
'global__widget__title' => array( 'default' => array() ),
'global__widget__titlePadding' => array( 'default' => array(
'padding-top' => '0px',
'padding-right' => '0px',
'padding-bottom' => '0px',
'padding-left' => '0px'
) ),
'global__widget__titleMargin' => array( 'default' => array(
'margin-top' => '0px',
'margin-right' => '0px',
'margin-bottom' => '0px',
'margin-left' => '0px'
) ),
'global__widget__content' => array( 'default' => array() ),
'global__widget__linkColors' => array( 'default' => array() ),
'global__widget__titleBackground' => array( 'default' => array() ),
'global__widget__contentBackground' => array( 'default' => array() ),
'global__widget__contentPadding' => array( 'default' => array(
'padding-top' => '0px',
'padding-right' => '0px',
'padding-bottom' => '0px',
'padding-left' => '0px'
) ),
'global__widget__contentMargin' => array( 'default' => array(
'margin-top' => '0px',
'margin-right' => '0px',
'margin-bottom' => '0px',
'margin-left' => '0px'
) ),
'global__widget__heading' => array( 'default' => array() ),
'global__widget__titleHeading' => array( 'default' => array() ),
'global__typography__scheme' => array( 'default' => array() ),
'global__typography__body' => array( 'default' => array() ),
'global__typography__colors' => array( 'default' => $text_link_colors ),
'global__typography__h1' => array( 'default' => array() ),
'global__typography__h2' => array( 'default' => array() ),
'global__typography__h3' => array( 'default' => array() ),
'global__typography__h4' => array( 'default' => array() ),
'global__typography__h5' => array( 'default' => array() ),
'global__typography__h6' => array( 'default' => array() ),
'global__typography__blockquote' => array( 'default' => array() ),
'global__social__positions' => array( 'default' => array() ),
'global__social__icons' => array( 'default' => array() ),
'sliding__sidebarTypography' => array( 'default' => array() ),
'sliding__sidebarColors' => array( 'default' => array() ),
'sliding__sidebarBackground' => array( 'default' => array() ),
'sliding__sidebarPadding' => array( 'default' => array(
'padding-top' => '0px', 'padding-right' => '0px',
'padding-bottom' => '0px', 'padding-left' => '0px'
) ),
'sliding__menuStyle' => array( 'default' => 'overlay' ),
'sliding__menuDesktop' => array( 'default' => 'off' ),
'sliding__menuTypography' => array( 'default' => array() ),
'sliding__menuColors' => array( 'default' => array() ),
'sliding__menuBackground' => array( 'default' => array() ),
'sliding__menuPadding' => array( 'default' => array(
'padding-top' => '0px', 'padding-right' => '0px',
'padding-bottom' => '0px', 'padding-left' => '0px'
) ),
'global__misc__gotop' => array( 'default' => 'on' ),
'global__misc__loading' => array( 'default' => 'on' ),
'sliding__menuTypographyHeading' => array( 'default' => array() ),
'header__backgroundHeading' => array( 'default' => array() ),
'header__topbar__typoHeading' => array( 'default' => array() ),
'header__topbar__backgroundHeading' => array( 'default' => array() ),
'header__nav__backgroundHeading' => array( 'default' => array() ),
'header__sticky' => array( 'default' => array() ),
'header__sticky__backgroundHeading' => array( 'default' => array() ),
'header__titlebar__titleHeading' => array( 'default' => array() ),
'header__titlebar__breadcrumbHeading' => array( 'default' => array() ),
'header__widgets' => array( 'default' => array() ),
'footer__widgets__titleHeading' => array( 'default' => array() ),
'projects__sidebarHeading' => array( 'default' => array() ),
'project__sidebarHeading' => array( 'default' => array() ),
'button__background' => array( 'default' => array() ),
'input__background' => array( 'default' => array() )
) );
$settings['contentBottom__widgets'] = array( 'default' => 'off' );
$settings['contentBottom__widgets__layout'] = array( 'default' => array(
'columns' => 4,
'layout' => array(
1 => array( 12 ),
2 => array( 6, 6 ),
3 => array( 4, 4, 4 ),
4 => array( 3, 3, 3, 3 ),
)
) );
$settings['contentBottom__widgets__full'] = array( 'default' => 'off' );
$settings['contentBottom__widgets__padding'] = array( 'default' => array(
'padding-top' => '0px',
'padding-right' => '0px',
'padding-bottom' => '0px',
'padding-left' => '0px'
) );
$settings['contentBottom__widgets__background'] = array( 'default' => array() );
$settings['contentBottom__widgets__typography'] = array( 'default' => array() );
$settings['contentBottom__widgets__colors'] = array( 'default' => array() );
$settings['contentBottom__widgets__title'] = array( 'default' => array() );
$settings['contentBottom__widgets__margin'] = array( 'default' => array(
'margin-top' => '0px',
'margin-right' => '0px',
'margin-bottom' => '0px',
'margin-left' => '0px'
) );
return $settings;
}
/**
* Return an array of the controls which will be used
* for customize the logo
*
* @param array $controls The given controls list
* @return array
*/
function nanosoft_customize_global_logo_controls( $controls ) {
nanosoft_customize_generate_branding_controls( $controls, array(
'prefix' => 'logoDefault__',
'section' => 'global__logoDefault'
) );
nanosoft_customize_generate_branding_controls( $controls, array(
'prefix' => 'logoDark__',
'section' => 'global__logoDark'
) );
nanosoft_customize_generate_branding_controls( $controls, array(
'prefix' => 'logoLight__',
'section' => 'global__logoLight'
) );
return $controls;
}
/**
* Return an array of the controls which will be used
* for customize the layout
*
* @param array $controls The given controls list
* @return array
*/
function nanosoft_customize_global_layout_controls( $controls ) {
$controls['global__layout__mode'] = array(
'type' => 'radio-buttons',
'label' => esc_html__( 'Site Layout', 'nanosoft' ),
'section' => 'global__layout',
'choices' => array(
'wide' => esc_html__( 'Wide', 'nanosoft' ),
'boxed' => esc_html__( 'Boxed', 'nanosoft' ),
'frame' => esc_html__( 'Frame', 'nanosoft' )
)
);
$controls['global__layout__frame'] = array(
'type' => 'color',
'section' => 'global__layout',
'label' => esc_html__( 'Frame Color', 'nanosoft' ),
);
$controls['global__layout__width'] = array(
'type' => 'dimension',
'section' => 'global__layout',
'label' => esc_html__( 'Layout Width', 'nanosoft' ),
'choices' => array(
'width' => esc_html__( 'Width', 'nanosoft' ),
'max-width' => esc_html__( 'Max Width', 'nanosoft' )
)
);
$controls['global__layout__padding'] = array(
'type' => 'dimension',
'section' => 'global__layout',
'label' => esc_html__( 'Content 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['global__layout__background'] = array(
'type' => 'background',
'section' => 'global__layout',
'label' => esc_html__( 'Background Settings', 'nanosoft' )
);
/**
* Sidebar options
*/
$controls['global__sidebar__position'] = array(
'type' => 'radio-buttons',
'section' => 'global__sidebar',
'label' => esc_html__( 'Sidebar Position', 'nanosoft' ),
'choices' => array(
'none' => esc_html__( 'No Sidebar', 'nanosoft' ),
'left' => esc_html__( 'Left', 'nanosoft' ),
'right' => esc_html__( 'Right', 'nanosoft' )
)
);
$controls['global__sidebar__dimension'] = array(
'type' => 'dimension',
'section' => 'global__sidebar',
'label' => esc_html__( 'Sidebar Layout', 'nanosoft' ),
'choices' => array(
'width' => esc_html__( 'Width', 'nanosoft' ),
'margin' => esc_html__( 'Margin', 'nanosoft' )
)
);
$controls['global__sidebar__background'] = array(
'type' => 'background',
'section' => 'global__sidebar',
'label' => esc_html__( 'Sidebar Background', 'nanosoft' ),
);
$controls['global__widget__heading'] = array(
'type' => 'heading',
'section' => 'global__sidebar',
'label' => esc_html__( 'Widget Font', 'nanosoft' ),
);
$controls['global__widget__content'] = array(
'type' => 'typography',
'section' => 'global__sidebar'
);
$controls['global__widget__linkColors'] = array(
'type' => 'colors',
'section' => 'global__sidebar',
'label' => esc_html__( 'Widget Link Colors', 'nanosoft' ),
'choices' => array(
'link' => esc_html__( 'Link Color', 'nanosoft' ),
'linkHover' => esc_html__( 'Hover Link Color', 'nanosoft' )
)
);
$controls['global__widget__contentPadding'] = array(
'type' => 'dimension',
'section' => 'global__sidebar',
'label' => esc_html__( 'Widget 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['global__widget__contentMargin'] = array(
'type' => 'dimension',
'section' => 'global__sidebar',
'label' => esc_html__( 'Widget 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['global__widget__contentBackground'] = array(
'type' => 'background',
'section' => 'global__sidebar',
'label' => esc_html__( 'Widget Background', 'nanosoft' ),
);
$controls['global__widget__titleHeading'] = array(
'type' => 'heading',
'section' => 'global__sidebar',
'label' => esc_html__( 'Widget Title Font', 'nanosoft' ),
);
$controls['global__widget__title'] = array(
'type' => 'typography',
'section' => 'global__sidebar'
);
$controls['global__widget__titlePadding'] = array(
'type' => 'dimension',
'section' => 'global__sidebar',
'label' => esc_html__( 'Widget Title 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['global__widget__titleMargin'] = array(
'type' => 'dimension',
'section' => 'global__sidebar',
'label' => esc_html__( 'Widget Title 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['global__widget__titleBackground'] = array(
'type' => 'background',
'section' => 'global__sidebar',
'label' => esc_html__( 'Widget Title Background', 'nanosoft' ),
);
return $controls;
}
/**
* Return an array of the controls which will be used
* for customize the styles
*
* @param array $controls The given controls list
* @return array
*/
function nanosoft_customize_global_styles_controls( $controls ) {
$controls['global__typography__scheme'] = array(
'type' => 'colors',
'section' => 'global__typography',
'label' => esc_html__( 'Scheme Color', 'nanosoft' ),
'choices' => array(
'primary' => esc_html__( 'Primary Color', 'nanosoft' ),
'accent' => esc_html__( 'Accent Color', 'nanosoft' )
)
);
$controls['global__typography__body'] = array(
'type' => 'typography',
'section' => 'global__typography',
'label' => esc_html__( 'Body Font', 'nanosoft' ),
);
$controls['global__typography__colors'] = array(
'type' => 'colors',
'section' => 'global__typography',
'label' => esc_html__( 'Link Colors', 'nanosoft' ),
'choices' => array(
'a' => esc_html__( 'Link Color', 'nanosoft' ),
'a:hover' => esc_html__( 'Hover Color', 'nanosoft' ),
'a:visited' => esc_html__( 'Visited Color', 'nanosoft' )
)
);
foreach ( range( 1, 6 ) as $index ) {
$controls["global__typography__h{$index}"] = array(
'type' => 'typography',
'section' => 'global__typography',
'label' => sprintf( esc_html__( 'Heading %d', 'nanosoft' ), $index )
);
}
$controls['global__typography__blockquote'] = array(
'type' => 'typography',
'section' => 'global__typography',
'label' => esc_html__( 'Blockquote Font', 'nanosoft' ),
);
return $controls;
}
/**
* Return an array of the controls which will be used
* for customize the social network icons
*
* @param array $controls The given controls list
* @return array
*/
function nanosoft_customize_global_connections_controls( $controls ) {
$controls['global__social__icons'] = array(
'type' => 'icons',
'section' => 'global__connections'
);
$controls['global__social__positions'] = array(
'type' => 'checkboxes',
'section' => 'global__connections',
'label' => esc_html__( 'Position', 'nanosoft' ),
'choices' => array(
'top' => esc_html__( 'Topbar', 'nanosoft' ),
'nav' => esc_html__( 'Navigation', 'nanosoft' ),
'sticky' => esc_html__( 'Sticky Header', 'nanosoft' ),
'footer' => esc_html__( 'Footer', 'nanosoft' )
)
);
return $controls;
}
function nanosoft_customize_global_sliding_controls( $controls ) {
/**
* The content sliding from the left
*/
$controls['sliding__sidebarTypography'] = array(
'type' => 'typography',
'section' => 'global__slidingSidebar',
'label' => esc_html__( 'Sliding Area Font', 'nanosoft' ),
);
$controls['sliding__sidebarColors'] = array(
'type' => 'colors',
'section' => 'global__slidingSidebar',
'label' => esc_html__( 'Sliding Area Link Colors', 'nanosoft' ),
'choices' => array(
'link' => esc_html__( 'Link Color', 'nanosoft' ),
'linkHover' => esc_html__( 'Hover Link Color', 'nanosoft' )
)
);
$controls['sliding__sidebarBackground'] = array(
'type' => 'background',
'section' => 'global__slidingSidebar',
'label' => esc_html__( 'Sliding Area Background', 'nanosoft' ),
);
$controls['sliding__sidebarPadding'] = array(
'type' => 'dimension',
'section' => 'global__slidingSidebar',
'label' => esc_html__( 'Sliding Area 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' )
)
);
/**
* The content sliding from the right
*/
$controls['sliding__menuStyle'] = array(
'type' => 'radio-buttons',
'section' => 'global__slidingMenu',
'label' => esc_html__( 'Select Styles', 'nanosoft' ),
'choices' => array(
'overlay' => _x( 'Overlay', 'customize', 'nanosoft' ),
'slide' => _x( 'Slide', 'customize', 'nanosoft' )
)
);
$controls['sliding__menuDesktop'] = array(
'type' => 'radio-onoff',
'section' => 'global__slidingMenu',
'label' => esc_html__( 'Show On Desktop', 'nanosoft' ),
);
// Typography
$controls['sliding__menuTypographyHeading'] = array(
'type' => 'heading',
'section' => 'global__slidingMenu',
'label' => esc_html__( 'Sliding Menu Font', 'nanosoft' ),
);
$controls['sliding__menuTypography'] = array(
'type' => 'typography',
'section' => 'global__slidingMenu'
);
$controls['sliding__menuColors'] = array(
'type' => 'colors',
'section' => 'global__slidingMenu',
'label' => esc_html__( 'Sliding Menu Color', 'nanosoft' ),
'choices' => array(
'link' => esc_html__( 'Link Color', 'nanosoft' ),
'linkHover' => esc_html__( 'Hover Link Color', 'nanosoft' )
)
);
$controls['sliding__menuBackground'] = array(
'type' => 'background',
'section' => 'global__slidingMenu',
'label' => esc_html__( 'Sliding Menu Background', 'nanosoft' ),
);
$controls['sliding__menuPadding'] = array(
'type' => 'dimension',
'section' => 'global__slidingMenu',
'label' => esc_html__( 'Sliding 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' )
)
);
return $controls;
}
function nanosoft_customize_global_misc_controls( $controls ) {
$controls['global__misc__gotop'] = array(
'type' => 'radio-onoff',
'section' => 'global__layout',
'label' => esc_html__( 'Enable Go Top Button', 'nanosoft' ),
);
$controls['global__misc__loading'] = array(
'type' => 'radio-onoff',
'label' => esc_html__( 'Enable Loading Screen', 'nanosoft' ),
'section' => 'global__layout'
);
return $controls;
}
function nanosoft_customize_global_content_bottom_controls( $controls ) {
$controls['contentBottom__widgets'] = array(
'type' => 'radio-onoff',
'section' => 'global__contentBottom',
'label' => _x( 'Enable Content Bottom Areas', 'customize', 'nanosoft' ),
'description' => _x( '', 'customize', 'nanosoft' )
);
$controls['contentBottom__widgets__full'] = array(
'type' => 'radio-onoff',
'section' => 'global__contentBottom',
'label' => _x( '100% Full Width', 'customize', 'nanosoft' ),
'description' => _x( '', 'customize', 'nanosoft' )
);
$controls['contentBottom__widgets__layout'] = array(
'type' => 'column-layout',
'section' => 'global__contentBottom',
'label' => _x( 'Widgetized Layout Builder', 'customize', 'nanosoft' ),
'description' => _x( '', 'customize', 'nanosoft' )
);
$controls['contentBottom__widgets__background'] = array(
'type' => 'background',
'section' => 'global__contentBottom',
'label' => _x( 'Footer Widget Areas Background', 'customize', 'nanosoft' ),
'description' => _x( '', 'customize', 'nanosoft' )
);
$controls['contentBottom__widgets__padding'] = array(
'type' => 'dimension',
'section' => 'global__contentBottom',
'label' => _x( 'Footer Widget Areas Padding', 'customize', 'nanosoft' ),
'description' => _x( '', 'customize', 'nanosoft' ),
'choices' => array(
'padding-top' => _x( 'Top', 'customize', 'nanosoft' ),
'padding-right' => _x( 'Right', 'customize', 'nanosoft' ),
'padding-bottom' => _x( 'Bottom', 'customize', 'nanosoft' ),
'padding-left' => _x( 'Left', 'customize', 'nanosoft' )
)
);
$controls['contentBottom__widgets__typography'] = array(
'type' => 'typography',
'section' => 'global__contentBottom',
'label' => _x( 'Footer Widget Areas Font', 'customize', 'nanosoft' ),
'description' => _x( '', 'customize', 'nanosoft' )
);
$controls['contentBottom__widgets__colors'] = array(
'type' => 'colors',
'section' => 'global__contentBottom',
'label' => _x( 'Footer Widget Areas Link Colors', 'customize', 'nanosoft' ),
'description' => _x( '', 'customize', 'nanosoft' ),
'choices' => array(
'link' => _x( 'Link', 'customize', 'nanosoft' ),
'linkHover' => _x( 'Link Hover', 'customize', 'nanosoft' )
)
);
$controls['contentBottom__widgets__titleHeading'] = array(
'type' => 'heading',
'section' => 'global__contentBottom',
'label' => esc_html__( 'Footer Widget Title Font', 'nanosoft' ),
);
$controls['contentBottom__widgets__title'] = array(
'type' => 'typography',
'section' => 'global__contentBottom'
);
$controls['contentBottom__widgets__margin'] = array(
'type' => 'dimension',
'section' => 'global__contentBottom',
'label' => esc_html__( 'Footer Widget 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' )
)
);
return $controls;
}