<?php
/*
 * Title Wrapper Section
*/

$sections[] = array(
	'title' => __('Title Wrapper', 'rhythm'),
	'desc' => __('Change the title wrapper section configuration.', 'rhythm'),
	'icon' => 'el-icon-cog',
	'fields' => array(

		array(
			'id' => 'title-wrapper-enable-local',
			'type'	 => 'button_set',
			'title' => __('Enable Title Wrapper', 'rhythm'),
			'subtitle'=> __('If on, this layout part will be displayed.', 'rhythm'),
			'options' => array(
				'1' => 'On',
				'' => 'Default',
				'0' => 'Off',
			),
			'default' => '',
		),

		array(
			'id'        => 'title-wrapper-subtitle-local',
			'type'      => 'text',
			'title'     => __('Subtitle', 'rhythm'),
			'subtitle'  => __('This is a subtitle displayed below the title.', 'rhythm'),
			'default'   => '',
			'required'  => array('title-wrapper-template-local', '!=', 'breadcrumbs'),
		),
		
		array(
			'id'=>'title-wrapper-template-local',
			'type' => 'select',
			'title' => __('Template', 'rhythm'),
			'subtitle' => __('Choose template for the title wrapper.', 'rhythm'),
			'options' => array(
				'normal' => __('Normal', 'rhythm'),
				'alternative' => __('Alternative', 'rhythm'),
				'magazine' => __('Magazine', 'rhythm'),
				'modern' => __('Modern', 'rhythm'),
				'breadcrumbs' => __('Breadcrumbs', 'rhythm'),
			),
			'default'   => '',
			'validate' => '',
		),
		
		array(
			'id'=>'title-wrapper-margin-top-local',
			'type' => 'button_set', 
			'title' => __('Enable Margin Top', 'rhythm'),
			'subtitle'=> __('If on, margin to will be added.', 'rhythm'),
			'options' => array(
				'1' => 'On',
				'' => 'Default',
				'0' => 'Off',
			),
			'default' => '',
			'required'  => array('title-wrapper-template-local', '=', 'alternative'),
		),
		
		array(
			'id'=>'title-wrapper-style-local',
			'type' => 'select',
			'title' => __('Title Wrapper Style', 'rhythm'),
			'subtitle' => __('Choose style for the title wrapper.', 'rhythm'),
			'options' => array(
				'bg-gray-lighter' => __('Light gray background, dark text', 'rhythm'),
				'bg-gray' => __('Gray background, text dark', 'rhythm'),
				'bg-dark-lighter' => __('Dark gray background,  light text', 'rhythm'),
				'bg-dark' => __('Black background, white text', 'rhythm'),
				'bg-white' => __('White background, dark text', 'rhythm'),
				'bg-dark-alfa-30' => __('Dark 30%', 'rhythm'),
				'bg-dark-alfa-50' => __('Dark 50%', 'rhythm'),
				'bg-dark-alfa-70' => __('Dark 70%', 'rhythm'),
				'bg-light-alfa-30' => __('Light 30%', 'rhythm'),
				'bg-light-alfa-50' => __('Light 50%', 'rhythm'),
				'bg-light-alfa-70' => __('Light 70%', 'rhythm'),				
			),
			'default'   => '',
			'required'  => array('title-wrapper-template-local', '!=', 'breadcrumbs'),
		),
		
		array(
			'id'=>'title-wrapper-size-local',
			'type' => 'select',
			'title' => __('Size', 'rhythm'),
			'subtitle' => __('Choose size for the title wrapper.', 'rhythm'),
			'options' => array(
				'default' => __('Default', 'rhythm'),
				'small' => __('Small', 'rhythm'),
				'medium' => __('Medium', 'rhythm'),
				'big' => __('Big', 'rhythm'),
			),
			'default'   => '',
			'required'  => array('title-wrapper-template-local', 'equals', 'normal'),
		),
		
		array(
			'id'        => 'title-wrapper-image-local',
			'type'      => 'media',
			'url'       => true,
			'title'     => __('Title Image', 'rhythm'),
			'compiler'  => 'false',
			'subtitle'  => __('Upload any media using the WordPress native uploader', 'rhythm'),
			'required'  => array('title-wrapper-template-local', 'equals', 'magazine'),
		),
		
		array(
			'id'        => 'title-wrapper-background-local',
			'type'      => 'media',
			'url'       => true,
			'title'     => __('Title Background', 'rhythm'),
			'compiler'  => 'false',
			'subtitle'  => __('Upload any media using the WordPress native uploader', 'rhythm'),
			'required'  => array('title-wrapper-template-local', '!=', 'breadcrumbs'),
		),
		
		array(
			'id'=>'title-wrapper-parallax-effect-local',
			'type' => 'select',
			'title' => __('Parallax effect', 'rhythm'),
			'subtitle' => __('Choose parallax effect for the background image.', 'rhythm'),
			'options' => array(
				'no-effect' => __('No effect', 'rhythm'),
				'parallax-1' => '0.1',
				'parallax-2' => '0.2',
				'parallax-3' => '0.3',
				'parallax-4' => '0.4',
				'parallax-5' => '0.5',
				'parallax-6' => '0.6',
				'parallax-7' => '0.7',
				'parallax-11' => '0.05',
			),
			'default'   => '',
			'required'  => array('title-wrapper-template-local', '!=', 'breadcrumbs'),
		),
		
		array(
			'id'=>'title-wrapper-search-local',
			'type' => 'button_set', 
			'title' => __('Enable searchs section below title wrapper', 'rhythm'),
			'subtitle'=> __('If on, this full width search secion will be displayed', 'rhythm'),
			'options' => array(
				'1' => 'On',
				'' => 'Default',
				'0' => 'Off',
			),
			'default' => '',
		),
		
	), // #fields
);