<?php
/**
 * A unique identifier is defined to store the options in the database and reference them from the theme.
 * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
 * If the identifier changes, it'll appear as if the options have been reset.
 */

function optionsframework_option_name() {

	// This gets the theme name from the stylesheet
	$themename = wp_get_theme();
	$themename = $themename->{'Name'};
	$themename = preg_replace("/\W/", "_", strtolower($themename) );

	$optionsframework_settings = get_option( 'optionsframework' );
	$optionsframework_settings["id"] = $themename;
	update_option( 'optionsframework', $optionsframework_settings );
}

/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the "id" fields, make sure to use all lowercase and no spaces.
 * 
 */

function optionsframework_options() {

	// VARIABLES
	$themename = wp_get_theme();
	$themename = $themename->{'Name'};
	$shortname = "of";
	$themeid = "_qs";
	
	
	// Background options
	$patterns_path = get_template_directory_uri() . '/framework/images/patterns/';
	$patterns_array = array(
	'none' => $patterns_path . 'none.jpg',
	'subtle-1' => $patterns_path . 'subtle-1.jpg',
	'subtle-2' => $patterns_path . 'subtle-2.jpg',
	'subtle-3' => $patterns_path . 'subtle-3.jpg',
	'subtle-4' => $patterns_path . 'subtle-4.jpg',
	'subtle-5' => $patterns_path . 'subtle-5.jpg',
	'subtle-6' => $patterns_path . 'subtle-6.jpg',
	'subtle-7' => $patterns_path . 'subtle-7.jpg',
	'subtle-8' => $patterns_path . 'subtle-8.jpg',
	'subtle-9' => $patterns_path . 'subtle-9.jpg',
	'subtle-10' => $patterns_path . 'subtle-10.jpg',
	'subtle-11' => $patterns_path . 'subtle-11.jpg',
	'subtle-12' => $patterns_path . 'subtle-12.jpg',
	'subtle-13' => $patterns_path . 'subtle-13.jpg',
	'subtle-14' => $patterns_path . 'subtle-14.jpg',
	'subtle-15' => $patterns_path . 'subtle-15.jpg',
	'subtle-16' => $patterns_path . 'subtle-16.jpg',
	'subtle-17' => $patterns_path . 'subtle-17.jpg',
	);
	
	// Cycle2 Options
	$cycle2_slidefx = array(
		'fade' => __( 'Fade', 'gabfire' ),
		'fadeout' => __( 'Fade Out', 'gabfire' ),
		'scrollHorz' => __( 'Scroll Horizontally', 'gabfire' ),
		'none' => __( 'None', 'gabfire' ),
	);
	
	// Typography Defaults
	$typography_defaults = array(
		'size' => '15px',
		'face' => 'georgia',
		'style' => 'bold',
		'color' => '#bada55' );
		
	// Typography Options
	$typography_options = array(
		'sizes' => array( '6','12','14','16','20' ),
		'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ),
		'styles' => array( 'normal' =>  __( 'Normal', 'gabfire' ),'bold' => __( 'Bold', 'gabfire' ) ),
		'color' => false
	);
	
	// Pull all the categories into an array
	$options_categories = array();
	$options_categories_obj = get_categories('hide_empty=0');
	foreach ($options_categories_obj as $category) {
		$options_categories[$category->cat_ID] = $category->cat_name;
	}
	
	// Pull all tags into an array
	$options_tags = array();
	$options_tags_obj = get_tags();
	foreach ( $options_tags_obj as $tag ) {
		$options_tags[$tag->term_id] = $tag->name;
	}
	
	// Pull all the pages into an array
	$options_pages = array();
	$options_pages_obj = get_pages('sort_column=post_parent,menu_order');
	$options_pages[''] = 'Select a page:';
	foreach ($options_pages_obj as $page) {
		$options_pages[$page->ID] = $page->post_title;
	}

	// If using image radio buttons, define a directory path
	$imagepath = get_template_directory_uri() . '/framework/admin/images/';
	
	//Default Arrays 
	$options_revealtype = array('OnMouseover', 'OnClick');
	$options_nr = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
	$options_inslider = array('disable' => __( 'Disable', 'gabfire' ), 'tagbased' => __( 'Tag Based', 'gabfire' ), 'sitewide' => __( 'Site Wide', 'gabfire' ));
	$options_sort = array("ASC" => __( 'asc', 'gabfire' ), "desc" => __( 'desc', 'gabfire' ));
	$options_order = array("id" => __( "id", 'gabfire' ), "name" => __( 'name', 'gabfire' ), "count" => __( 'count', 'gabfire' ));
	$options_logo = array('text' => __( 'Text Based Logo', 'gabfire' ), "image" => __( 'Image Based Logo', 'gabfire' ));
	$options_feaslide = array('scrollUp' => __( 'Scroll Up', 'gabfire' ), 'scrollDown' => __( 'Scroll Down', 'gabfire' ), 'scrollLeft' => __( 'Scroll Left', 'gabfire' ), 'scrollRight' => __( 'Scroll Right', 'gabfire' ), 'turnUp' => __( 'Turn Up', 'gabfire' ), 'turnDown' => __( 'Turn Down', 'gabfire' ), 'turnLeft' => __( 'Turn Left', 'gabfire' ), 'turnRight' => __( 'Turn Right', 'gabfire' ), 'fade' => __( 'Fade', 'gabfire' ));
	$options_feaslide_flex = array('fade' => __( 'Fade', 'gabfire' ), 'slide' => __( 'Slide', 'gabfire' ));

	//Stylesheets Reader
	$alt_stylesheet_path = get_stylesheet_directory() . '/styles/';
	$alt_stylesheets = array();
	
	if ( is_dir($alt_stylesheet_path) ) {
		if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) ) { 
			while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false ) {
				if(stristr($alt_stylesheet_file, ".css") !== false) {
					$alt_stylesheets[] = $alt_stylesheet_file;
				}
			} 
		}
	}

	$options = array();
		
		$options[] = array( "name" => __( 'General Settings', 'gabfire' ),
							"type" => "heading");
				
				$options[] = array( "name" => __( 'Theme Stylesheet', 'gabfire' ),
									"desc" => __( 'Select your themes alternative color scheme (i.e., active style).', 'gabfire' ),
									"id" => $shortname."_alt_stylesheet",
									"std" => 1,
									"type" => "select",
									"options" => $alt_stylesheets);
					
				$options[] = array( "name" => __( 'Logo Type', 'gabfire' ),
									"desc" => __( 'If text-based logo is selected, set sitename and tagline on WordPress settings page.', 'gabfire' ),
									"id" => $shortname."_logo_type",
									"std" => "Text Based Logo",
									"type" => "select",
									"options" => $options_logo); 

				$options[] = array( "name" => __( 'Custom Logo', 'gabfire' ),
									"desc" => __( 'If image-based logo is selected, upload a logo for your theme, or specify the image address of your online logo. (http://yoursite.com/logo.png)', 'gabfire' ),
									"id" => $shortname.$themeid."_logo",
									"std" => "",
									"type" => "upload");
									
				$options[] = array( "name" => __( 'Logo Padding Top', 'gabfire' ),
									"desc" => __( 'Set a padding value between logo and top line.', 'gabfire' ),
									"id" => $shortname.$themeid."_padding_top",
									"std" => "40",
									"class" => "mini",
									"type" => "text");	

				$options[] = array( "name" => __( 'Logo Padding Bottom', 'gabfire' ),
									"desc" => __( 'Set a padding value between logo and bottom line.', 'gabfire' ),
									"id" => $shortname.$themeid."_padding_bottom",
									"std" => "0",
									"class" => "mini",
									"type" => "text");
									
				$options[] = array( "name" => __( 'Logo Padding Left', 'gabfire' ),
									"desc" => __( 'Set a padding value between logo and left line.', 'gabfire' ),
									"id" => $shortname.$themeid."_padding_left",
									"std" => "15",
									"class" => "mini",
									"type" => "text");
									
				$options[] = array( "name" => __( 'Custom Favicon', 'gabfire' ),
									"desc" => __( 'Upload a 16px x 16px Png/Gif image that will represent your website\'s favicon.', 'gabfire' ),
									"id" => $shortname."_custom_favicon",
									"std" => "",
									"type" => "upload"); 
									
		$options[] = array( "name" => __( 'Categories', 'gabfire' ),
							"type" => "heading");
							
				$options[] = array( "name" => __( 'Do not duplicate posts', 'gabfire' ),
									"desc" => __( 'No matter what categories are selected for front page sections, if a post is displayed once do not duplicate it on front page', 'gabfire' ),
									"id" => $shortname."_dnd",
									"std" => 1,
									"type" => "checkbox");
									
				$options[] = array( "name" => __('Featured slider', 'gabfire' ),
									"desc" => __('Select a base query type to determine how this content area is populated', 'gabfire' ),
									"id" => $shortname.$themeid.'_featype',
									"std" => "catbased",
									"type" => "images",
									"options" => array(
										"catbased" => $imagepath . 'fea-category.gif',
										"cfbased" => $imagepath . 'fea-customfield.gif',
										"mrecent" => $imagepath . 'fea-recent.gif',
										"tagbased" => $imagepath . 'fea-tag.gif'));
										
				$options[] = array(
					"desc" => __('If base query type is Category or Tag-based, please identify the category or tag. </br>If base query type is Custom Field, posts which are marked as featured (checkbox labeled as <strong>Is Featured</strong> is enabled on <strong>Add/Edit Post</strong> screen) will be displayed.', 'gabfire' ),
					"type" => 'info');							

				$options[] = array( "name" => __( 'Featured section', 'gabfire' ),
									"desc" => __( 'Select a category for featured section.', 'gabfire' ),
									"id" => $shortname.$themeid."_catfea",
									"std" => "1",
									"type" => "select",
									"options" => $options_categories);
									
				$options[] = array( "desc" => __( 'Display posts assigned this tag to be listed on featured section. <br/> [Note: Category will be disregarded if a tag name is filled in].', 'gabfire' ),
									"id" => $shortname.$themeid."_tagfea",
									"std" => "",
									"class" => "mini",
									"type" => "text"); 
			
				$options[] = array( "desc" => __( 'Display most recent post entries on featured section instead of category or tag.', 'gabfire' ),
									"id" => $shortname.$themeid."_recfea",
									"std" => 0,
									"type" => "checkbox");		

				$options[] = array( "desc" => __( 'Number of posts to display on featured section.', 'gabfire' ),
									"id" => $shortname.$themeid."_nrfea",
									"std" => "5",
									"class" => "mini",
									"type" => "select",
									"options" => $options_nr);	
									
				$options[] = array( "name" => __( 'Top Stories', 'gabfire' ),
									"desc" => __( 'Set a custom title for Top Stories Section.', 'gabfire' ),
									"id" => $shortname.$themeid."_title1",
									"std" => "Top Stories",
									"class" => "mini",
									"type" => "text"); 
				
				$options[] = array(	"desc" => __( 'Select a category for top stories 1/4.', 'gabfire' ),
									"id" => $shortname.$themeid."_cat1",
									"type" => "select",
									"std" => "1",
									"options" => $options_categories);
									
				$options[] = array( "desc" => __( 'Number of posts to display on top stories 1/4.', 'gabfire' ),
									"id" => $shortname.$themeid."_nr1",
									"std" => "1",
									"class" => "mini",
									"type" => "select",
									"options" => $options_nr);	
									
				$options[] = array( "desc" => __( 'Select a category for top stories 2/4.', 'gabfire' ),
									"id" => $shortname.$themeid."_cat2",
									"type" => "select",
									"std" => "1",
									"options" => $options_categories);

				$options[] = array( "desc" => __( 'Number of posts to display on top stories 2/4.', 'gabfire' ),
									"id" => $shortname.$themeid."_nr2",
									"std" => "1",
									"class" => "mini",
									"type" => "select",
									"options" => $options_nr);							
									
				$options[] = array( "desc" => __( 'Select a category for top stories 3/4.', 'gabfire' ),
									"id" => $shortname.$themeid."_cat3",
									"type" => "select",
									"std" => "1",
									"options" => $options_categories);
									
				$options[] = array( "desc" => __( 'Number of posts to display on top stories 3/4.', 'gabfire' ),
									"id" => $shortname.$themeid."_nr3",
									"std" => "1",
									"class" => "mini",
									"type" => "select",
									"options" => $options_nr);							
									
				$options[] = array( "desc" => __( 'Select a category for top stories 4/4.', 'gabfire' ),
									"id" => $shortname.$themeid."_cat4",
									"type" => "select",
									"std" => "1",
									"options" => $options_categories);			

				$options[] = array( "desc" => __( 'Number of posts to display on top stories 4/4.', 'gabfire' ),
									"id" => $shortname.$themeid."_nr4",
									"std" => "1",
									"class" => "mini",
									"type" => "select",
									"options" => $options_nr);	
									
				$options[] = array( "name" => __('Latest News', 'gabfire' ),
									"desc" => __('Select a base query type to determine how this content area is populated', 'gabfire' ),
									"id" => $shortname.$themeid.'_latestnews',
									"std" => "catbased",
									"type" => "images",
									"options" => array(
										"catbased" => $imagepath . 'fea-category.gif',
										"mrecent" => $imagepath . 'fea-recent.gif',
										"tagbased" => $imagepath . 'fea-tag.gif'));
										
				$options[] = array(
					"desc" => __( 'If base query type is Category or Tag-based, please identify the category or tag. </br>If base query type is Custom Field, posts which are marked as featured (checkbox labeled as <strong>Is Featured</strong> is enabled on <strong>Add/Edit Post</strong> screen) will be displayed.', 'gabfire' ),
					"type" => 'info');									
									
									
				$options[] = array( "desc" => __( 'Set a custom title for Latest News Section.', 'gabfire' ),
									"id" => $shortname.$themeid."_title2",
									"std" => "Latest News",
									"class" => "mini",
									"type" => "text"); 
					
				$options[] = array(	"desc" => __( 'Select a category for latest news section.', 'gabfire' ),
									"id" => $shortname.$themeid."_cat5",
									"type" => "select",
									"std" => "1",
									"options" => $options_categories);
									
				$options[] = array( "desc" => __( 'Display posts assigned this tag to be listed under latest news section. <br/> [Note: Category will be disregarded if a tag name is filled in].', 'gabfire' ),
									"id" => $shortname.$themeid."_tag5",
									"class" => "mini",
									"type" => "text"); 	

				$options[] = array( "desc" => __( 'Number of posts to display on latest news section.', 'gabfire' ),
									"id" => $shortname.$themeid."_nr5",
									"std" => "1",
									"class" => "mini",
									"type" => "select",
									"options" => $options_nr);	

		$options[] = array( "name" => __( 'Sliders', 'gabfire' ),
						"type" => "heading");
										
					$options[] = array( "name" => __( 'Featured Slider', 'gabfire' ),
										"desc" => __( 'Slide function', 'gabfire' ),
										"id" => $shortname.$themeid."_sfunc",
										"std" => "fade",
										"type" => "select",
										"options" => $cycle2_slidefx);
							
					$options[] = array( "desc" => __( 'Auto rotation speed. Slide to next slide in X seconds', 'gabfire' ),
										"id" => $shortname.$themeid."_featimeout",
										"std" => 15,
										"type" => "select",
										"class" => "mini",
										"options" => $options_nr);
										
					$options[] = array( "desc" => __( 'The transition speed (in seconds)', 'gabfire' ),
										"id" => $shortname.$themeid."_feaspeed",
										"std" => 1,
										"type" => "select",
										"class" => "mini",
										"options" => $options_nr);
										
			
				$options[] = array( "name" => __( 'Inner-Page Slider', 'gabfire' ),
									"desc" => __( 'Automatically create slideshow of uploaded photos in post entries to be displayed below post title. [Note: Select options include displaying slider site-wide, tag-based, or to disable completely].', 'gabfire' ),
									"id" => $shortname."_inslider",
									"type" => "select",
									"class" => "mini",
									"options" => $options_inslider);

				$options[] = array( "desc" => __( 'If tag-based option is selected, display posts assigned this tag to be shown in inner-page slider. <br/> [Note: Posts with multiple image attachments and tagged with this key will display within slider].', 'gabfire' ),
									"id" => $shortname."_inslider_tag",
									"class" => "mini",
									"type" => "text"); 
									
				$options[] = array( "desc" => __( 'Enable auto rotation for innerpage slider.', 'gabfire' ),
									"id" => $shortname.$themeid."_inner_rotate",
									"std" => 0,
									"type" => "checkbox");	
									
				$options[] = array( "desc" => __( '(If auto rotate enabled) define pause time between 2 slides. [in seconds]', 'gabfire' ),
									"id" => $shortname.$themeid."_inner_pause",
									"std" => 5,
									"class" => "mini",
									"type" => "text");
									
		$options[] = array( "name" => __( 'Navigation', 'gabfire' ),
						"type" => "heading");			

				$options[] = array( "name" => __( 'Sort Categories', 'gabfire' ),
									"desc" => __( 'Display categories in ascending or descending order', 'gabfire' ),
									"id" => $shortname.'_sort_cats',
									"type" => 'select',
									"class" => 'mini',
									"options" => $options_sort);

				$options[] = array( "name" => __( 'Order Categories', 'gabfire' ),
									"desc" => __( 'Display categories in alphabetical order, by category ID, or by the count of posts', 'gabfire' ),
									"id" => $shortname.'_order_cats',
									"std" => 'name',
									"type" => 'select',
									"class" => 'mini',
									"options" => $options_order);
									
				$options[] = array( "name" => __( 'Exclude Categories', 'gabfire' ),
									"desc" => __( 'ID number of cat(s) to exclude from navigation (eg 1,2,3,4) <a href="http://www.gabfirethemes.com/how-to-check-category-ids/" target="_blank">How check category/page ID</a>', 'gabfire' ),
									"id" => $shortname.'_ex_cats',
									"class" => 'mini',
									"type" => 'text'); 
									
				$options[] = array( "name" => __( 'Exclude Pages', 'gabfire' ),
									"desc" => __( 'ID number of page(s) to exclude from navigation (eg 1,2,3,4) <a href="http://www.gabfirethemes.com/how-to-check-category-ids/" target="_blank">How check category/page ID</a>', 'gabfire' ),
									"id" => $shortname.'_ex_pages',
									"class" => 'mini',
									"type" => 'text');
									
		$options[] = array( "name" => __( 'IMAGE HANDLING', 'gabfire' ),
						"type" => "heading");

				$options[] = array( "name" => __( 'Featured Image Post Display', 'gabfire' ),
									"desc" => __( 'Auto resize and display featured image on single post - above entry.', 'gabfire' ),
									"id" => $shortname."_autoimage",
									"std" => 1,
									"type" => "checkbox");					
					
				$options[] = array( "name" => __( 'Default No Image Found photo', 'gabfire' ),
									"desc" => __( 'Enable on featured slider', 'gabfire' ),
									"id" => $shortname.$themeid."_enfea1",
									"std" => 1,
									"type" => "checkbox");

				$options[] = array( "desc" => __( 'Enable on top stories 1x4', 'gabfire' ),
									"id" => $shortname.$themeid."_enfea2",
									"std" => 1,
									"type" => "checkbox");
									
				$options[] = array( "desc" => __( 'Enable on top stories 2x4', 'gabfire' ),
									"id" => $shortname.$themeid."_enfea3",
									"std" => 1,
									"type" => "checkbox");
									
				$options[] = array( "desc" => __( 'Enable on top stories 3x4', 'gabfire' ),
									"id" => $shortname.$themeid."_enfea4",
									"std" => 1,
									"type" => "checkbox");
									
				$options[] = array( "desc" => __( 'Enable on top stories 4x4', 'gabfire' ),
									"id" => $shortname.$themeid."_enfea5",
									"std" => 1,
									"type" => "checkbox");
									
				$options[] = array( "desc" => __( 'Enable on latest news section', 'gabfire' ),
									"id" => $shortname.$themeid."_enfea6",
									"std" => 0,
									"type" => "checkbox");
									
		$options[] = array( "name" => __( 'Ad Management', 'gabfire' ),
						"type" => "heading");							
									
				$options[] = array( "name" => __( '468 (or 728) Header', 'gabfire' ),
									"desc" => __( 'Ad code for header', 'gabfire' ),
									"id" => $shortname.$themeid."_ad1",
									"std" => "",
									"type" => "textarea"); 
									
				$options[] = array( "name" => __( '125px ad #1', 'gabfire' ),
									"desc" => __( 'Upload image.', 'gabfire' ),
									"id" => $shortname.$themeid."_125x1i",
									"std" => "",
									"type" => "upload"); 
									
				$options[] = array( "name" => __( 'Link for 125px ad #1', 'gabfire' ),
									"desc" => __( 'Enter a link where to redirect when banner is clicked.', 'gabfire' ),
									"id" => $shortname.$themeid."_125x1l",
									"std" => "http://",
									"type" => "text"); 
									
				$options[] = array( "name" => __( '125px ad #2', 'gabfire' ),
									"desc" => __( 'Upload image.', 'gabfire' ),
									"id" => $shortname.$themeid."_125x2i",
									"std" => "",
									"type" => "upload"); 
									
				$options[] = array( "name" => __( 'Link for 125px ad #2', 'gabfire' ),
									"desc" => __( 'Enter a link where to redirect when banner is clicked.', 'gabfire' ),
									"id" => $shortname.$themeid."_125x2l",
									"std" => "http://",
									"type" => "text"); 

				$options[] = array( "name" => __( '125px ad #3', 'gabfire' ),
									"desc" => __( 'Upload image.', 'gabfire' ),
									"id" => $shortname.$themeid."_125x3i",
									"std" => "",
									"type" => "upload"); 
									
				$options[] = array( "name" => __( 'Link for 125px ad #3', 'gabfire' ),
									"desc" => __( 'Enter a link where to redirect when banner is clicked.', 'gabfire' ),
									"id" => $shortname.$themeid."_125x3l",
									"std" => "http://",
									"type" => "text"); 

				$options[] = array( "name" => __( '125px ad #4', 'gabfire' ),
									"desc" => __( 'Upload image.', 'gabfire' ),
									"id" => $shortname.$themeid."_125x4i",
									"std" => "",
									"type" => "upload"); 
									
				$options[] = array( "name" => __( 'Link for 125px ad #4', 'gabfire' ),
									"desc" => __( 'Enter a link where to redirect when banner is clicked.', 'gabfire' ),
									"id" => $shortname.$themeid."_125x4l",
									"std" => "http://",
									"type" => "text"); 	

		$options[] = array( "name" => __( 'Footer Options', 'gabfire' ),
						"type" => "heading");

				$options[] = array( "name" => __( 'Enable Custom Footer (Left)', 'gabfire' ),
									"desc" => __( 'Activate to add the custom text below to the theme footer.', 'gabfire' ),
									"id" => $shortname.$themeid."_fleft",
									"std" => 0,
									"type" => "checkbox");    

				$options[] = array( "name" => __( 'Custom Text (Left)', 'gabfire' ),
									"desc" => __( 'Custom HTML and Text that will appear in the footer of your theme.', 'gabfire' ),
									"id" => $shortname.$themeid."_fleft_text",
									"std" => "",
									"type" => "textarea");
										
				$options[] = array( "name" => __( 'Enable Custom Footer (Right)', 'gabfire' ),
									"desc" => __( 'Activate to add the custom text below to the theme footer.', 'gabfire' ),
									"id" => $shortname.$themeid."_fright",
									"std" => 0,
									"type" => "checkbox");    

				$options[] = array( "name" => __( 'Custom Text (Right)', 'gabfire' ),
									"desc" => __( 'Custom HTML and Text that will appear in the footer of your theme.', 'gabfire' ),
									"id" => $shortname.$themeid."_fright_text",
									"std" => "",
									"type" => "textarea");
									
		$options[] = array( "name" => __( 'Miscellaneous', 'gabfire' ),
							"type" => "heading");	
							
				$options[] = array( "name" => __( 'Widget Map', 'gabfire' ),
									"desc" => __( 'Display the location of widgets on front page. After reviewing widget locations be sure to disable this option.', 'gabfire' ),
									"id" => $shortname."_widget",
									"std" => 0,
									"type" => "checkbox");
										
		$options[] = array( "name" => __( 'Custom Styling', 'gabfire' ),
							"type" => "heading");
									
				$options[] = array( "name" => __( 'Custom CSS', 'gabfire' ),
									"desc" => __( 'Quickly add some CSS to your theme by adding it to this block.', 'gabfire' ),
									"id" => $shortname."_custom_css",
									"std" => "",
									"type" => "textarea");
	return $options;
}