????

Your IP : 216.73.216.152


Current Path : /home2/morganrand/www/wp-content/themes/wanderfuls-2/framework/customizer/settings/
Upload File :
Current File : /home2/morganrand/www/wp-content/themes/wanderfuls-2/framework/customizer/settings/general.php

<?php
/**
 * Customizer => General Panel
 *
 * @package Wanderfuls WordPress Theme
 * @subpackage Customizer
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Accent Colors
$this->sections['tb_accent_colors'] = array(
	'title' => __( 'Accent Colors', 'tb' ),
	'panel' => 'tb_general',
	'settings' => array(
		array(
			'id' => 'accent_color',
			'default' => '#3b86b0',
			'control' => array (
				'label' => __( 'Accent Color', 'tb' ),
				'type' => 'color',
			),
		),
	)
);

// Background
$patterns_url = get_template_directory_uri() .'/images/patterns/';
$this->sections['tb_background_background'] = array(
	'title'  => __( 'Site Background', 'tb' ),
	'panel'  => 'tb_general',
	'desc' => __( 'Here you can alter the global site background. It is highly recommended that you first set the site layout to "Boxed" under the Layout options.', 'tb' ),
	'settings' => array(
		array(
			'id' => 'background_color',
			'control' => array (
				'label' => __( 'Background Color', 'tb' ),
				'type' => 'color',
			),
		),
		array(
			'id' => 'background_image',
			'control' => array (
				'label' => __( 'Custom Background Image', 'tb' ),
				'type' => 'image',
				'active_callback' => 'tb_customizer_hasnt_background_pattern',
			),
		),
		array(
			'id' => 'background_style',
			'default' => 'stretched',
			'control' => array (
				'label' => __( 'Background Image Style', 'tb' ),
				'type'  => 'image',
				'type'  => 'select',
				'active_callback' => 'tb_customizer_has_background_image',
				'choices' => array(
					'stretched' => _x( 'Stretched', 'Background Style', 'tb' ),
					'repeat' => _x( 'Repeat', 'Background Style', 'tb' ),
					'fixed'  => _x( 'Center Fixed', 'Background Style', 'tb' ),
					'repeat-x' => _x( 'Repeat-x', 'Background Style', 'tb' ),
					'repeat-y' => _x( 'Repeat-y', 'Background Style', 'tb' ),
					'repeat-y' => _x( 'Repeat-y', 'Background Style', 'tb' ),
				),
			),
		),
		array(
			'id' => 'background_pattern',
			'control' => array (
				'label' => __( 'Background Pattern', 'tb' ),
				'type'  => 'image',
				'type'  => 'select',
				'active_callback' => 'tb_customizer_hasnt_background_image',
				'choices' => array(
					'' => __( 'None', 'tb' ),
					$patterns_url .'dark_wood.png'  => __( 'Dark Wood', 'tb' ),
					$patterns_url .'diagmonds.png'  => __( 'Diamonds', 'tb' ),
					$patterns_url .'grilled.png' => __( 'Grilled', 'tb' ),
					$patterns_url .'lined_paper.png' => __( 'Lined Paper', 'tb' ),
					$patterns_url .'old_wall.png' => __( 'Old Wall', 'tb' ),
					$patterns_url .'ricepaper2.png' => __( 'Rice Paper', 'tb' ),
					$patterns_url .'tree_bark.png'  => __( 'Tree Bark', 'tb' ),
					$patterns_url .'triangular.png' => __( 'Triangular', 'tb' ),
					$patterns_url .'white_plaster.png' => __( 'White Plaster', 'tb' ),
					$patterns_url .'wild_flowers.png' => __( 'Wild Flowers', 'tb' ),
					$patterns_url .'wood_pattern.png' => __( 'Wood Pattern', 'tb' ),
				),
			),
		),
	),
);

// Social Sharing Section
$this->sections['tb_social_sharing'] = array(
	'title'  => __( 'Social Sharing', 'tb' ),
	'panel'  => 'tb_general',
	'settings' => array(
		array(
			'id'  => 'social_share_sites',
			'default' => array( 'twitter', 'facebook', 'google_plus', 'pinterest' ),
			'control' => array (
				'label'  => __( 'Sites', 'tb' ),
				'type' => 'multiple-select',
				'object' => 'TB_Customize_Multicheck_Control',
				'choices' => array(
					'twitter'  => __( 'Twitter', 'tb' ),
					'facebook' => __( 'Facebook', 'tb' ),
					'google_plus' => __( 'Google Plus', 'tb' ),
					'pinterest' => __( 'Pinterest', 'tb' ),
					'linkedin' => __( 'LinkedIn', 'tb' ),
				),
			),
		),
		array(
			'id' => 'social_share_position',
			'default' => '',
			'control' => array (
				'label' => __( 'Position', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'' => __( 'Default', 'tb' ),
					'horizontal' => __( 'Horizontal', 'tb' ),
					'vertical' => __( 'Vertical', 'tb' ),
				),
				'active_callback' => 'tb_has_social_share_sites',
			),
		),
		array(
			'id' => 'social_share_heading_enable',
			'default' => true,
			'control' => array (
				'label' => __( 'Enable Heading', 'tb' ),
				'type'  => 'checkbox',
				'active_callback' => 'tb_social_sharing_supports_heading',
			),
		),
		array(
			'id' => 'social_share_heading',
			'default' => __( 'Please Share This', 'tb' ),
			'control' => array (
				'label' => __( 'Heading on Posts', 'tb' ),
				'type'  => 'text',
				'active_callback' => 'tb_social_sharing_supports_heading',
			),
		),
		array(
			'id' => 'social_share_style',
			'default' => 'flat',
			'control' => array (
				'label' => __( 'Style', 'tb' ),
				'type'  => 'select',
				'choices' => array(
					'flat' => _x( 'Flat', 'Social Share Style', 'tb' ),
					'minimal' => _x( 'Minimal', 'Social Share Style', 'tb' ),
					'three-d' => _x( '3D', 'Social Share Style', 'tb' ),
				),
				'active_callback' => 'tb_has_social_share_sites',
			),
		),
		array(
			'id' => 'social_share_pages',
			'default' => false,
			'control' => array (
				'label' => __( 'Pages', 'tb' ),
				'type' => 'checkbox',
				'active_callback' => 'tb_has_social_share_sites',
			),
		),
	)
);

// Lightbox
$this->sections['tb_lightbox'] = array(
	'title'  => __( 'Lightbox', 'tb' ),
	'panel'  => 'tb_general',
	'settings' => array(
		array(
			'id' => 'lightbox_skin',
			'control' => array (
				'label' => __( 'Skin', 'tb' ),
				'type' => 'select',
				'choices' => tb_ilightbox_skins(),
			),
		),
		array(
			'id' => 'lightbox_thumbnails',
			'default' => true,
			'control' => array (
				'label' => __( 'Gallery Thumbnails', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'lightbox_arrows',
			'default' => true,
			'control' => array (
				'label' => __( 'Gallery Arrows', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'lightbox_mousewheel',
			'default' => false,
			'control' => array (
				'label' => __( 'Gallery Mousewheel Scroll', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'lightbox_titles',
			'default' => true,
			'control' => array (
				'label' => __( 'Titles', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'lightbox_fullscreen',
			'default' => true,
			'control' => array (
				'label' => __( 'Fullscreen Button', 'tb' ),
				'type' => 'checkbox',
			),
		),
	)
);

// Breadcrumbs
$this->sections['tb_breadcrumbs'] = array(
	'title' => __( 'Breadcrumbs', 'tb' ),
	'panel' => 'tb_general',
	'settings' => array(
		array(
			'id' => 'breadcrumbs',
			'default' => true,
			'control' => array (
				'label' => __( 'Breadcrumbs', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'breadcrumbs_position',
			'control' => array (
				'label' => __( 'Position', 'tb' ),
				'type'  => 'select',
				'choices' => array(
					''  => __( 'Absolute Right', 'tb' ),
					'under-title' => __( 'Under Title', 'tb' ),
				),
				'active_callback' => 'tb_customizer_has_breadcrumbs',
			),
		),
		array(
			'id' => 'breadcrumbs_home_title',
			'transport' => 'refresh',
			'control' => array (
				'label' => __( 'Custom Home Title', 'tb' ),
				'type'  => 'text',
				'active_callback' => 'tb_customizer_enabled_not_yoast',
			),
		),
		array(
			'id' => 'breadcrumbs_title_trim',
			'control' => array (
				'label' => __( 'Title Trim Length', 'tb' ),
				'type'  => 'text',
				'desc'  => __( 'Enter the max number of words to display for your breadcrumbs post title', 'tb' ),
				'active_callback' => 'tb_customizer_enabled_not_yoast',
			),
		),
		array(
			'id' => 'breadcrumbs_text_color',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Text Color', 'tb' ),
				'active_callback' => 'tb_customizer_has_breadcrumbs',
			),
			'inline_css' => array(
				'target' => '.site-breadcrumbs',
				'alter' => 'color',
			),
		),
		array(
			'id' => 'breadcrumbs_seperator_color',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Separator Color', 'tb' ),
				'active_callback' => 'tb_customizer_has_breadcrumbs',
			),
			'inline_css' => array(
				'target' => '.site-breadcrumbs .sep',
				'alter' => 'color',
			),
		),
		array(
			'id' => 'breadcrumbs_link_color',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Link Color', 'tb' ),
				'active_callback' => 'tb_customizer_has_breadcrumbs',
			),
			'inline_css' => array(
				'target' => '.site-breadcrumbs a',
				'alter' => 'color',
			),
		),
		array(
			'id' => 'breadcrumbs_link_color_hover',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Link Color: Hover', 'tb' ),
				'active_callback' => 'tb_customizer_has_breadcrumbs',
			),
			'inline_css' => array(
				'target' => '.site-breadcrumbs a:hover',
				'alter' => 'color',
			),
		),
	),
);

// Page Title
$this->sections['tb_page_header'] = array(
	'title' => __( 'Page Title', 'tb' ),
	'panel' => 'tb_general',
	'settings' => array(
		array(
			'id' => 'page_header_style',
			'default' => '',
			'control' => array (
				'label'  => __( 'Page Header Style', 'tb' ),
				'type' => 'image',
				'type' => 'select',
				'choices' => array(
					'' => __( 'Default','tb' ),
					'centered' => __( 'Centered', 'tb' ),
					'centered-minimal' => __( 'Centered Minimal', 'tb' ),
					'hidden' => __( 'Hidden', 'tb' ),
				),
			),
		),
		array(
			'id' => 'page_header_top_padding',
			'control' => array (
				'type' => 'text',
				'label' => __( 'Top Padding', 'tb' ),
			),
			'inline_css' => array(
				'target' => '.page-header.tb-supports-mods',
				'alter' => 'padding-top',
			),
		),
		array(
			'id' => 'page_header_bottom_padding',
			'control' => array (
				'type' => 'text',
				'label' => __( 'Bottom Padding', 'tb' ),
			),
			'inline_css' => array(
				'target' => '.page-header.tb-supports-mods',
				'alter' => 'padding-bottom',
			),
		),
		array(
			'id' => 'page_header_background',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Background', 'tb' ),
			),
			'inline_css' => array(
				'target' => '.page-header.tb-supports-mods',
				'alter' => 'background-color',
			),
		),
		array(
			'id' => 'page_header_title_color',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Text Color', 'tb' ),
			),
			'inline_css' => array(
				'target' => '.page-header.tb-supports-mods .page-header-title',
				'alter' => 'color',
			),
		),
		array(
			'id' => 'page_header_top_border',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Top Border Color', 'tb' ),
			),
			'inline_css' => array(
				'target' => '.page-header.tb-supports-mods',
				'alter' => 'border-top-color',
			),
		),
		array(
			'id' => 'page_header_bottom_border',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Bottom Border Color', 'tb' ),
			),
			'inline_css' => array(
				'target' => '.page-header.tb-supports-mods',
				'alter' => 'border-bottom-color',
			),
		),
	),
);

// Pages
$this->sections['tb_pages'] = array(
	'title'  => __( 'Pages', 'tb' ),
	'panel'  => 'tb_general',
	'settings' => array(
		array(
			'id' => 'page_single_layout',
			'default' => true,
			'default' => '',
			'control' => array (
				'label' => __( 'Layout', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'' => __( 'Default', 'tb' ),
					'right-sidebar' => __( 'Right Sidebar','tb' ),
					'left-sidebar' => __( 'Left Sidebar','tb' ),
					'full-width' => __( 'No Sidebar','tb' ),
					'full-screen' => __( 'Full Screen','tb' ),
				),
			),
		),
		array(
			'id' => 'pages_custom_sidebar',
			'default' => true,
			'control' => array (
				'label' => __( 'Custom Sidebar', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'page_comments',
			'control' => array (
				'label' => __( 'Comments on Pages', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'page_featured_image',
			'control' => array (
				'label' => __( 'Display Featured Images', 'tb' ),
				'type' => 'checkbox',
			),
		),
	),
);

// Search
$this->sections['tb_search'] = array(
	'title'  => __( 'Search', 'tb' ),
	'panel'  => 'tb_general',
	'settings' => array(
		array(
			'id' => 'search_style',
			'default' => 'default',
			'transport' => 'postMessage',
			'control' => array (
				'label' => __( 'Style', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'default' => __( 'Left Thumbnail', 'tb' ),
					'blog' => __( 'Inherit From Blog','tb' ),
				),
			),
		),
		array(
			'id' => 'search_layout',
			'transport' => 'postMessage',
			'control' => array (
				'label' => __( 'Layout', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'' => __( 'Default', 'tb' ),
					'right-sidebar' => __( 'Right Sidebar','tb' ),
					'left-sidebar' => __( 'Left Sidebar','tb' ),
					'full-width' => __( 'No Sidebar','tb' ),
				),
			),
		),
		array(
			'id' => 'search_posts_per_page',
			'default' => '10',
			'transport' => 'postMessage',
			'control' => array (
				'label' => __( 'Posts Per Page', 'tb' ),
				'type' => 'text',
			),
		),
		array(
			'id' => 'search_custom_sidebar',
			'default' => true,
			'transport' => 'postMessage',
			'control' => array (
				'label' => __( 'Custom Sidebar', 'tb' ),
				'type' => 'checkbox',
			),
		),
	),
);

// Scroll to top
$this->sections['tb_scroll_top'] = array(
	'title' => __( 'Scroll To Top', 'tb' ),
	'panel' => 'tb_general',
	'settings' => array(
		array(
			'id' => 'scroll_top',
			'default' => true,
			'active_callback' => 'tb_has_scroll_top_button',
			'control' => array (
				'label' => __( 'Scroll Up Button', 'tb' ),
				'type' => 'checkbox',
			),
		),
		array(
			'id' => 'scroll_top_border_radius',
			'control' => array(
				'type' => 'text',
				'label' => __( 'Border Radius', 'tb' ),
			),
			'inline_css' => array(
				'target' => '#site-scroll-top',
				'alter' => 'border-radius',
			),
		),
		array(
			'id' => 'scroll_top_color',
			'control' => array(
				'type' => 'color',
				'label' => __( 'Color', 'tb' ),
			),
			'inline_css' => array(
				'target' => '#site-scroll-top',
				'alter' => 'color',
			),
		),
		array(
			'id' => 'scroll_top_color_hover',
			'control' => array(
				'type' => 'color',
				'label' => __( 'Color: Hover', 'tb' ),
			),
			'inline_css' => array(
				'target' => '#site-scroll-top:hover',
				'alter' => 'color',
			),
		),
		array(
			'id' => 'scroll_top_bg',
			'control' => array(
				'type' => 'color',
				'label' => __( 'Background', 'tb' ),
			),
			'inline_css' => array(
				'target' => '#site-scroll-top',
				'alter' => 'background-color',
			),
		),
		array(
			'id' => 'scroll_top_bg_hover',
			'control' => array(
				'type' => 'color',
				'label' => __( 'Background: Hover', 'tb' ),
			),
			'inline_css' => array(
				'target' => '#site-scroll-top:hover',
				'alter' => 'background-color',
			),
		),
		array(
			'id' => 'scroll_top_border',
			'control' => array(
				'type' => 'color',
				'label' => __( 'Border', 'tb' ),
			),
			'inline_css' => array(
				'target' => '#site-scroll-top',
				'alter' => 'border-color',
			),
		),
		array(
			'id' => 'scroll_top_border_hover',
			'control' => array(
				'type' => 'color',
				'label' => __( 'Border: Hover', 'tb' ),
			),
			'inline_css' => array(
				'target' => '#site-scroll-top:hover',
				'alter' => 'border-color',
			),
		),
	),
);

// Forms
$this->sections['tb_general_forms'] = array(
	'title' => __( 'Forms', 'tb' ),
	'panel' => 'tb_general',
	'settings' => array(
		array(
			'id' => 'input_padding',
			'control' => array (
				'type' => 'text',
				'label' => __( 'Padding', 'tb' ),
				'description' => __( 'Format: top right bottom left.', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea',
				),
				'alter' => 'padding',
			),
		),
		array(
			'id' => 'input_border_radius',
			'control' => array (
				'type' => 'text',
				'label' => __( 'Border Radius', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea',
				),
				'alter' => 'border-radius',
			),
		),
		array(
			'id' => 'input_font_size',
			'control' => array (
				'type' => 'text',
				'label' => __( 'Font-Size', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea',
				),
				'alter' => 'font-size',
			),
		),
		array(
			'id' => 'input_background',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Background', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea',
				),
				'alter' => 'background-color',
			),
		),
		array(
			'id' => 'input_border',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Border', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea',
				),
				'alter' => 'border-color',
			),
		),
		array(
			'id' => 'input_color',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Color', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea',
				),
				'alter' => 'color',
			),
		),
	),
);


// Links & Buttons
$this->sections['tb_general_links_buttons'] = array(
	'title' => __( 'Links & Buttons', 'tb' ),
	'panel' => 'tb_general',
	'settings' => array(
		array(
			'id' => 'link_color',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Links Color', 'tb' ),
			),
			'inline_css' => array(
				'target' => 'a, h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, .entry-title a:hover',
				'alter' => 'color',
			),
		),
		array(
			'id' => 'link_color_hover',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Links Color: Hover', 'tb' ),
			),
			'inline_css' => array(
				'target' => 'a:hover',
				'alter' => 'color',
			),
		),
		array(
			'id' => 'theme_button_padding',
			'control' => array (
				'type' => 'text',
				'label' => __( 'Theme Button Padding', 'tb' ),
				'description' => __( 'Format: top right bottom left.', 'tb' ),
			),
			'inline_css' => array(
				'target' => '.theme-button,input[type="submit"],button',
				'alter' => 'padding',
			),
		),
		array(
			'id' => 'theme_button_border_radius',
			'control' => array (
				'type' => 'text',
				'label' => __( 'Theme Button Border Radius', 'tb' ),
			),
			'inline_css' => array(
				'target' => '.theme-button,input[type="submit"],button',
				'alter' => 'border-radius',
			),
		),
		array(
			'id' => 'theme_button_color',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Theme Button Color', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.theme-button,input[type="submit"],button',
					'.navbar-style-one .menu-button > a > span.link-inner:hover',
				),
				'alter' => 'color',
			),
		),
		array(
			'id' => 'theme_button_hover_color',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Theme Button Color: Hover', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.theme-button:hover,input[type="submit"]:hover,button:hover',
					'.navbar-style-one .menu-button > a > span.link-inner:hover',
				),
				'alter' => 'color',
			),
		),
		array(
			'id' => 'theme_button_bg',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Theme Button Background', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.theme-button,input[type="submit"],button',
					'.navbar-style-one .menu-button > a > span.link-inner:hover',
				),
				'alter' => 'background',
			),
		),
		array(
			'id' => 'theme_button_hover_bg',
			'control' => array (
				'type' => 'color',
				'label' => __( 'Theme Button Background: Hover', 'tb' ),
			),
			'inline_css' => array(
				'target' => array(
					'.theme-button:hover,input[type="submit"]:hover,button:hover',
					'.navbar-style-one .menu-button > a > span.link-inner:hover',
				),
				'alter' => 'background',
			),
		),
	),
);