<?php

	$logo_asset = 				$this->getTypedValue("design", "settings", "logo_asset");
	$image_background_color = 		$this->getTypedValue("design", "settings", "image_background_color");
	$image_caption_background_color = 	$this->getTypedValue("design", "settings", "image_caption_background_color");
	$image_caption_foreground_color = 	$this->getTypedValue("design", "settings", "image_caption_foreground_color");
	$image_caption_opacity_num = 		$this->getTypedValue("design", "settings", "image_caption_opacity_num");
	$album_aspect_ratio = 			$this->getTypedValue("design", "settings", "album_aspect_ratio");
	$album_arrows_color = 			$this->getTypedValue("design", "settings", "album_arrows_color");
	$album_controls_foreground_color = 	$this->getTypedValue("design", "settings", "album_controls_foreground_color");
	$album_controls_highlight_color = 	$this->getTypedValue("design", "settings", "album_controls_highlight_color");
	$thumbnail_background_color = 	$this->getTypedValue("design", "settings", "thumbnail_background_color");
	$thumbnail_arrows_color = 		$this->getTypedValue("design", "settings", "thumbnail_arrows_color");
	$thumbnail_height_num = 		$this->getTypedValue("design", "settings", "thumbnail_height_num");
	$thumbnail_width_num = 			$this->getTypedValue("design", "settings", "thumbnail_width_num");
	$cf_background_valid_color = 		$this->getTypedValue("design", "settings", "cf_background_valid_color");
	$cf_stroke_valid_color = 		$this->getTypedValue("design", "settings", "cf_stroke_valid_color");
	$cf_background_invalid_color = 	$this->getTypedValue("design", "settings", "cf_background_invalid_color");
	$cf_stroke_invalid_color = 		$this->getTypedValue("design", "settings", "cf_stroke_invalid_color");
	$cf_text_color = 				$this->getTypedValue("design", "settings", "cf_text_color");
	$cf_placeholder_color = 		$this->getTypedValue("design", "settings", "cf_placeholder_color");
	$link_background_color = 		$this->getTypedValue("design", "settings", "link_background_color");
	$link_text_color = 			$this->getTypedValue("design", "settings", "link_text_color");
	$link_background_over_color = 	$this->getTypedValue("design", "settings", "link_background_over_color");
	$link_text_over_color = 		$this->getTypedValue("design", "settings", "link_text_over_color");

	$body_width_num = 			$this->getTypedValue("design", "body", "body_width_num");
	$body_padding_num = 			$this->getTypedValue("design", "body", "body_padding_num");
	$body_color = 				$this->getTypedValue("design", "body", "body_color");
	$body_transparent_bool = 		$this->getTypedValue("design", "body", "body_transparent_bool");
	$body_shadow_width_num = 		$this->getTypedValue("design", "body", "body_shadow_width_num");
	$body_shadow_opacity_num = 		$this->getTypedValue("design", "body", "body_shadow_opacity_num");

	$background_top_color = 		$this->getTypedValue("design", "background", "background_top_color");
	$background_bottom_color = 		$this->getTypedValue("design", "background", "background_bottom_color");
	$background_asset = 			$this->getTypedValue("design", "background", "background_asset");
	$background_mode = 			$this->getTypedValue("design", "background", "background_mode");

	$navigation_font_asset = 		$this->getTypedValue("design", "fonts", "navigation_font_asset");
	$navigation_font_fallback = 		$this->getTypedValue("design", "fonts", "navigation_font_fallback");
	$navigation_size_num = 			$this->getTypedValue("design", "fonts", "navigation_size_num");
	$navigation_color = 			$this->getTypedValue("design", "fonts", "navigation_color");
	$navigation_highlight_color = 	$this->getTypedValue("design", "fonts", "navigation_highlight_color");
	$navigation_selected_color = 		$this->getTypedValue("design", "fonts", "navigation_selected_color");
	$heading_font_asset = 			$this->getTypedValue("design", "fonts", "heading_font_asset");
	$heading_font_fallback = 		$this->getTypedValue("design", "fonts", "heading_font_fallback");
	$heading_size_num = 			$this->getTypedValue("design", "fonts", "heading_size_num");
	$heading_color = 				$this->getTypedValue("design", "fonts", "heading_color");
	$description_font_asset = 		$this->getTypedValue("design", "fonts", "description_font_asset");
	$description_font_fallback = 		$this->getTypedValue("design", "fonts", "description_font_fallback");
	$description_size_num = 		$this->getTypedValue("design", "fonts", "description_size_num");
	$description_color = 			$this->getTypedValue("design", "fonts", "description_color");
	$description_leading_num = 		$this->getTypedValue("design", "fonts", "description_leading_num");

	$facebook_like_bool = 			$this->getTypedValue("setup", "web_services", "facebook_like_bool");
	$twitter_tweetme_bool = 		$this->getTypedValue("setup", "web_services", "twitter_tweetme_bool");
	$googleplusone_bool = 			$this->getTypedValue("setup", "web_services", "googleplusone_bool");

	$thumbnail_width_num = 			$thumbnail_width_num=="0" ? "auto" : $thumbnail_width_num."px";
	$body_color_css = 			$body_transparent_bool ? "transparent" : $body_color["css"];
	$body_shadow = 				"0,0,0,".($body_shadow_opacity_num/100);
	$navigation_font_family = 		$navigation_font_fallback=="sans" ? 'Arial, sans-serif' : '"Times New Roman", Times, serif';
	$navigation_font_family =		$this->unpackFont($navigation_font_asset, $navigation_font_family);
	$heading_font_family = 			$heading_font_fallback=="sans" ? 'Arial, sans-serif' : '"Times New Roman", Times, serif';
	$heading_font_family =			$this->unpackFont($heading_font_asset, $heading_font_family);
	$description_font_family = 		$description_font_fallback=="sans" ? 'Arial, sans-serif' : '"Times New Roman", Times, serif';
	$description_font_family =		$this->unpackFont($description_font_asset, $description_font_family);
	$use_social_bar = 			$facebook_like_bool || $twitter_tweetme_bool || $googleplusone_bool;
	$header_height = 				$logo_asset["height"];
		if ($header_height==0) 		$header_height = $navigation_size_num*3;
		if ($header_height<60) 		$header_height = 60;

?>