Commonly used variables in PHPCMS V9 template design

WBOY
Release: 2016-08-08 09:21:43
Original
1065 people have browsed it

PHPCMS V9 template design commonly used variables

(2011-11-03 10:04:57)

Reprinted

Tags:

Miscellaneous Talk

Category: phpcmsv9

recommendedposition, category sub-column, relationship relatedarticlesPicturesChannel homepage focus picture9 Recommended at the top of the website{pc:contentaction="position" news-hot{pc:contentaction="position"
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 Time

{str_cut($v[description],116,'..')}

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
, hits ranking list
action
posid: Recommended position
1HomepageFocus picture recommendation

posid
2Homepage headline recommendation

5 recommended downloads


8




10 column homepage recommended


12 Home Page Picture Recommendations


13 column page focus picture


thumb: 0 all articles, 1 including thumbnails

thumb

order: listorder
DESC sort descending order, listorder ASC sorting ascending order, id DESC add time descending order, updatetime DESC update time descending order
order
posid="2" order="listorder DESC" num="4"}


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}

版权声明:本文为博主原创文章,未经博主允许不得转载。

以上就介绍了PHPCMS V9模板设计常用变量,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template