<?php
$config = array(
	'title' => sprintf(__('%s Page General Options',THEME_ADMIN_DOMAIN),THEME_NAME),
	'id' => 'page_general',
	'post_types' => theme_get_option('advanced','page_general'),
	'callback' => '',
	'context' => 'normal',
	'priority' => 'high',
);
$options = array(
	array(
		"name" => __("Layout",THEME_ADMIN_DOMAIN),
		"desc" => __("Select which layout to use.",THEME_ADMIN_DOMAIN),
		"id" => "_page_layout",
		"default" => 'right',
		"options" => array(
			"default" => __('Default',THEME_ADMIN_DOMAIN),
			"right" => __('Right SideBar',THEME_ADMIN_DOMAIN),
			"left" => __('Left SideBar',THEME_ADMIN_DOMAIN),
			"full" => __('Full Width',THEME_ADMIN_DOMAIN),
		),
		"type" => "select",
	),
	array(
		"name" => __("Feature Header Type",THEME_ADMIN_DOMAIN),
		"desc" => __("Here you can override the general feature header on a post by post basis.",THEME_ADMIN_DOMAIN),
		"id" => "_introduce_text_type",
		"options" => array(
			"default" => "Default",
			/*"title" => "Title only",
			"custom" => "Custom text only",
			"title_custom" => "Title & custom text",*/
			"description" => "Description",
			"slideshow" => "SlideShow",
			"disable" => "Disable",
		),
		"default" => "default",
		"type" => "radios"
	),
	array(
		"type" => "group_start",
		"group" => "feature_header",
	),
	array(
		"name" => __("Feature Header Custom Title",THEME_ADMIN_DOMAIN),
		"desc" => __('If any text you enter here will override your default feature header title.',THEME_ADMIN_DOMAIN),
		"id" => "_custom_title",
		"default" => "",
		"class" => 'full',
		"type" => "text"		
	),
	array(
		"name" => __("Feature Header Custom Text",THEME_ADMIN_DOMAIN),
		"desc" => __('If the "custom text" option is selected above any text you enter here will override your general feautre header text .',THEME_ADMIN_DOMAIN),
		"id" => "_custom_introduce_text",
		"rows" => "2",
		"default" => "",
		"type" => "textarea"		
	),
	array(
		"type"=>"group_end",	
	),
	array(
		"type" => "group_start",
		"group" => "slider_setting",
	),
	array(
		"name" => __("SlideShow Type",THEME_ADMIN_DOMAIN),
		"desc" => __("Select which slidershow type to use.",THEME_ADMIN_DOMAIN),
		"id" => "_slideshow_type",
		"default" => 'nivo',
		"options" => array(
			"any" => __('Anything SlideShow',THEME_ADMIN_DOMAIN),
			"nivo" => __('Nivo SlideShow',THEME_ADMIN_DOMAIN),
			"flow" => __('Cover FlowSlideShow',THEME_ADMIN_DOMAIN),
		),
		"type" => "select",
	),
	array(
		"name" => __("SlideShow Source",THEME_ADMIN_DOMAIN),
		"desc" => __("Select which slidershow Source to use. It only available when the type of feature header is slideshow",THEME_ADMIN_DOMAIN),
		"id" => "_slideshow_category",
		"default" => "{s}",
		"options" => array(
			"g" => __('Self Gallery',THEME_ADMIN_DOMAIN),
		),
		"chosen" => true,
		"chosen_order" => true,
		"prompt" => __("Select Source..",THEME_ADMIN_DOMAIN),
		"function" => "theme_slideshow_category",
		'target' => 'slideshow_source',
		'process' => 'theme_slidershow_source_process',
		'prepare' => 'theme_slidershow_source_prepare',
		"type" => "multiselect"
	),
	array(
		"name" => __("SlideShow Height",THEME_ADMIN_DOMAIN),
		"desc" => __("Height of slider.",THEME_ADMIN_DOMAIN),
		"id" => "_slideshow_height",
		"min" => "100",
		"max" => "500",
		"step" => "1",
		"unit" => 'px',
		"default" => "396",
		"type" => "range"
	),
	array(
		"name" => __("SlideShow Number",THEME_ADMIN_DOMAIN),
		"desc" => __("Number of Slide items to display.",THEME_ADMIN_DOMAIN),
		"id" => "_slideshow_number",
		"min" => "0",
		"max" => "10",
		"step" => "1",
		"default" => "0",
		"type" => "range"
	),
	array(
		"name" => __("Disable slideshow control bar",THEME_ADMIN_DOMAIN),
		"desc" => __("If true, you'll globally disable your slideshow's control bar.",THEME_ADMIN_DOMAIN),
		"id" => "_slideshow_nav",
		"default" => "0",
		"type" => "toggle"
	),
	array(
		"name" => __("SlideShow Nav Items Number",THEME_ADMIN_DOMAIN),
		"desc" => __("Number of Slide nav items to display.",THEME_ADMIN_DOMAIN),
		"id" => "_slideshow_nav_number",
		"min" => "1",
		"max" => "6",
		"step" => "1",
		"default" => "4",
		"type" => "range"
	),
	array(
		"type" => "group_end",
	),
	array(
		"name" => __("Page Background Color",THEME_ADMIN_DOMAIN),
		"desc" => __("If you specify a color below, this will override the global configuration. Set transparent to disable this.",THEME_ADMIN_DOMAIN),
		"id" => "_page_background_color",
		"default" => "",
		"type" => "color"		
	),
	array(
		"name" => __("Footer Background Color",THEME_ADMIN_DOMAIN),
		"desc" => __("If you specify a color below, this will override the global configuration. Set transparent to disable this.",THEME_ADMIN_DOMAIN),
		"id" => "_footer_background_color",
		"default" => "",
		"type" => "color"		
	),
	array(
		"name" => __("Use Custom Image",THEME_ADMIN_DOMAIN),
		"id" => "_custom_background",
		"default" => 0,
		"type" => "toggle"
	),
	array(
		"type" => "group_start",
		"group" => "custom_image",
	),
	array(
		"name" => __("Custom Image",THEME_ADMIN_DOMAIN),
		"id" => "_page_image",
		"default" => "",
		"type" => "upload"
	),
	array(
		"name" => __("Position",THEME_ADMIN_DOMAIN),
		"desc" => "",
		"id" => "_page_position",
		"default" => 'center',
		"options" => array(
			"top left" => __('Top Left',THEME_ADMIN_DOMAIN),
			"top center" => __('Top Center',THEME_ADMIN_DOMAIN),
			"top right" => __('Top Right',THEME_ADMIN_DOMAIN),
			"center left" => __('Center Left',THEME_ADMIN_DOMAIN),
			"center center" => __('Center Center',THEME_ADMIN_DOMAIN),
			"center right" => __('Center Right',THEME_ADMIN_DOMAIN),
			"bottom left" => __('Bottom Left',THEME_ADMIN_DOMAIN),
			"bottom center" => __('Bottom Center',THEME_ADMIN_DOMAIN),
			"bottom right" => __('Bottom Right',THEME_ADMIN_DOMAIN),
		),
		"type" => "select",
	),
	array(
		"name" => __("Repeat",THEME_ADMIN_DOMAIN),
		"desc" => "",
		"id" => "_page_repeat",
		"default" => 'no-repeat',
		"options" => array(
			"no-repeat" => __('No Repeat',THEME_ADMIN_DOMAIN),
			"repeat" => __('Repeat',THEME_ADMIN_DOMAIN),
			"repeat-x" => __('Repeat-X',THEME_ADMIN_DOMAIN),
			"repeat-y" => __('Repeat-y',THEME_ADMIN_DOMAIN),
		),
		"type" => "select",
	),
	array(
		"name" => __("Custom Image",THEME_ADMIN_DOMAIN),
		"id" => "_footer_image",
		"default" => "",
		"type" => "upload"
	),
	array(
		"name" => __("Position",THEME_ADMIN_DOMAIN),
		"desc" => "",
		"id" => "_footer_position",
		"default" => 'center',
		"options" => array(
			"top left" => __('Top Left',THEME_ADMIN_DOMAIN),
			"top center" => __('Top Center',THEME_ADMIN_DOMAIN),
			"top right" => __('Top Right',THEME_ADMIN_DOMAIN),
			"center left" => __('Center Left',THEME_ADMIN_DOMAIN),
			"center center" => __('Center Center',THEME_ADMIN_DOMAIN),
			"center right" => __('Center Right',THEME_ADMIN_DOMAIN),
			"bottom left" => __('Bottom Left',THEME_ADMIN_DOMAIN),
			"bottom center" => __('Bottom Center',THEME_ADMIN_DOMAIN),
			"bottom right" => __('Bottom Right',THEME_ADMIN_DOMAIN),
		),
		"type" => "select",
	),
	array(
		"type" => "group_end",
	),
	array(
		"name" => __("Repeat",THEME_ADMIN_DOMAIN),
		"desc" => "",
		"id" => "_footer_repeat",
		"default" => 'no-repeat',
		"options" => array(
			"no-repeat" => __('No Repeat',THEME_ADMIN_DOMAIN),
			"repeat" => __('Repeat',THEME_ADMIN_DOMAIN),
			"repeat-x" => __('Repeat-X',THEME_ADMIN_DOMAIN),
			"repeat-y" => __('Repeat-y',THEME_ADMIN_DOMAIN),
		),
		"type" => "select",
	),
	array(
		"name" => __("Disable Breadcrumbs",THEME_ADMIN_DOMAIN),
		"desc" => __('Here you can disable breadcrumbs on a post by post basis. Alternatively you can globally disable breadcrumbs under the "General Settings" tab in your theme\'s option panel.',THEME_ADMIN_DOMAIN),
		"id" => "_disable_breadcrumb",
		"label" => "Check to disable breadcrumbs on this post",
		"default" => "",
		"type" => "tritoggle"
	),
	array(
		"name" => __("Custom Sidebar",THEME_ADMIN_DOMAIN),
		"desc" => __("Select the custom sidebar that you'd like to be displayed on this.<br />Note: you will need to first create a custom sidebar in your themes option panel before it will show up here.",THEME_ADMIN_DOMAIN),
		"id" => "_sidebar",
		"prompt" => __("Choose one..",THEME_ADMIN_DOMAIN),
		"default" => '',
		"options" => theme_get_sidebar_options(),
		"default" => theme_get_sidebar_default(),
		"type" => "select",
	),
);

new metaboxesGenerator($config,$options);
