<?php

/**
 * Element Controls
 */
 

/* FIELDS */
$fields =  array(
	'gid' => array(
		'type'    => 'select',
		'ui' => array(
			'title'   => esc_html__('Gallery', 'gg_ml'),
			'tooltip' => '',
		),
		'options' => array(
			'choices' => $GLOBALS['gg_galls_arr']
		),
	),

	'width' => array(
		'type'    => 'number',
		'ui' => array(
			'title'   => esc_html__('Width', 'gg_ml'),
			'tooltip' => esc_html__("Define slider width", 'gg_ml'),
		),
	),
	'width_unit' => array(
		'type'    => 'select',
		'ui' => array(
			'title'   => esc_html__('Width Unit', 'gg_ml'),
			'tooltip' => '',
		),
		'options' => array(
			'choices' => array(
				array('value' => '%', 	'label' => '%'),
				array('value' => 'px', 	'label' => 'px'),
			)
		),
	),

	'height' => array(
		'type'    => 'number',
		'ui' => array(
			'title'   => esc_html__('Height', 'gg_ml'),
			'tooltip' => esc_html__("Define slider height (percentage is related to width)", 'gg_ml'),
		),
	),
	'height_unit' => array(
		'type'    => 'select',
		'ui' => array(
			'title'   => esc_html__('Height Unit', 'gg_ml'),
			'tooltip' => '',
		),
		'options' => array(
			'choices' => array(
				array('value' => '%', 	'label' => '%'),
				array('value' => 'px', 	'label' => 'px'),
			)
		),
	),

	'random' => array(
		'type'    => 'toggle',
		'ui' => array(
			'title'   => esc_html__('Random display?', 'gg_ml'),
			'tooltip' => esc_html__('Display images randomly', 'gg_ml'),
		),
	),
	
	'watermark' => array(
		'type'    => 'toggle',
		'ui' => array(
			'title'   => esc_html__('Use Watermark?', 'gg_ml'),
			'tooltip' => esc_html__('Apply watermark to images (if available)', 'gg_ml'),
		),
	),

	'autoplay' => array(
		'type'    => 'select',
		'ui' => array(
			'title'   => esc_html__('Autoplay', 'gg_ml'),
			'tooltip' => '',
		),
		'options' => array(
			'choices' => array(
				array('value' => 'auto',	'label' => esc_html__('(as default)', 'gg_ml')),
				array('value' => 1, 		'label' => esc_html__('Yes', 'gg_ml')),
				array('value' => 0,			'label' => esc_html__('No', 'gg_ml')),
			)
		),
	),
);



return $fields;
