<?php
/**
 * Pricings Metabox
 *
 * @package All In One Custom Post
 * @since All In One Custom Post 1.0.0 
 */
if ( !defined( 'ABSPATH' ) ) exit;

return array(
	'id'          => 'vr_pricings',
	'types'       => array( 'vr_pricings' ),
	'title'       => __( 'Pricing Option', PLUGIN_NAME ),
	'priority'    => 'high',
	'mode'        => WPALCHEMY_MODE_EXTRACT,
	'template'    => array(

		array(
			'name'      	=> 'price',
			'type'      	=> 'textbox',
			'label' 		=> __( 'Pricing Price', PLUGIN_NAME ),
			'description'	=> __( 'add pricing price.', PLUGIN_NAME ),
			'default' 		=> __( '$99.99', PLUGIN_NAME ),
			'validation' 	=> 'required',
		),
		array(
			'name'      	=> 'schedule',
			'type'      	=> 'textbox',
			'label' 		=> __( 'Payment Schedule', PLUGIN_NAME ),
			'description' 	=> __( 'add payment schedule', PLUGIN_NAME ),
			'default' 		=> __( '/ month', PLUGIN_NAME ),
			'validation' 	=> 'required',
		),
		array(
			'name'      	=> 'button_caption',
			'type'      	=> 'textbox',
			'label' 		=> __( 'Pricing Button Caption', PLUGIN_NAME ),
			'description' 	=> __( 'add pricing button caption text.', PLUGIN_NAME ),
			'default' 		=> __( 'Buy Now', PLUGIN_NAME ),
			'validation' 	=> 'required',
		),
		array(
			'type'      	=> 'group',
			'repeating' 	=> true,
			'sortable'  	=> true,
			'name'      	=> 'features',
			'title' 		=> __( 'Pricing Feature List', PLUGIN_NAME ),
			'description' 	=> __( 'add pricing features list.', PLUGIN_NAME ),
			'fields'    	=> array(
				array(
					'name'      	=> 'icon',
					'type'      	=> 'fontawesome',
					'label' 		=> __( 'Features Icon', PLUGIN_NAME ),
					'description' 	=> __( 'Select pricing features icon.', PLUGIN_NAME ),
					'validation'	=> 'required',
				),
				array(
					'name'      	=> 'caption',
					'type'      	=> 'textbox',
					'label' 		=> __( 'Feature Caption', PLUGIN_NAME ),
					'description' 	=> __( 'add pricing feature caption.', PLUGIN_NAME ),
					'default' 		=> 'Caption Text Here',
					'validation' 	=> 'required',
				),
			),
		),
		array(
			'name'      	=> 'icon',
			'type'      	=> 'fontawesome',
			'label' 		=> __( 'Pricing Icon', PLUGIN_NAME ),
			'description' 	=> __( 'Select pricing icon.', PLUGIN_NAME ),
			'default' 		=> 'fa-university',
			'validation'	=> 'required',
		),
		array(
			'name' 			=> 'background_color',
			'type' 			=> 'color',
			'label' 		=> __( 'Background Color', PLUGIN_NAME ),
			'description' 	=> __( 'select pricing background color', PLUGIN_NAME ),
			'default' 		=> '#77bf4f',
			'format' 		=> 'hex',
			'validation'	=> 'required',
		),
		array(
			'name'      	=> 'url',
			'type'      	=> 'textbox',
			'label' 		=> __( 'Single Page Link URL', PLUGIN_NAME ),
			'description' 	=> __( 'Add single page link url.', PLUGIN_NAME ),
			'default' 		=> '',
			'validation'	=> 'url',
		),
	),
);

/*
 * EOF
 */