变量 | 全局 | 释义 |
{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 | | 模板调用 |
{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 | order | |
| | |
{pc:content action="position" | | news-hot |
{pc:content action="position" order="listorder DESC" thumb="1" | | FocusPic |
{pc:content action="position" | | 图片新闻 |
{pc:content | | |
{pc:content | | |
{pc:announce action="lists" | | 公告 |
{pc:special action="lists" | | 专题 |
{pc:content action="hits" | | digg点击 |
{pc:comment action="bang" | | 评论 |
{pc:content action="hits" | | |
{pc:link action="type_list" | 友情链接 | |
{pc:content action="lists" | | 列表 |
{pc:content action="hits" | | 总排行 |
{pc:content action="hits" | | 月排行 |
{pc:content action="position" | | 推荐下载 |
| | |
{catpos($catid)} | | 栏目定位 |
{loop subcat(0,0,0,$siteid) $r} | | |
{title_style($r[style])} | | 标题样式 |
{$inputtime} |
PHPCMS V9模板设计常用变量
类别:phpcms 作者:码皇 来源:互联网 点击:
变量 全局 释义 {CHARSET} √ 字符集 $SEO[ title ] √ 页面标题 $SEO[ site_title ] √ 网站标题 $SEO[ keyword ] √ keyword {$SEO[ description ] √ description {CSS_PATH} √ css路径 {JS_PATH} √ js路径 {IMG_PATH} √
相关热词搜索:
PHPCMS 模板 设计 常用 变量 变量 全局 释