<?php if ( ! defined( 'FW' ) ) {
	die( 'Forbidden' );
}


$options = array(
	'id'   => array( 'type' => 'unique' ),
	'type' => array(
		'type'  => 'switch',
		'value' => 'hello',
		'label' => esc_html__('Type', 'odrin'),
		'left-choice' => array(
			'value' => 'light',
			'label' => esc_html__('Light', 'odrin'),
		),
		'right-choice' => array(
			'value' => 'color',
			'label' => esc_html__('Color', 'odrin'),
		),
	),
	'title' => array(
		'type'  => 'text',
		'value' => '',
		'label' => esc_html__('Title', 'odrin'),
	),
	'subtitle' => array(
		'type'  => 'text',
		'value' => '',
		'label' => esc_html__('Subtitle', 'odrin'),
	),
	'text_content' => array(
		'type'  => 'wp-editor',
		'value' => '',
		'label' => esc_html__('Content', 'odrin'),
		'reinit' => true,
	),
	'image' => array(
		'label'   => esc_html__('Image', 'odrin'),
		'desc'    => esc_html__('Please select the image', 'odrin'),
		'value'   => '',
		'type'    => 'upload',
		'images_only' => true,
	),
	'vertical_position' => array(
		'type'  => 'radio',
		'label' => esc_html__('Vertical Image Position', 'odrin'),
		'desc'    => esc_html__('Select which part of the image to be displayed with a priority.', 'odrin'),
		'value'   => 'center',
		'choices' => array(
			'top'  => esc_html__('Top', 'odrin'),
			'center' => esc_html__('Center', 'odrin'),
			'bottom'  => esc_html__('Bottom', 'odrin'),
			),
		'inline' => true,
	),
	'horizontal_position' => array(
		'type'  => 'radio',
		'label' => esc_html__('Horizontal Image Position', 'odrin'),
		'desc'    => esc_html__('Select which part of the image to be displayed with a priority.', 'odrin'),
		'value'   => 'center',
		'choices' => array(
			'left'  => esc_html__('Left', 'odrin'),
			'center' => esc_html__('Center', 'odrin'),
			'right'  => esc_html__('Right', 'odrin'),
			),
		'inline' => true,
	),
	'hide_on_desktop' => array(
		'type'  => 'switch',
		'value' => 'false',
		'label' => esc_html__('Hide on Desktop', 'odrin'),
		'desc' => esc_html__('Hide the shortcode when the display width is higher or equal to 991px', 'odrin'),
		'left-choice' => array(
			'value' => 'true',
			'label' => esc_html__('Yes', 'odrin'),
		),
		'right-choice' => array(
			'value' => 'false',
			'label' => esc_html__('No', 'odrin'),
		),
	),
	'hide_on_mobile' => array(
		'type'  => 'switch',
		'value' => 'false',
		'label' => esc_html__('Hide on Mobile', 'odrin'),
		'desc' => esc_html__('Hide the shortcode when the display width is lower than 991px', 'odrin'),
		'left-choice' => array(
			'value' => 'true',
			'label' => esc_html__('Yes', 'odrin'),
		),
		'right-choice' => array(
			'value' => 'false',
			'label' => esc_html__('No', 'odrin'),
		),
	),
	'animation_on_scroll' => array(
		'type'  => 'multi-picker',
		'label' => false,
		'value' => array(
			'animation_enable' => 'no',
			'yes' => array(
				'animation_type' => 'fadeIn'
				)
			),
		'picker' => array(
			'animation_enable' => array(
				'type'  => 'switch',
				'value' => 'yes',
				'label' => esc_html__('Animation on Scroll', 'odrin'),
				'desc'  => esc_html__('Animate element when it is scrolled in view.'),
				'left-choice' => array(
					'value' => 'yes',
					'label' => esc_html__('Yes', 'odrin'),
					),
				'right-choice' => array(
					'value' => 'no',
					'label' => esc_html__('No', 'odrin'),
					),
				)
			),
		'choices' => array(
			'yes' => array(
				'animation_type' => array(
					'type'  => 'select',
					'value' => 'fadeIn',
					'label' => esc_html__('Animation Type', 'odrin'),
					'choices' => array(
						'fadeIn' => esc_html__('fadeIn', 'odrin'),
						'fadeInUp' => esc_html__('fadeInUp', 'odrin'),
						'fadeInLeft' => esc_html__('fadeInLeft', 'odrin'),
						'fadeInRight' => esc_html__('fadeInRight', 'odrin'),
						'fadeInDown' => esc_html__('fadeInDown', 'odrin'),
						'flipInX' => esc_html__('flipInX', 'odrin'),
						'flipInY' => esc_html__('flipInY', 'odrin'),
						'zoomIn' => esc_html__('zoomIn', 'odrin')
					)
				),
				'animation_delay' => array(
					'type'  => 'text',
					'value' => 0,
					'label' => esc_html__('Delay (in miliseconds)', 'odrin'),
				)
			)
		),
		'show_borders' => false,
	),
);