PHPCMS V9 template design commonly used variables
(2011-11-03 10:04:57)Reprinted▼
Tags: Miscellaneous Talk | Category: phpcmsv9 |
Variable | Global | Explanation |
{CHARSET} | √ | Character set |
$SEO[' title'] | √ | page title |
$SEO['site_title'] | √ | site title |
$SEO[' keyword'] | √ | keyword |
{$SEO['description'] | √ | description |
{CSS_PATH} | √ | css path |
{JS_PATH} | √ | js path |
{IMG_PATH} | √ | img path |
{APP_PATH} | √ | app path |
{get_siteid()} | √ | Site ID |
{$siteid} | √ | Branch URL |
{siteurl($siteid)} | √ | site URL |
{$catid} | Column ID | |
{$pages} | Paging | |
Update |
|
|
Cut string |
{thumb($v[thumb],70,60 )} | |
ClipThumbnail Picture |
{$CATEGORYS[$cid][catname]} | |
Channel name | {$CATEGORYS[$cid][url]} | |
Channel URL |
{template "content","footer"} | |
Template call |
{pc:block pos="index_block_1"} | |
Controversy (block call) | action: listslist、 position | recommended|
, hits ranking list | |
action |
posid: | Recommended position |
1HomepageFocus picture recommendation |
posid |
2Homepage headline recommendation | |
5 recommended downloads | ||
| Pictures||
|
||
|
|
|
|
||
|
|
|
thumb |
order: listorder |
|
order | |
|
posid="2" order="listorder DESC" num="4"} |
||
posid="1"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模板设计常用变量,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。