????
| Current Path : /home2/morganrand/www/wp-content/themes/wanderfuls-2/framework/customizer/settings/ |
| Current File : /home2/morganrand/www/wp-content/themes/wanderfuls-2/framework/customizer/settings/header.php |
<?php
/**
* Header Customizer Options
*
* @package Wanderfuls WordPress Theme
* @subpackage Customizer
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Header styles
$header_styles = apply_filters( 'tb_header_styles', array(
'one' => __( 'One - Left Logo & Right Navbar','tb' ),
'two' => __( 'Two - Bottom Navbar','tb' ),
'three' => __( 'Three - Bottom Navbar Centered','tb' ),
'four' => __( 'Four - Top Navbar Centered','tb' ),
'five' => __( 'Five - Centered Inline Logo','tb' ),
'six' => __( 'Six - Vertical','tb' ),
) );
/*-----------------------------------------------------------------------------------*/
/* - Header => General
/*-----------------------------------------------------------------------------------*/
$this->sections['tb_header_general'] = array(
'title' => __( 'General', 'tb' ),
'panel' => 'tb_header',
'settings' => array(
array(
'id' => 'header_style',
'default' => 'one',
'control' => array(
'label' => __( 'Style', 'tb' ),
'type' => 'select',
'choices' => $header_styles,
),
),
array(
'id' => 'vertical_header_style',
'default' => 'one',
'control' => array(
'label' => __( 'Vertical Header Style', 'tb' ),
'type' => 'select',
'choices' => array(
'' => __( 'Default', 'tb' ),
'fixed' => __( 'Fixed', 'tb' ),
),
'active_callback' => 'tb_customizer_has_vertical_header',
),
),
array(
'id' => 'full_width_header',
'default' => false,
'control' => array(
'label' => __( 'Full-Width', 'tb' ),
'type' => 'checkbox',
'active_callback' => 'tb_customizer_header_supports_full_width',
),
),
array(
'id' => 'header_background',
'control' => array(
'label' => __( 'Background', 'tb' ),
'type' => 'color',
),
'inline_css' => array(
'target' => array(
'#site-header',
'.tb-sticky-header-holder',
'.tb-sticky-header-holder.is-sticky #site-header',
'.tb-sticky-header-holder',
'#site-header.tb-shrink-sticky-header',
'.footer-has-reveal #site-header',
'#searchform-header-replace',
'body.tb-has-vertical-header #site-header',
),
'alter' => 'background-color',
),
),
array(
'id' => 'header_top_padding',
'control' => array(
'type' => 'text',
'label' => __( 'Top Padding', 'tb' ),
),
'inline_css' => array(
'target' => array(
'#site-header-inner',
'#site-header.overlay-header #site-header-inner',
),
'alter' => 'padding-top',
'sanitize' => 'px',
),
),
array(
'id' => 'header_bottom_padding',
'control' => array(
'type' => 'text',
'label' => __( 'Bottom Padding', 'tb' ),
),
'inline_css' => array(
'target' => array(
'#site-header-inner',
'#site-header.overlay-header #site-header-inner',
),
'alter' => 'padding-bottom',
'sanitize' => 'px',
),
),
/*** Aside ***/
array(
'id' => 'header_aside_heading',
'control' => array(
'type' => 'tb-heading',
'label' => __( 'Aside', 'tb' ),
'active_callback' => 'tb_customizer_header_has_aside',
),
),
array(
'id' => 'header_aside_visibility',
'default' => 'visible-desktop',
'control' => array(
'label' => __( 'Visibility', 'tb' ),
'type' => 'select',
'choices' => tb_visibility(),
'active_callback' => 'tb_customizer_header_has_aside',
),
),
array(
'id' => 'header_aside_search',
'default' => true,
'control' => array(
'label' => __( 'Header Aside Search', 'tb' ),
'type' => 'checkbox',
'active_callback' => 'tb_customizer_header_has_aside_search',
),
),
array(
'id' => 'header_aside',
'control' => array(
'label' => __( 'Header Aside Content', 'tb' ),
'type' => 'textarea',
'active_callback' => 'tb_customizer_header_has_aside',
'description' => __( 'If you enter the ID number of a page it will automatically display the content of such page.', 'tb' ),
),
),
)
);
/*-----------------------------------------------------------------------------------*/
/* - Header => Logo
/*-----------------------------------------------------------------------------------*/
$this->sections['tb_header_logo'] = array(
'title' => __( 'Logo', 'tb' ),
'panel' => 'tb_header',
'settings' => array(
array(
'id' => 'logo_icon',
'default' => '',
'control' => array(
'label' => __( 'Text Logo Icon', 'tb' ),
'type' => 'select',
'choices' => tb_get_awesome_icons(),
'active_callback' => 'tb_customizer_hasnt_custom_logo',
),
),
array(
'id' => 'logo_icon_color',
'control' => array(
'type' => 'color',
'label' => __( 'Logo Icon Color', 'tb' ),
'active_callback' => 'tb_customizer_has_text_logo_icon',
),
'inline_css' => array(
'target' => '#site-logo-fa-icon',
'alter' => 'color',
),
),
array(
'id' => 'logo_icon_right_margin',
'control' => array(
'type' => 'text',
'label' => __( 'Logo Icon Right Margin', 'tb' ),
'active_callback' => 'tb_customizer_has_text_logo_icon',
),
'inline_css' => array(
'target' => '#site-logo-fa-icon',
'alter' => 'margin-right',
),
),
array(
'id' => 'logo_top_margin',
'control' => array(
'type' => 'text',
'label' => __( 'Top Margin', 'tb' ),
),
'inline_css' => array(
'target' => '#site-logo',
'alter' => 'padding-top',
'sanitize' => 'px',
),
),
array(
'id' => 'logo_bottom_margin',
'control' => array(
'type' => 'text',
'label' => __( 'Bottom Margin', 'tb' ),
),
'inline_css' => array(
'target' => '#site-logo',
'alter' => 'padding-bottom',
'sanitize' => 'px',
),
),
array(
'id' => 'logo_color',
'control' => array(
'type' => 'color',
'label' => __( 'Color', 'tb' ),
'active_callback' => 'tb_customizer_hasnt_custom_logo',
),
'inline_css' => array(
'target' => '#site-logo a.site-logo-text',
'alter' => 'color',
),
),
array(
'id' => 'logo_hover_color',
'control' => array(
'type' => 'color',
'label' => __( 'Hover Color', 'tb' ),
'active_callback' => 'tb_customizer_hasnt_custom_logo',
),
'inline_css' => array(
'target' => '#site-logo a.site-logo-text:hover',
'alter' => 'color',
),
),
array(
'id' => 'custom_logo',
'default' => '',
'control' => array(
'label' => __( 'Image Logo', 'tb' ),
'type' => 'image',
),
),
array(
'id' => 'retina_logo',
'default' => '',
'control' => array(
'label' => __( 'Retina Image Logo', 'tb' ),
'type' => 'image',
'active_callback' => 'tb_customizer_has_image_logo',
),
),
array(
'id' => 'retina_logo_height',
'control' => array(
'label' => __( 'Standard Retina Logo Height', 'tb' ),
'type' => 'text',
'description' => __( 'Enter the height in pixels of your standard logo size in order to mantain proportions for your retina logo.', 'tb' ),
'active_callback' => 'tb_customizer_has_retina_logo',
),
),
array(
'id' => 'logo_max_width',
'control' => array(
'label' => __( 'Logo Max Width: Desktop', 'tb' ),
'type' => 'text',
'description' => __( 'Screens 960px wide and greater.', 'tb' ),
'active_callback' => 'tb_customizer_has_image_logo',
),
),
array(
'id' => 'logo_max_width_tablet_portrait',
'control' => array(
'label' => __( 'Logo Max Width: Tablet Portrait', 'tb' ),
'type' => 'text',
'description' => __( 'Screens 768px-959px wide.', 'tb' ),
'active_callback' => 'tb_customizer_has_image_logo',
),
),
array(
'id' => 'logo_max_width_phone',
'control' => array(
'label' => __( 'Logo Max Width: Phone', 'tb' ),
'type' => 'text',
'description' => __( 'Screens smaller than 767px wide.', 'tb' ),
'active_callback' => 'tb_customizer_has_image_logo',
),
),
)
);
/*-----------------------------------------------------------------------------------*/
/* - Header => Fixed On Scroll
/*-----------------------------------------------------------------------------------*/
$this->sections['tb_header_fixed'] = array(
'title' => __( 'Sticky Header', 'tb' ),
'panel' => 'tb_header',
'settings' => array(
array(
'id' => 'fixed_header',
'default' => true,
'control' => array(
'label' => __( 'Sticky Header on Scroll', 'tb' ),
'type' => 'checkbox',
'description' => __( 'For some header styles the entire header will be fixed for others only the menu.', 'tb' ),
'active_callback' => 'tb_customizer_header_supports_sticky'
),
),
array(
'id' => 'shink_fixed_header',
'default' => true,
'control' => array(
'label' => __( 'Shrink Sticky Header', 'tb' ),
'type' => 'checkbox',
'active_callback' => 'tb_customizer_has_fixed_header',
),
),
array(
'id' => 'fixed_header_shrink_logo_height',
'default' => 50,
'control' => array(
'label' => __( 'Shrink Sticky Header Logo Height', 'tb' ),
'type' => 'number',
'active_callback' => 'tb_customizer_has_shrink_sticky_header',
),
),
array(
'id' => 'fixed_header_mobile',
'control' => array(
'label' => __( 'Sticky Header On Mobile', 'tb' ),
'type' => 'checkbox',
'active_callback' => 'tb_customizer_supports_fixed_header_mobile',
),
),
array(
'id' => 'fixed_header_logo',
'control' => array(
'label' => __( 'Sticky Header Custom Logo', 'tb' ),
'type' => 'image',
'active_callback' => 'tb_customizer_supports_fixed_header_logo',
),
),
array(
'id' => 'fixed_header_opacity',
'control' => array(
'type' => 'number',
'label' => __( 'Sticky header Opacity', 'tb' ),
'active_callback' => 'tb_customizer_fixed_header_supports_opacity',
'input_attrs' => array(
'min' => 0,
'max' => 1,
'step' => 0.1,
),
),
'inline_css' => array(
'target' => '.tb-sticky-header-holder.is-sticky #site-header',
'alter' => 'opacity',
),
),
)
);