鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > cms安装教程 > phpcms > >

PHPCMS V9模板制作常用变量表

来源:互联网 作者:佚名 时间:2015-08-18 08:53
全局 释义 {CHARSET} ---------------- ------------------------------- ------------------------ 字符集 $SEO['title'] ---------------- --------------------------- --------------------------------- 页面标题 $SEO['site_title']-----------------

全局

释义{CHARSET}-----------------------------------------------------------------------字符集

$SEO['title']----------------------------------------------------------------------------页面标题

$SEO['site_title']-------------------------------------------------------------------------------------------------------------网站标题

$SEO['keyword']------------------------------------------------------------------------------------------------------------关键字

{$SEO['description']-------------------------------------------------------------------------------------------------------描述

{CSS_PATH}----------------------------------------------------------------------------------------------------------------css路径

{JS_PATH}-------------------------------------------------------------------------------------------------------------------js路径

{IMG_PATH}-----------------------------------------------------------------------------------------------------------------img路径

{APP_PATH}----------------------------------------------------------------------------------------------------------------app路径

{get_siteid()}----------------------------------------------------------------------------------------------------------------站点ID

{$siteid}----------------------------------------------------------------------------------------------------------------------分站URL

{siteurl($siteid)}------------------------------------------------------------------------------------------------------------站点URL

{$catid}------------------------------------------------------------------------------------------------------------------------栏目ID

{$pages}----------------------------------------------------------------------------------------------------------------------分页

{date('Y-m-d H:i:s',$r[inputtime])}-----------------------------------------------------更新时间

{str_cut($v[description],116,'..')}----------------------------------------------------------------------------------------截字符串

{thumb($v[thumb],70,60)}------------------------------------------------------------------------------------------------截缩略图

{$CATEGORYS[$cid][catname]}----------------------------------------------------------------------------------------频道名

{$CATEGORYS[$cid][url]}------------------------------------------------------------------------------------------------频道URL

{template  "content","footer"}--------------------------------------------------------------------------------------------模板调用

{pc:block  pos="index_block_1"}-----------------------------------------------------------------------------争议(块调用)

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

actionlists列表、position推荐位、category子栏目、relation相关文章、hits排行榜------------action

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

posid:---------------------------------------------------------------------------------推荐位

1首页焦点图推荐action: ----------------------------------------------------------------posid

5推荐下载                 8图片频道首页焦点图     9网站顶部推荐      10栏目首页推荐

12首页图片推荐     13栏目页焦点图

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

thumb:0---------------------------------------------------------------------------1包含缩略图

order:listorder  DESC排序降序、listorder ASC排序升序、id DESC添加时间降序、updatetime DESC更新时间降序 ------------------------------------------------------------------------------order

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:content

action="position"  posid="2"  order="listorder DESC" num="4"}-------------------------------------------news-hot

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:content action="position"  posid="1" order="listorder DESC"  thumb="1"  num="5"}-------------------------------------------------------------------FocusPic

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:content

action="position"  posid="12"  thumb="1" order="id DESC"  num="10"}----------------------------------图片新闻

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:content  action="lists"  catid="$r[catid]" num="1"  thumb="1"  order="id DESC" return="info"}

{pc:content  action="lists"  catid="$r[catid]" num="5"  order="id  DESC" return="info"}

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:announce

action="lists"  siteid="$siteid"  num="2"}---------------------------------------------------------------------------公告

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:special

action="lists"  siteid="$siteid"  elite="1" listorder="3"  num="2"}---------------------------------------------专题

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

 

{pc:content  action="hits"  catid="35" num="10"  order="views DESC"}--------------digg点击

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:comment  action="bang"  num="10" cache="3600"}-----------------------------------评论

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:content  action="hits"  catid="35" num="10"  order="views DESC"}

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:link

action="type_list"  siteid="$siteid"  linktype="1" order="listorder  DESC"  num="8" return="pic_link"}--------------

友情链接

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:content  action="lists"  catid="$catid"  num="25" order="id  DESC"  page="$page"}--------------列表

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:content  action="hits"  catid="$catid"  num="10" order="views  DESC"  cache="3600"}-------------总排行

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

 

{pc:content  action="hits"  catid="$catid" num="8"  order="monthviews DESC"  cache="3600"}----------月排行

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{pc:content

action="position"  posid="5"  order="listorder DESC" num="4"}------------------------------------------------推荐下载

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{catpos($catid)}---------------------------------------------------------------------------------------------------------------栏目定位

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{loop subcat(0,0,0,$siteid) $r}

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{title_style($r[style])}-----------------------------------------------------------------------------------------------------标题样式

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

{$inputtime}-------------------------------------------------------------------------------------------------发布时间
网友评论
<