@display:
	label: Display
	type: on-off
	default: on
	help: "Display or hide this element on page"
	basic: true

customClass:
	label: Custom Class
	type: code
	default: ''
	help: 'Write your custom class for own element identification'

title:
	label: Title
	type: text
	default: ''
	help: 'Title text displayed with element'

specialTitle:
	label: Special Page Title
	type: on-off
	default: on
	help: "Use settings specific for special pages (author, post, category, archive). Title field above will be ignored."

onPostTitle:
	type: variable
	default: 'Post'

onAuthorTitle:
	type: variable
	default: 'On Author'

onCategoryTitle:
	type: variable
	default: 'On Category'

onDateTitle:
	type: variable
	default: 'On Date'

description:
	label: Description
	type: textarea
	default: ''
	help: 'Description text displayed with element'

headAlign:
	label: Alignment
	type: image-radio
	checked: align-center
	images:
		align-left: text-align-left.png
		align-center: text-align-center.png
		align-right: text-align-right.png
	default:
		align-left: Align to Left
		align-center: Align to Center
		align-right: Align to Right
	help: "Select alignment of title and description"

- section(title: Element Background, advanced: true)

@bg:
	label: Background
	type: background
	default:
		color: ''
		opacity: 100%
		image: ''
		repeat: repeat
		position: top center
		scroll: scroll
	help: "Look of element background. Color, opacity and background image."

titlesAltColor:
	label: Titles Color
	type: color
	default: ''
	help: "Custom color of titles"

textAltColor:
	label: Text Color
	type: color
	default: ''
	help: "Custom color of text"

linkAltColor:
	label: Links Color
	type: color
	default: ''
	help: "Custom color of links"


- section(title: Spaces around Element, advanced: true)

margin-top:
	label: Top Margin
	type: number
	unit: px
	default: ''
	help: "Space above element"

padding-top:
	label: Top Padding
	type: number
	unit: px
	default: ''
	help: "Top space inside element"

padding-bottom:
	label: Bottom Padding
	type: number
	unit: px
	default: ''
	help: "Bottom space inside element"

margin-bottom:
	label: Bottom Margin
	type: number
	unit: px
	default: ''
	help: "Space below element"

- section(basic: true)

type:
	label: Type
	type: select
	selected: ROADMAP
	default:
		ROADMAP: Normal Map
		SATELLITE: Satellite Map
		HYBRID: Hybrid Map
	basic: true
	help: "Select type of Google Map"

contentSize:
	label: Size
	type: select
	default:
		contentsize: Content Size
		fullsize: Fullwidth Size
	basic: true
	help: "Select size of Google Map"

height:
	label: Height
	type: number
	unit: px
	default: 500
	basic: true
	help: "Height of Google Map"

markers:
	label: Markers
	type: clone
	max: infinity
	basic: true
	help: 'Add new Marker by click on "+ Add New Item" link, or remove existing Marker by clicking on red cross. Click on "Remove All Items" link to remove all existing Markers.'
	items:
		title:
			label: Title
			type: text
			help: "Title displayed in infowindow"
		url:
			label: Link
			type: url
			help: "URL of link displayed in infowindow, use valid URL format with http://"
		description:
			label: Description
			type: text
			help: "Description displayed in infowindow"
		icon:
			label: Icon Image
			type: image
			less: false
			default: '/design/img/regular-pin.png'
			help: "Marker image URL"
		address:
			label: Address
			type: text
			default: ''
			help: "Address for marker position"
	default: []

address:
	label: Address
	type: text
	default: ''
	basic: true
	help: "Address of default position shown on Google Map"

# default center in Algeria - looks pretty
latitude:
	type: variable
	default: 28.033886

longitude:
	type: variable
	default: 1.659626000000003


zoom:
	label: Zoom
	type: range
	less: false
	min: 0
	max: 21
	default: 2
	basic: true
	help: "Zoom level of Google Map"

displayPosts:
	label: Display Posts
	type: select
	selected: yes
	default:
		"yes": "Yes"
		"no": "No"
	basic: true

- section(id: displayPosts-yes, title: 'Post Markers')

category:
	label: Category
	type: categories
	taxonomy: category
	default: 0
	multiple: true
	help: "Select category displayed on page"

icon:
	label: Icon Image
	type: image
	less: false
	default: '/design/img/post-pin.png'
	help: "Marker image URL"

specialPage:
	label: Special Page Settings
	type: on-off
	default: on
	help: "Use settings specific for special pages (author, single post, category, archive). Category option will be ignored."

- section(title: 'Load Google Map on Request')

mapLoadType:
	label: Load Map
	type: select
	selected: auto
	default:
		auto: After page load
		request: After click on button
	basic: true
	help: "Select if the map is displayed right after page load, or after click on the button"

- section(title: 'Map General Colors', advanced: true)

borderColor:
	label: Map's Border
	type: color
	default: ''
	help: "Border color of Google Map"

mapHue:
	label: Map's Hue
	type: color
	default: ''
	help: "Hue color of Google Map"

mapSaturation:
	label: Map's Saturation
	type: range
	min: -100
	max: 100
	step: 1
	default: '-50'
	help: "Saturation level of Google Map"

mapBrightness:
	label: Map's Brightness
	type: range
	min: -100
	max: 100
	step: 1
	default: '0'
	help: "Brightness level of Google Map"

- section(title: 'Map Object Colors', advanced: true)

objSaturation:
	label: Saturation
	type: range
	min: -100
	max: 100
	step: 1
	default: '-50'
	help: "Saturation level of Google Map objects"

objBrightness:
	label: Brightness
	type: range
	min: -100
	max: 100
	step: 1
	default: '0'
	help: "Brightness level of Google Map objects"

landscapeColor:
	label: Landscape Hue
	type: color
	default: ''
	help: "Hue color of Google Map landscape"

administrativeColor:
	label: Administrative Hue
	type: color
	default: ''
	help: "Hue color of Google Map administrative areas"

roadsColor:
	label: Roads Hue
	type: color
	default: ''
	help: "Hue color of Google Map roads"

waterColor:
	label: Water Hue
	type: color
	default: '#cde0e4'
	help: "Hue color of Google Map water"

poiColor:
	label: POI Hue
	type: color
	default: ''
	help: "Hue color of Google Map Points Of Interest"

mousewheelZoom:
	label: MouseWheel Zoom
	type: on-off
	default: off
