<?php
/**
 * Post custom metabox.
 *
 * @package Armada
 * @since Armada 1.0
 */
 
return array(
	'id'          => 'post',
	'types'       => array('post'),
	'title'       => __('Post Options', PLUGIN_NAME),
	'priority'    => 'high',
	'mode'        => WPALCHEMY_MODE_EXTRACT,
	'template'    => array(
		array(
			'type' 			=> 'radiobutton',
			'name' 			=> 'layout',
			'label' 		=> __( 'Single Layout', PLUGIN_NAME ),
			'description'	=> __( 'Select page layout (Builder, Full, Left Sidebar or Right Sidebar).', PLUGIN_NAME ),
			'default' 		=> 'content-sidebar-right',
			'items' 		=> array(
				array(
					'value' => 'content-builder',
					'label' => __( 'Page Builder', PLUGIN_NAME ),
				),
				array(
					'value' => 'content-full',
					'label' => __( 'Full Content', PLUGIN_NAME ),
				),
				array(
					'value' => 'content-sidebar-left',
					'label' => __( 'Left Sidebar', PLUGIN_NAME ),
				),
				array(
					'value' => 'content-sidebar-right',
					'label' => __( 'Right Sidebar', PLUGIN_NAME ),
				),
			),
		),
		// Post Type Gallery
		array(
			'type'      	=> 'group',
			'repeating' 	=> true,
			'length'    	=> 1,
			'sortable'		=> true,
			'name'      	=> 'gallery',
			'title'     	=> 'Post Type Gallery',
			'fields'    	=> array(
				array(
					'name'      	=> 'gallery_caption',
					'type'      	=> 'textbox',
					'label' 		=> __('Picture Caption', PLUGIN_NAME ),
					'description' 	=> __('Add post gallery picture caption.', PLUGIN_NAME ),
					'default' 		=> __('Picture Text Caption', PLUGIN_NAME ),
				),
				array(
					'name'      	=> 'gallery_picture',
					'type'      	=> 'upload',
					'label' 		=> __('Picture File', PLUGIN_NAME ),
					'description' 	=> __('Select gallery picture.', PLUGIN_NAME ),
				),
			),
		),
		// Post Type Quote
		array(
			'type'      => 'group',
			'repeating' => false,
			'length'    => 1,
			'name'      => 'quote',
			'title'     => 'Post Format Quote',
			'fields'    => array(
				array(
					'name'      	=> 'quote_text',
					'type'      	=> 'textarea',
					'label' 		=> __('Quote', PLUGIN_NAME),
					'description'	=> __('Add post quote.', PLUGIN_NAME),
					'default' 		=> 'Quote Text',
				),
				array(
					'name'      	=> 'quote_author',
					'type'      	=> 'textbox',
					'label' 		=> __('Quote Author', PLUGIN_NAME),
					'description' 	=> __('Add post quote author.', PLUGIN_NAME),
					'default' 		=> 'Quote Author Text',
				),
			),
		),
		// Post Type Link
		array(
			'type'      => 'group',
			'repeating' => false,
			'length'    => 1,
			'name'      => 'link',
			'title'     => 'Post Format Link',
			'fields'    => array(
				array(
					'name'      	=> 'link_url',
					'type'      	=> 'textarea',
					'label' 		=> __('Link', PLUGIN_NAME),
					'description'	=> __('Add link url.', PLUGIN_NAME),
					'default' 		=> '#',
				),
			),
		),
		// Post Type Video
		array(
			'type'      => 'group',
			'repeating' => false,
			'length'    => 1,
			'name'      => 'video',
			'title'     => 'Post Format Video',
			'fields'    => array(
				array(
					'name'      	=> 'video_code',
					'type'      	=> 'textarea',
					'label' 		=> __('Video Embed Code', PLUGIN_NAME),
					'description'	=> __('Add video embed code.', PLUGIN_NAME),
					'default' 		=> '#',
				),
			),
		),
		// Post Type Audio
		array(
			'type'      => 'group',
			'repeating' => false,
			'length'    => 1,
			'name'      => 'video',
			'title'     => 'Post Format Video',
			'fields'    => array(
				array(
					'name'      	=> 'video_code',
					'type'      	=> 'textarea',
					'label' 		=> __('Video Embed Code', PLUGIN_NAME),
					'description'	=> __('Add video embed code.', PLUGIN_NAME),
					'default' 		=> '#',
				),
			),
		),
		// Post Type Audio
		array(
			'type'      => 'group',
			'repeating' => false,
			'length'    => 1,
			'name'      => 'audio',
			'title'     => 'Post Format Audio',
			'fields'    => array(
				array(
					'name'      	=> 'audio_code',
					'type'      	=> 'textarea',
					'label' 		=> __('Audio Embed Code', PLUGIN_NAME),
					'description'	=> __('Add audio embed code.', PLUGIN_NAME),
					'default' 		=> '#',
				),
			),
		),
		/**/
	),
);
