{template "content","header"}   ----------  調(diào)用根目錄下phpcms\template\content\header文件
		{CHARSET}  -------------------------------------字符集 (gbk或者utf-8)
		{if isset($SEO['title']) && !empty($SEO['title'])}
		{$SEO['title']}{/if}
		{$SEO['site_title']}
		{$SEO['keyword']}
		{$SEO['description']}
		-----------------------------------標題和標題seo優(yōu)化
		{CSS_PATH}  -----------------------------------地址替換為根目錄下\statics\css
		{JS_PATH}--------------------------------------地址替換為根目錄下\statics\js
		{pc:content  action="position" posid="9" order="id" num="10" cache="3600"}
		pc標簽{pc:content 參數(shù)名="參數(shù)值"參數(shù)名="參數(shù)值"參數(shù)名="參數(shù)值"}
		{loop $data $k $v}
		<li><a href="{$v[url]}">{$v[title]}</a></li>
		{/loop}
		pc標簽值
		action="position"-------------對話框的類型=“內(nèi)容推薦位列表”
		posid="9"--------------------推薦位ID=“9”
		order="id"--------------------排序類型=“id”
		num="10" -------------------數(shù)據(jù)調(diào)用數(shù)量=“10”
		cache="3600"----------------緩存="3600"毫秒
		{APP_PATH}-----------------項目地址
		{get_siteid()}----------------
		{IMG_PATH}-----------------
		action="hits" 排行,熱點等
		action="lists" 主要用于列表等。
		catid="$catid" 當前欄目ID   指定數(shù)字,即為指定的欄目
		num=""  調(diào)用文章的數(shù)量
		order="id DESC" 按ID降序排列
		order="id ASC"  按ID升序排列
		order="views DESC"
		sort=""
		thumb="1" 縮略圖
		return=""
		page="$page" 需要分頁
每當列表幾行的時候出現(xiàn)一次這個
{if $num%2==0} {/if}
循環(huán)標簽
------{loop $data $r} {/loop}
------{loop $info $r} {/loop}
		日期------{date('Y-m-d H:i:s',$r[inputtime])}
		文章鏈接------{$r[url]}
		文章標題------{$r[title]}
		標題截取------{str_cut($r[title],40,'...')}
		縮略圖------loop是info的時候用  {thumb($r[thumb],110,0)}     loop是data的時候用{thumb($v[thumb],90,0)}
		分頁標簽------{$pages}
		文章頁標簽
		標題------{$title}
		內(nèi)容------{$content}
		日期------{$inputtime}
		來源------{$copyfrom}
		點擊數(shù)------<span id="hits"></span>
		<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
		網(wǎng)站首頁------{siteurl($siteid)}
		當前位置------{catpos($catid)}
欄目名稱------{$CAT[catname]}
欄目拼音------{$CAT[letter]}
欄目鏈接------{$CAT[url]}
父欄目名稱------{$CATEGORYS[$CAT[parentid]][catname]}
父欄目鏈接------{$CATEGORYS[$CAT[parentid]][url]}
上上級欄目名稱------{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][catname]}
上上級欄目鏈接------{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][url]}
一級父欄目列表
		{pc:content action="category" catid="0" num="34" siteid="$siteid" order="listorder ASC"}
		{loop $data $r}
		<li><a href="{$r[url]}">{$r[catname]}</a></li>
		{/loop}
		{/pc}
同級欄目列表
		{pc:content action="category" catid="$parentid" num="12" siteid="$siteid" order="listorder ASC"}
		{loop $data $r}
		<li><a href="{$r[url]}">{$r[catname]}</a></li>
		{/loop}
		{/pc}
組圖列表
{loop $photos $r}
<li><a href="{$r[url]}"><img src="{thumb($r[url], 75, 45, 0)}" alt="{$r[alt]}" /></a></li>
{/loop}
注釋:其中$photos為自定義組圖字段,{$r[url]}為圖片地址,{thumb($r[url], 75, 45, 0)}為圖片縮略圖,{$r[alt]}為圖片描述



 鄂公網(wǎng)安備 42090202000212號
鄂公網(wǎng)安備 42090202000212號