首页 / PHPCMS / PHPCMSV9模板设计惯用变量
PHPCMSV9模板设计惯用变量
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了PHPCMSV9模板设计惯用变量,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2526字,纯文字阅读大概需要4分钟。
内容图文
![PHPCMSV9模板设计惯用变量](/upload/InfoBanner/zyjiaocheng/215/4cdaf7807aec46d99ec97e25487bd73a.jpg)
变量 |
全局 | 释义 |
{CHARSET} | √ | 字符集 |
$SEO['title'] | √ | 页面标题 |
$SEO['site_title'] | √ | 网站标题 |
$SEO['keyword'] | √ | keyword |
{$SEO['description'] | √ | 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"} |
? |
争议(块调用) |
action:lists列表、position推荐位、category子栏目、relation相关文章、hits排行榜 |
? |
action |
posid: |
? |
推荐位 |
1首页焦点图推荐 |
? |
posid |
2首页头条推荐 |
? |
? |
5推荐下载 |
? |
? |
8图片频道首页焦点图 |
? |
? |
9网站顶部推荐 |
? |
? |
10栏目首页推荐 |
? |
? |
12首页图片推荐 |
? |
? |
13栏目页焦点图 |
? |
? |
thumb:0所有文章、1包含缩略图 |
? |
thumb |
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} |
? |
发布时间 |
转自:http://hi.baidu.com/wwp0726/blog/item/a5359823151b57469922edf7.html
1 楼 化蝶自在飞 2011-09-29
博主也是phpcms爱好者么,可以交个朋友吗.内容总结
以上是互联网集市为您收集整理的PHPCMSV9模板设计惯用变量全部内容,希望文章能够帮你解决PHPCMSV9模板设计惯用变量所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。