<?php

$prefix = 'package_';
$package_fields = array(
	array(
		'label' => 'Sub title',
		'desc'  => '',
		'id'    =>  $prefix . 'sub_title',
		'type'  => 'text',
	),
	array(
		'label' => 'Price',
		'desc'  => '',
		'id'    =>  $prefix . 'price',
		'type'  => 'text',
	),
	array(
		'label' => 'Package type',
		'desc'  => '',
		'id'    =>  $prefix . 'type',
		'type'  => 'select',
		'default' => 2,
		'options' => array(
				'1' => array ( // array key needs to be the same as the option value
					'label' => 'Type 1', // text displayed as the option
					'value'	=> 'package_01'
				),
				'2' => array (
					'label' => 'Type 2',
					'value'	=> 'package_02'
				),
				
				'3' => array ( // array key needs to be the same as the option value
					'label' => 'Type 3', // text displayed as the option
					'value'	=> 'package_03'
				),
				'4' => array (
					'label' => 'Type 4',
					'value'	=> 'package_04'
				),
				
				'5' => array ( // array key needs to be the same as the option value
					'label' => 'Type 5', // text displayed as the option
					'value'	=> 'package_05'
				),
				'6' => array (
					'label' => 'Type 6',
					'value'	=> 'package_06'
				),
				
				'7' => array ( // array key needs to be the same as the option value
					'label' => 'Type 7', // text displayed as the option
					'value'	=> 'package_07'
				),
				'8' => array (
					'label' => 'Type 8',
					'value'	=> 'package_08'
				),
			),
	),
);


/**
 * Instantiate the class with all variables to create a meta box
 * var $id string meta box id
 * var $title string title
 * var $fields array fields
 * var $page string|array post type to add meta box to
 * var $js bool including javascript or not
 */
require_once (THEME_DIR . "/framework/metaboxes/meta_box.php");
$package_metabox = new custom_add_meta_box( 'package_metabox', 'Package info', $package_fields, 'package', true );


