<?php
if (! function_exists("theme_footer_column_option")) {
	function theme_footer_column_option($value, $default) {
		
		echo '<script type="text/javascript" src="' . THEME_ADMIN_ASSETS_URI . '/js/theme-footer-column.js"></script>';
		echo '<div class="theme-footer-columns">';
		echo '<div>';
		echo '<a href="#" rel="1"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/1.png" /></a>';
		echo '<a href="#" rel="2"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/2.png" /></a>';
		echo '<a href="#" rel="3"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/3.png" /></a>';
		echo '<a href="#" rel="4"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/4.png" /></a>';
		echo '<a href="#" rel="5"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/5.png" /></a>';
		echo '<a href="#" rel="6"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/6.png" /></a>';
		echo '</div><div>';
		echo '<a href="#" rel="half_sub_half"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/half_sub_half.png" /></a>';
		echo '<a href="#"href="#"rel="half_sub_third"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/half_sub_third.png" /></a>';
		echo '<a href="#" rel="third_sub_third"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/third_sub_third.png" /></a>';
		echo '<a href="#" rel="third_sub_fourth"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/third_sub_fourth.png" /></a>';
		echo '<a href="#" rel="sub_half_sub_third"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/sub_half_sub_third.png" /></a>';
		echo '</div><div>';
		echo '<a href="#" rel="sub_half_half"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/sub_half_half.png" /></a>';
		echo '<a href="#" rel="sub_third_half"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/sub_third_half.png" /></a>';
		echo '<a href="#" rel="sub_third_third"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/sub_third_third.png" /></a>';
		echo '<a href="#" rel="sub_fourth_third"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/sub_fourth_third.png" /></a>';
		echo '<a href="#" rel="sub_third_sub_half"><img src="' . THEME_ADMIN_ASSETS_URI . '/images/footer_column/sub_third_sub_half.png" /></a>';
		echo '</div>';
		echo '</div>';
		echo '<input type="hidden" value="' . $default . '" name="' . $value['id'] . '" id="' . $value['id'] . '"/>';
	}
}
if (! function_exists("theme_footer_right_area_html")) {
	function theme_footer_right_area_html($value,$default)
	{
		$sites = array(
			'AIM','Apple','Bebo','Blogger','Brightkite','Cargo','Delicious','Designfloat',
			'Designmoo','Deviantart','Digg','Dopplr','Dribbble','Email','Ember','Evernote',
			'Facebook','Flickr','Forrst','Friendfeed','Gamespot','Google','GoogleVoice','GoogleWave',
			'GoogleTalk','Gowalla','Grooveshark','iLike','lastFm','LinkedIn','Mixx','MobileMe',
			'Mynameise','MySpace','Netvibes','Newsvine','Openid','Orkut','Pandora','Paypal','Picasa',
			'Playstation','Plurk','Posterous','qik','Readernaut','Reddit','Roboto','RSS','Sharethis',
			'Skype','StumbleUpon','Technorati','Tumblr','Twitter','Viddler','Vimeo','Virb','Wordpress',
			'Xing','Yahoo','YahooBuzz','Yelp','YouTube','Zootool'
		);
		echo '<textarea class="code" type="textarea" name="footer_right_area_html" rows="3" id="footer_right_area_html" style="margin-bottom:10px">'.stripcslashes($default).'</textarea>';
		echo '<br/>';
		echo '<select id="social_icon" style="margin-right:10px">';
		foreach ($sites as $site) {
			echo '<option value="'.THEME_IMAGES.'/social/komodomedia_32/'.strtolower($site).'_32.png" title="'.THEME_IMAGES.'/social/komodomedia_16/'.strtolower($site).'_16.png"/>';
			echo $site;
			echo "</option>"; 
		}

		echo '</select>';
		echo '<input type="button" id="insert_icon" value="Insert Social Icon"/>';
	}
}
$options = array(
	array(
		"name" => __("Footer",THEME_ADMIN_DOMAIN),
		"type" => "title"
	),
	array(
		"name" => __("Footer",THEME_ADMIN_DOMAIN),
		"type" => "start"
	),
		array(
			"name" => __("Sticky Footer",THEME_ADMIN_DOMAIN),
			"desc" => __("If you want display footer on the bottom of the screen, turn on the button.",THEME_ADMIN_DOMAIN),
			"id" => "stricky_footer",
			"default" => false,
			"type" => "toggle"
		),
		array(
			"name" => __("Footer",THEME_ADMIN_DOMAIN),
			"desc" => __("If you don't want display footer, turn off the button.",THEME_ADMIN_DOMAIN),
			"id" => "footer",
			"default" => true,
			"type" => "toggle"
		),
		array(
			"name" => __("Sub Footer",THEME_ADMIN_DOMAIN),
			"desc" => __("If you don't want display sub footer, turn off the button.",THEME_ADMIN_DOMAIN),
			"id" => "sub_footer",
			"default" => true,
			"type" => "toggle"
		),
		array(
			"name" => __("Footer Column layout",THEME_ADMIN_DOMAIN),
			"desc" => __("choose the layout of footer columns you'd like the footer widgets displayed in",THEME_ADMIN_DOMAIN),
			"id" => "column",
			"function" => "theme_footer_column_option",
			"default" => "4",
			"type" => "custom"
		),
		array(
			"name" => __("Copyright Footer Text",THEME_ADMIN_DOMAIN),
			"desc" => __("Enter the copyright text that you'd like to display in the footer",THEME_ADMIN_DOMAIN),
			"id" => "copyright",
			"default" => "Copyright &copy; 2010 MyCompany.com. All Rights Reserved",
			"rows" => 3,
			"type" => "textarea"
		),
		array(
			"name" => __("Sub Footer Area Type",THEME_ADMIN_DOMAIN),
			"desc" => "",
			"id" => "footer_right_area_type",
			"default" => 'menu',
			"options" => array(
				"menu" => __('CopyRight & Menu',THEME_ADMIN_DOMAIN),
				"html" => __('CopyRight & Html',THEME_ADMIN_DOMAIN),
				"default" => __('Only Copy Right',THEME_ADMIN_DOMAIN),
				"widget" => __('Widget Area',THEME_ADMIN_DOMAIN),
			),
			"type" => "select",
		),
		array(
			"name" => __("Sub Footer Right Area Html code",THEME_ADMIN_DOMAIN),
			"desc" => '',
			"id" => "footer_right_area_html",
			"function" => "theme_footer_right_area_html",
			"default"=>null,
			"type" => "custom"
		),
	array(
		"type" => "end"
	),
);
return array(
	'auto' => true,
	'name' => 'footer',
	'options' => $options
);
