<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$language}" lang="{$language}">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="Content-Language" content="{$language}" />
	{php}
		$keyword=$zbp->Config('sf_skin2')->keyword;
		$description=$zbp->Config('sf_skin2')->description;
	{/php}
	{if $type=='article'}
	  <title>{$title}-{$article.Category.Name}-{$name}</title>
	  {php}
		$aryTags = array();
		foreach($article->Tags as $key){
		  $aryTags[] = $key->Name;
		}
		if(count($aryTags)>0) $keyword = implode(',',$aryTags);
		$description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),135)).'...');
	  {/php}
	  <meta name="keywords" content="{if isset($keyword) && trim($keyword)!='' }{$keyword}{/if}"/>
	  <meta name="description" content="{$description}"/>
	  <meta name="author" content="{$article.Author.StaticName}">
	{elseif $type=='page'}
	  <title>{$title}-{$name}{if $subname!=''}-{$subname}{/if}</title>
	  <meta name="keywords" content="{if isset($keyword) && trim($keyword)!='' }{$keyword}{/if}"/>
	  {php}
		$description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),135)).'...');
	  {/php}
	  <meta name="description" content="{$description}"/>
	  <meta name="author" content="{$article.Author.StaticName}">
	{elseif $type=='index'}
	  <title>{$name}{if $page>'1'}-µÚ{$pagebar.PageNow}Ò³{/if}{if $subname!=''}-{$subname}{/if}</title>
		
	  <meta name="Keywords" content="{if isset($keyword) && trim($keyword)!='' }{$keyword}{/if}">
	  <meta name="description" content="{if isset($description) && trim($description)!='' }{$description}{/if}">
	  <meta name="author" content="{$zbp.members[1].Name}">
	{else}
	  <title>{$title}-{$name}{if $subname!=''}-{$subname}{/if}</title>
	  <meta name="keywords" content="{$title},{$keyword}"/>
	  <meta name="description" content="{$description}"/>
	  <meta name="author" content="{$zbp.members[1].Name}">
	{/if}
	<meta name="generator" content="{$zblogphp}" />
	{php}SF_skin2::echoThemeCss();{/php}
	<script src="{$host}zb_system/script/common.js" type="text/javascript"></script>
	<script src="{$host}zb_system/script/c_html_js_add.php" type="text/javascript"></script>
{$header}
{if $type=='index'&&$page=='1'}
	<link rel="alternate" type="application/rss+xml" href="{$feedurl}" title="{$name}" />
	<link rel="EditURI" type="application/rsd+xml" title="RSD" href="{$host}zb_system/xml-rpc/?rsd" />
	<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="{$host}zb_system/xml-rpc/wlwmanifest.xml" />
{/if}

