????
| 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/togglebar.php |
<?php
/**
* Toggle Bar Panel
*
* @package Wanderfuls WordPress Theme
* @subpackage Customizer
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// General
$this->sections['tb_togglebar'] = array(
'title' => __( 'General', 'tb' ),
'settings' => array(
array(
'id' => 'toggle_bar',
'default' => true,
'control' => array(
'label' => __( 'Enable', 'tb' ),
'type' => 'checkbox',
'desc' => __( 'If you disable this option we recommend you go to the Customizer Manager and disable the section as well so the next time you work with the Customizer it will load faster.', 'tb' ),
),
),
array(
'id' => 'toggle_bar_page',
'default' => '',
'control' => array(
'label' => __( 'Content', 'tb' ),
'type' => 'dropdown-pages',
'active_callback' => 'tb_customizer_has_togglebar',
),
),
array(
'id' => 'toggle_bar_visibility',
'default' => 'hidden-phone',
'control' => array(
'label' => __( 'Visibility', 'tb' ),
'type' => 'select',
'choices' => tb_visibility(),
'active_callback' => 'tb_customizer_has_togglebar',
),
),
array(
'id' => 'toggle_bar_animation',
'default' => 'fade',
'control' => array(
'label' => __( 'Animation', 'tb' ),
'type' => 'select',
'choices' => array(
'fade' => __( 'Fade', 'tb' ),
'fade-slide' => __( 'Fade & Slide Down', 'tb' ),
),
'active_callback' => 'tb_customizer_has_togglebar',
),
),
array(
'id' => 'toggle_bar_button_icon',
'default' => 'plus',
'control' => array(
'label' => __( 'Button Icon', 'tb' ),
'type' => 'select',
'choices' => tb_get_awesome_icons(),
'active_callback' => 'tb_customizer_has_togglebar',
),
),
array(
'id' => 'toggle_bar_button_icon_active',
'default' => 'minus',
'control' => array(
'label' => __( 'Button Icon: Active', 'tb' ),
'type' => 'select',
'choices' => tb_get_awesome_icons(),
'active_callback' => 'tb_customizer_has_togglebar',
),
),
array(
'id' => 'toggle_bar_bg',
'control' => array(
'type' => 'color',
'label' => __( 'Content Background', 'tb' ),
'active_callback' => 'tb_customizer_has_togglebar',
),
'inline_css' => array(
'target' => '#toggle-bar-wrap',
'alter' => 'background',
),
),
array(
'id' => 'toggle_bar_color',
'control' => array(
'type' => 'color',
'label' => __( 'Content Color', 'tb' ),
'active_callback' => 'tb_customizer_has_togglebar',
),
'inline_css' => array(
'target' => array(
'#toggle-bar-wrap',
'#toggle-bar-wrap strong',
),
'alter' => 'color',
),
),
array(
'id' => 'toggle_bar_btn_bg',
'control' => array(
'type' => 'color',
'label' => __( 'Button Background', 'tb' ),
'active_callback' => 'tb_customizer_has_togglebar',
),
'inline_css' => array(
'target' => '.toggle-bar-btn',
'alter' => array( 'border-top-color', 'border-right-color' ),
),
),
array(
'id' => 'toggle_bar_btn_color',
'control' => array(
'type' => 'color',
'label' => __( 'Button Color', 'tb' ),
'active_callback' => 'tb_customizer_has_togglebar',
),
'inline_css' => array(
'target' => '.toggle-bar-btn span.fa',
'alter' => 'color',
),
),
array(
'id' => 'toggle_bar_btn_hover_bg',
'control' => array(
'type' => 'color',
'label' => __( 'Button Hover Background', 'tb' ),
'active_callback' => 'tb_customizer_has_togglebar',
),
'inline_css' => array(
'target' => '.toggle-bar-btn:hover',
'alter' => array( 'border-top-color', 'border-right-color' ),
),
),
array(
'id' => 'toggle_bar_btn_hover_color',
'control' => array(
'type' => 'color',
'label' => __( 'Button Hover Color', 'tb' ),
'active_callback' => 'tb_customizer_has_togglebar',
),
'inline_css' => array(
'target' => '.toggle-bar-btn:hover span.fa',
'alter' => 'color',
),
),
)
);