<?php

/**
 * 
 *
 * @version $Id$
 * @copyright 2003 
 **/


		global $rhc_plugin;
		
		$i = count($t);
		//--  -----------------------		
		//$i++;

		$t[$i]=(object)array();
		$t[$i]->id 			= 'rhc'; 
		$t[$i]->open 			= false; 
		$t[$i]->label 		= __('Countdown','rhc-cd');
		$t[$i]->right_label	= __('Countdown','rhc-cd');
		$t[$i]->page_title	= __('Countdown','rhc-cd');
		$t[$i]->theme_option = true;
		$t[$i]->plugin_option = true;		
		$t[$i]->options = array();

		if( $main_option ):

		$t[$i]->options[]=(object)array(
				'type' 			=> 'subtitle',
				'label'			=> __('Template options','rhc-cd')
			);
		
		$t[$i]->options[]=(object)array(
				'id'			=> $prefix.'auto_template',
				'type' 			=> 'yesno',
				'label'			=> __('Auto template','rhc-cd'),
				'description' => __('Choose yes to automatically add the shortcode to all event pages.  You still need to turn On the countdown, in the "Layout Options" metabox when editing an event.  Choose "No", if you will manually add the shortcode to the event template.','rhc-cd'),
				'default'	=> RHCCD_AUTO_TEMPLATE_DEFAULT,
				'save_option'=>true,
				'load_option'=>true
			);
				
		$t[$i]->options[]=(object)array(
				'type'=>'clear'
			);

		endif;

		$t[$i]->options[]=(object)array(
				'type' 			=> 'subtitle',
				'label'			=> __('Count to start','rhc-cd')
			);	

		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'title',
				'type'	=> 'text',
				'label'	=> __('Title','rhc-cd'),
				'description' => __( 'Leave empty for no title.  If set, a title is displayed above the counter.', 'rhc-cd'),
				'el_properties' => array( 'class'=>'widefat' ),
				'default'=> '',
				'save_option'=>true,
				'load_option'=>true
			);	

		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'message',
				'type'	=> 'text',
				'label'	=> __('End message','rhc-cd'),
				'description' => __( 'Leave empty for no message.  If set, the message is displayed when counter reaches zero.  This applies if the counter is set to count to start of event.', 'rhc-cd'),
				'el_properties' => array( 'class'=>'widefat' ),
				'default'=> '',
				'save_option'=>true,
				'load_option'=>true
			);	

		$t[$i]->options[]=(object)array(
				'type' 			=> 'subtitle',
				'label'			=> __('Count to end','rhc-cd')
			);	
		
		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'title_end',
				'type'	=> 'text',
				'label'	=> __('Title','rhc-cd'),
				'description' => __( 'Leave empty for no title.  If set, a title is displayed above the counter.', 'rhc-cd'),
				'el_properties' => array( 'class'=>'widefat' ),				
				'default'=> '',
				'save_option'=>true,
				'load_option'=>true
			);	

		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'message_end',
				'type'	=> 'text',
				'label'	=> __('End message','rhc-cd'),
				'description' => __( 'Leave empty for no message.  If set, the message is displayed when counter reaches zero.  This applies if the counter is set to count to end of event.', 'rhc-cd'),
				'el_properties' => array( 'class'=>'widefat' ),
				'default'=> '',
				'save_option'=>true,
				'load_option'=>true
			);	

		$t[$i]->options[]=(object)array(
				'type'=>'clear'
			);
		
		$t[$i]->options[]=(object)array(
				'type' 			=> 'subtitle',
				'label'			=> __('Design options','rhc-cd')
			);	


		$t[$i]->options[]=(object)array(
				'id'		=> $prefix.'css_edit',
				'label'		=> __('Design source','rhc-cd'),
				'type'		=> 'select',
				'default'	=> '0',
				'options'	=> array(
					'0'	=> __('Options','rhc-cd'),
					'1'	=> __('CSS Editor','rhc-cd')
				),
				'hidegroup'	=> '#rhccd_options',
				'hidevalues' => array('0'),
				'el_properties'	=> array(),
				'save_option'=>true,
				'load_option'=>true
			);

		$t[$i]->options[] = (object)array(
				'id'	=> $prefix.'options',
				'type'=>'div_start'
			);

		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'max_days',
				'type'	=> 'range',
				'label'	=> __('Max days','rhc-cd'),
				'min'	=> 1,
				'max'	=> 9999,
				'step'	=> 1,
				'default'=> 365,
				'save_option'=>true,
				'load_option'=>true
			);	

		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'width',
				'type'	=> 'range',
				'label'	=> __('Width (%)','rhc-cd'),
				'min'	=> 0,
				'max'	=> 100,
				'step'	=> 1,
				'default'=> 98,
				'save_option'=>true,
				'load_option'=>true
			);	
		
		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'height',
				'type'	=> 'range',
				'label'	=> __('Height (%)','rhc-cd'),
				'min'	=> 0,
				'max'	=> 100,
				'step'	=> 1,
				'default'=> 100,
				'save_option'=>true,
				'load_option'=>true
			);	
		
		$t[$i]->options[]=(object)array(
				'id'		=> $prefix.'bgcolor',
				'label'		=> __('Passive color','rhc-cd'),
				'type'		=> 'farbtastic',
				'default'	=> '#cecece',
				'el_properties'	=> array(),
				'save_option'=>true,
				'load_option'=>true
			);		

		$t[$i]->options[]=(object)array(
				'type'=>'clear'
			);
			
		$t[$i]->options[]=(object)array(
				'id'		=> $prefix.'fgcolor',
				'label'		=> __('Active color','rhc-cd'),
				'type'		=> 'farbtastic',
				'default'	=> '#66CC66',
				'el_properties'	=> array(),
				'save_option'=>true,
				'load_option'=>true
			);		

		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'thickness',
				'type'	=> 'range',
				'label'	=> __('Thickness','rhc-cd'),
				'min'	=> 0.1,
				'max'	=> 0.9,
				'step'	=> 0.1,
				'default'=> 0.3,
				'save_option'=>true,
				'load_option'=>true
			);	
			
		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'adjust_w',
				'type'	=> 'range',
				'label'	=> __('Adjust horizontal (adjust_w)','rhc-cd'),
				'min'	=> -200,
				'max'	=> 200,
				'step'	=> 1,
				'default'=> 3,
				'save_option'=>true,
				'load_option'=>true
			);		
			
		$t[$i]->options[]=(object)array(
				'id'	=> $prefix.'adjust_h',
				'type'	=> 'range',
				'label'	=> __('Adjust vertical (adjust_v)','rhc-cd'),
				'min'	=> -200,
				'max'	=> 200,
				'step'	=> 1,
				'default'=> 3,
				'save_option'=>true,
				'load_option'=>true
			);										

		$t[$i]->options[]=(object)array('type'	=> 'div_end');
		
		$t[$i]->options[]=(object)array(
				'type'=>'clear'
			);
			 			
		$t[$i]->options[]=(object)array(
				'type'	=> 'submit',
				'label'	=> __('Save','rhc-cd'),
				'class' => 'button-primary'
			);	

?>