<!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="<?php  echo $language;  ?>" lang="<?php  echo $language;  ?>">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="Content-Language" content="<?php  echo $language;  ?>" />
	<?php 
		$keyword=$zbp->Config('sf_skin2')->keyword;
		$description=$zbp->Config('sf_skin2')->description;
	 ?>
	<?php if ($type=='article') { ?>
	  <title><?php  echo $title;  ?>-<?php  echo $article->Category->Name;  ?>-<?php  echo $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)).'...');
	   ?>
	  <meta name="keywords" content="<?php if (isset($keyword) && trim($keyword)!='' ) { ?><?php  echo $keyword;  ?><?php } ?>"/>
	  <meta name="description" content="<?php  echo $description;  ?>"/>
	  <meta name="author" content="<?php  echo $article->Author->StaticName;  ?>">
	<?php }elseif($type=='page') {  ?>
	  <title><?php  echo $title;  ?>-<?php  echo $name;  ?><?php if ($subname!='') { ?>-<?php  echo $subname;  ?><?php } ?></title>
	  <meta name="keywords" content="<?php if (isset($keyword) && trim($keyword)!='' ) { ?><?php  echo $keyword;  ?><?php } ?>"/>
	  <?php 
		$description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),135)).'...');
	   ?>
	  <meta name="description" content="<?php  echo $description;  ?>"/>
	  <meta name="author" content="<?php  echo $article->Author->StaticName;  ?>">
	<?php }elseif($type=='index') {  ?>
	  <title><?php  echo $name;  ?><?php if ($page>'1') { ?>-µÚ<?php  echo $pagebar->PageNow;  ?>Ò³<?php } ?><?php if ($subname!='') { ?>-<?php  echo $subname;  ?><?php } ?></title>
		
	  <meta name="Keywords" content="<?php if (isset($keyword) && trim($keyword)!='' ) { ?><?php  echo $keyword;  ?><?php } ?>">
	  <meta name="description" content="<?php if (isset($description) && trim($description)!='' ) { ?><?php  echo $description;  ?><?php } ?>">
	  <meta name="author" content="<?php  echo $zbp->members[1]->Name;  ?>">
	<?php }else{  ?>
	  <title><?php  echo $title;  ?>-<?php  echo $name;  ?><?php if ($subname!='') { ?>-<?php  echo $subname;  ?><?php } ?></title>
	  <meta name="keywords" content="<?php  echo $title;  ?>,<?php  echo $keyword;  ?>"/>
	  <meta name="description" content="<?php  echo $description;  ?>"/>
	  <meta name="author" content="<?php  echo $zbp->members[1]->Name;  ?>">
	<?php } ?>
	<meta name="generator" content="<?php  echo $zblogphp;  ?>" />
	<?php SF_skin2::echoThemeCss(); ?>
	<script src="<?php  echo $host;  ?>zb_system/script/common.js" type="text/javascript"></script>
	<script src="<?php  echo $host;  ?>zb_system/script/c_html_js_add.php" type="text/javascript"></script>
<?php  echo $header;  ?>
<?php if ($type=='index'&&$page=='1') { ?>
	<link rel="alternate" type="application/rss+xml" href="<?php  echo $feedurl;  ?>" title="<?php  echo $name;  ?>" />
	<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php  echo $host;  ?>zb_system/xml-rpc/?rsd" />
	<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="<?php  echo $host;  ?>zb_system/xml-rpc/wlwmanifest.xml" />
<?php } ?>

