????

Your IP : 216.73.216.174


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

<?php
/**
 * Layout Panel
 *
 * @package Wanderfuls WordPress Theme
 * @subpackage Customizer
 */

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

// General
$this->sections['tb_layout_general'] = array(
	'title' => __( 'General', 'tb' ),
	'panel' => 'tb_layout',
	'settings' => array(
		array(
			'id' => 'responsive',
			'default' => true,
			'control' => array(
				'label' => __( 'Responsiveness', 'tb' ),
				'type' => 'checkbox',
				'desc' => __( 'If you are using the Visual Composer plugin, make sure to enable/disable the responsive settings at Settings->Visual composer as well.', 'tb' ),
			),
		),
		array(
			'id' => 'container_max_width',
			'control' => array(
				'label' => __( 'Max Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', 'Customizer', 'tb' ) .' 90%',
				'active_callback' => 'tb_customizer_container_layout_supports_max_width',
			),
		),
		array(
			'id' => 'main_layout_style',
			'default' => 'full-width',
			'control' => array(
				'label' => __( 'Layout Style', 'tb' ),
				'type' => 'select',
				'choices' => array(
					'full-width' => __( 'Full Width','tb' ),
					'boxed' => __( 'Boxed','tb' )
				),
			),
		),
		array(
			'id' => 'boxed_dropdshadow',
			'control' => array(
				'label' => __( 'Boxed Layout Drop-Shadow', 'tb' ),
				'type' => 'checkbox',
				'active_callback' => 'tb_customizer_has_boxed_layout',
			),
		),
		array(
			'id' => 'boxed_padding',
			'control' => array(
				'type' => 'text',
				'label' => __( 'Outer Margin', 'tb' ),
				'desc' => __( 'Default:', 'tb' ) .' 40px 30px',
				'active_callback' => 'tb_customizer_has_boxed_layout',
			),
			'inline_css' => array(
				'target' => '.boxed-main-layout #outer-wrap',
				'alter' => 'padding',
			),
		),
		array(
			'id' => 'boxed_wrap_bg',
			'control' => array(
				'type' => 'color',
				'label' => __( 'Inner Background', 'tb' ),
				'active_callback' => 'tb_customizer_has_boxed_layout',
			),
			'inline_css' => array(
				'target' => '.boxed-main-layout #wrap,.is-sticky #site-header',
				'alter' => 'background-color',
			),
		),
	),
);

// Desktop Widths
$this->sections['tb_layout_desktop_widths'] = array(
	'title' => __( 'Desktop Widths', 'tb' ),
	'panel' => 'tb_layout',
	'desc' => __( 'For screens greater than or equal to 1281px. Accepts both pixels or percentage values.', 'tb' ),
	'settings' => array(
		array(
			'id' => 'main_container_width',
			'control' => array(
				'label' => __( 'Main Container Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', 'Customizer', 'tb' ) .' 980px',
			),
		),
		array(
			'id' => 'left_container_width',
			'control' => array(
				'label' => __( 'Content Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', 'Customizer', 'tb' ) .' 69%',
			),
		),
		array(
			'id' => 'sidebar_width',
			'control' => array(
				'label' => __( 'Sidebar Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', '', 'Customizer' ) .' 26%',
			),
		),
	),
);

// Medium Screen Widths
$this->sections['tb_layout_medium_widths'] = array(
	'title' => __( 'Medium Screens Widths', 'tb' ),
	'panel' => 'tb_layout',
	'desc' => __( 'For screens between 960px - 1280px. Such as landscape tablets and small monitors/laptops. Accepts both pixels or percentage values.', 'tb' ),
	'settings' => array(
		array(
			'id' => 'tablet_landscape_main_container_width',
			'control' => array(
				'label' => __( 'Main Container Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', 'Customizer', 'tb' ) .' 90%',
			),
		),
		array(
			'id' => 'tablet_landscape_left_container_width',
			'control' => array(
				'label' => __( 'Content Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Same as desktop by default', 'Customizer Layouts', 'tb' ),
			),
		),
		array(
			'id' => 'tablet_landscape_sidebar_width',
			'control' => array(
				'label' => __( 'Sidebar Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Same as desktop by default', 'Customizer Layouts', 'tb' ),
			),
		),
	),
);

// Tablet Portrait Widths
$this->sections['tb_layout_tablet_widths'] = array(
	'title' => __( 'Tablet Widths', 'tb' ),
	'panel' => 'tb_layout',
	'desc' => __( 'For screens between 768px - 959px. Such as portrait tablet. Accepts both pixels or percentage values.', 'tb' ),
	'settings' => array(
		array(
			'id' => 'tablet_main_container_width',
			'control' => array(
				'label' => __( 'Main Container Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', 'Customizer', 'tb' ) .' 90%',
			),
		),
		array(
			'id' => 'tablet_left_container_width',
			'control' => array(
				'label' => __( 'Content Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', 'Customizer', 'tb' ) .' 100%',
			),
		),
		array(
			'id' => 'tablet_sidebar_width',
			'control' => array(
				'label' => __( 'Sidebar Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', 'Customizer', 'tb' ) .' 100%',
			),
		),
	),
);

// Mobile Phone Widths
$this->sections['tb_layout_phone_widths'] = array(
	'title' => __( 'Mobile Phone Widths', 'tb' ),
	'panel' => 'tb_layout',
	'desc' => __( 'For screens between 0 - 767px. Accepts both pixels or percentage values.', 'tb' ),
	'settings' => array(
		array(
			'id' => 'mobile_landscape_main_container_width',
			'control' => array(
				'label' => __( 'Landscape: Main Container Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', 'Customizer', 'tb' ) .' 90%',
			),
		),
		array(
			'id' => 'mobile_portrait_main_container_width',
			'control' => array(
				'label' => __( 'Portrait: Main Container Width', 'tb' ),
				'type' => 'text',
				'desc' => _x( 'Default:', 'Customizer', 'tb' ) .' 90%',
			),
		),
	),
);