Home > Article > Backend Development > Commonly used variables in PHPCMS V9 template design_PHP tutorial
标签:
杂谈 |
分类: phpcmsv9 |
Variable | Global | Definition |
{CHARSET} | √ | Character set |
$SEO['title'] | √ | Page title |
$SEO['site_title'] | √ | Website 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} |
|
Pagination |
|
|
|
{date('Y-m-d H:i:s',$r[inputtime])} |
|
Update time |
{str_cut($v[description],116,'..')} |
|
Truncated string |
{thumb($v[thumb],70,60)} |
|
Screen thumbnail |
{$CATEGORYS[$cid][catname]} |
|
Channel name |
{$CATEGORYS[$cid][url]} |
|
Channel URL |
{template |
|
Template call |
{pc:block pos="index_block_1"} |
|
Dispute (Block Call) |
action: lists, position recommendations, category sub-columns, relation-related articles, hits rankings |
|
action |
posid: |
|
Recommended position |
1 Home Page Focus Picture Recommendation |
|
posid |
2 Recommended headlines on homepage |
|
|
5 recommended downloads |
|
|
Focus picture on the homepage of 8 picture channel |
|
|
9 top website recommendations |
|
|
10 column homepage recommendations |
|
|
12 Home Page Picture Recommendations |
|
|
13 column page focus picture |
|
|
thumb: 0 all articles, 1 including thumbnails |
|
thumb |
order:listorder |
order | |
|
|
|
{pc:content action="position" |
|
news-hot |
{pc:content action="position" order="listorder DESC" thumb="1" |
|
FocusPic |
{pc:content action="position" |
|
Picture News |
{pc:content |
|
|
{pc:content |
|
|
{pc:announce action="lists" |
|
Announcement |
{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} |