[
摘要
]
本文介绍
phpcms v9
中模板标签使用说明。
{template "content","header"}
调用根目录下
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
优化
{CSS_PATH}
地址替换为根目录下
\statics\css
{JS_PATH}
地址替换为根目录下
\statics\js
{pc:content action="position" posid="9" order="id" num="10"
cache="3600"}
pc
标签
{pc:content
参数名
="
参数值
"
参数名
="
参数值
"
参数名
="
参数值
"}
{loop $data $k $v}
<li><a href="{$v[url]}">{$v[title]}</a></li>
{/loop}
pc
标签值
action="position"--------------
对话框的类型=“内容推荐位列表”
posid="9"----------------------
推荐位
ID="9"
order="id"---------------------
排序类型
="id"
num="10" ----------------------
数据调用数量
="10"
cache="3600"-------------------
缓存
="3600"
毫秒
{get_siteid()}
{IMG_PATH}
action="hits"
排行,热点等
action="lists"
主要用于列表等。
catid="$catid"
当前栏目
ID
指定数字,即为指定的栏目
num=""
调用文章的数量
order="id DESC"
按
ID
降序排列
order="id ASC"
按
ID
升序排列
"views DESC"
sort=""
"1"
缩略图
return=""
page="$page"
需要分页
每当列表几行的时候出现一次这个
{if $num%2==0} {/if}
循环标签
{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}
内容
-------{$content}
日期
-------{$inputtime}
来源
-------{$copyfrom}
点击数
------<span id="hits"></span>
<script language="JavaScript"
src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script
>
网站首页
----------------{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]}
为图片描述
17startup.com/startuplist/view/1073436
17startup.com/startuplist/view/1073417
17startup.com/startuplist/view/1073318
17startup.com/startuplist/view/1073297
17startup.com/startuplist/view/1073278
17startup.com/startuplist/view/1073260
17startup.com/startuplist/view/1073244
17startup.com/startuplist/view/1073226
17startup.com/startuplist/view/1073195
17startup.com/startuplist/view/1073177
17startup.com/startuplist/view/1072963
17startup.com/startuplist/view/1072417
17startup.com/startuplist/view/1072400
17startup.com/startuplist/view/1071646
17startup.com/startuplist/view/1071629
17startup.com/startuplist/view/1071577
17startup.com/startuplist/view/1071551
17startup.com/startuplist/view/1071513
17startup.com/startuplist/view/1071501
17startup.com/startuplist/view/1071484
17startup.com/startuplist/view/1071476
17startup.com/startuplist/view/1071463
17startup.com/startuplist/view/1071453
17startup.com/startuplist/view/1071484
17startup.com/startuplist/view/1071424
17startup.com/startuplist/view/1071414
17startup.com/startuplist/view/1071397
17startup.com/startuplist/view/1071375
17startup.com/startuplist/view/1071358
17startup.com/startuplist/view/1071337
17startup.com/startuplist/view/1071257
17startup.com/startuplist/view/1071098
17startup.com/startuplist/view/1071072
17startup.com/startuplist/view/1071059
17startup.com/startuplist/view/1071045
17startup.com/startuplist/view/1070992
17startup.com/startuplist/view/1070910
17startup.com/startuplist/view/1069204
17startup.com/startuplist/view/1069183
17startup.com/startuplist/view/1069160
17startup.com/startuplist/view/1069137
17startup.com/startuplist/view/1069061
17startup.com/startuplist/view/1068986
17startup.com/startuplist/view/1068948
17startup.com/startuplist/view/1068926
17startup.com/startuplist/view/1068895
17startup.com/startuplist/view/1068862
17startup.com/startuplist/view/1068804
17startup.com/startuplist/view/1068775
17startup.com/startuplist/view/1068752
17startup.com/startuplist/view/1068733
17startup.com/startuplist/view/1068540
17startup.com/startuplist/view/1068513
17startup.com/startuplist/view/1068409
17startup.com/startuplist/view/1068390
17startup.com/startuplist/view/1068343
17startup.com/startuplist/view/1068324
17startup.com/startuplist/view/1068309
17startup.com/startuplist/view/1068292
17startup.com/startuplist/view/1068278
17startup.com/startuplist/view/1068247
17startup.com/startuplist/view/1068067
17startup.com/startuplist/view/1067994
17startup.com/startuplist/view/1067978
17startup.com/startuplist/view/1067872
17startup.com/startuplist/view/1067849
17startup.com/startuplist/view/1067770
17startup.com/startuplist/view/1067733
17startup.com/startuplist/view/1067650
17startup.com/startuplist/view/1067620
17startup.com/startuplist/view/1067608
17startup.com/startuplist/view/1067529
17startup.com/startuplist/view/1067484
17startup.com/startuplist/view/1067473
17startup.com/startuplist/view/1067450
17startup.com/startuplist/view/1067437
17startup.com/startuplist/view/1067427
17startup.com/startuplist/view/1067345
17startup.com/startuplist/view/1067328
17startup.com/startuplist/view/1067309
17startup.com/startuplist/view/1067297
17startup.com/startuplist/view/1067267
17startup.com/startuplist/view/1067279
17startup.com/startuplist/view/1067284
17startup.com/startuplist/view/1067291
17startup.com/startuplist/view/1067255
17startup.com/startuplist/view/1066617
17startup.com/startuplist/view/1066654
17startup.com/startuplist/view/1066805
17startup.com/startuplist/view/1067223
17startup.com/startuplist/view/1067247
yunpan.cn/QbHNUHdDG79La
yunpan.cn/QbHNzdURHCyHX
yunpan.cn/QbHNzCXfe84JY
yunpan.cn/QbHNp9bdptipL
yunpan.cn/QbHN4Be4c3te7
yunpan.cn/QbHNIej38xGBk
yunpan.cn/QbHNNGvdV7Bq4
yunpan.cn/QbHNik8quyvZ9
yunpan.cn/QbHNTjYPTFsKc
yunpan.cn/QbHNTDQR62Npk
yunpan.cn/QbHNhMZfNcetc
yunpan.cn/QbHNCZhKRPZWt
yunpan.cn/QbHNC9bZAWE8Z
yunpan.cn/QbHNaYvV5gNJL
yunpan.cn/QbHN7srwccrf9
yunpan.cn/QbHigxyzwf84i
yunpan.cn/QbHisSRXbBvc6
yunpan.cn/QbHis7jjkdGFG
yunpan.cn/QbHiAXy9iaNTH
yunpan.cn/QbHif3ND6xjSS
yunpan.cn/QbHiyAzYNghFZ
yunpan.cn/QbHiytWPRcqd8
yunpan.cn/QbHiK2UwPb9pG
yunpan.cn/QbHiJFnUzYktq
yunpan.cn/QbHiJT6zYnqqG
yunpan.cn/QbHiZvLpaNNxw
yunpan.cn/QbHiVwJI2w9J6
yunpan.cn/QbHijyHWkiTFr
yunpan.cn/QbHijDQcTvnZA
yunpan.cn/QbHiw3NtXLIQH
yunpan.cn/QbHiQAzFyC5sC
yunpan.cn/QbHiQ9GNREYI5
yunpan.cn/QbHicYkTADIpK
yunpan.cn/QbHidsuh5guUv
yunpan.cn/QbHid2AYq4T55
yunpan.cn/QbHimw4PgfYEK