<?php

// Default settings
function doThemeSetup() {
	global $pagenow;
	if ( is_admin() && isset($_GET['activated'] ) && $pagenow == 'themes.php' ) {
		$defaults['twitter_url'] = 'Twitter Account Url';
		$defaults['facebook_url'] = 'Facebook Url';
		$defaults['rss_url'] = 'Rss Url';
		$defaults['twitter_acc'] = 'Twitter Account Name';
		$defaults['Flickr_url'] = 'Flickr Url';
		$defaults['gplus_url'] = 'Google Plus Url';
		$defaults['posts-btns'] = '1';
		$defaults['authorinfo'] = '1';
		$defaults['related'] = '1';
		$defaults['cp_bigcatsN'] = '1';
		$defaults['cp_bigmoreitems'] = '3';
		$defaults['cp_leftcatsN'] = '2';
		$defaults['cp_rightcatsN'] = '2';
		$defaults['cp_moreitems'] = '3';
		$defaults['adsensecode'] = 'Adsense Code Here';
		$defaults['ads_img'] = 'Adv Img Url Here';
		$defaults['logo'] = 'logo.png';
		$defaults['video_url'] = 'http://www.youtube.com/embed/rkn15tmxZa0';
		$defaults['ads_img'] = 'http://www.salahelimam.com/wp-content/uploads/2012/05/toot.png';
		$defaults['ads_title'] = 'توت قريبا';
		$defaults['ads_url'] = 'http://tootcms.com/';
		
		$defaults['installed'] = 1;
		update_option('Webcolors', $defaults);
	}
}

// Run setup if theme was never installed
$Webcolors = get_option('Webcolors');
if ($Webcolors['installed']!= 1) {
	doThemeSetup();
}

?>