PHPCMS V9模板设计常用变量
来源:互联网 发布:放大图片的软件 编辑:程序博客网 时间:2024/05/21 19:23
PHPCMS V9模板设计常用变量
(2011-11-03 10:04:57)转载▼
标签:
杂谈
分类: phpcmsv9变量全局释义{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排行榜
actionposid:
推荐位1首页焦点图推荐
posid2首页头条推荐
5推荐下载
8图片频道首页焦点图
9网站顶部推荐
10栏目首页推荐
12首页图片推荐
13栏目页焦点图
thumb:0所有文章、1包含缩略图
thumborder: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}
action="position"
action="position"
order="listorder DESC" thumb="1"
action="position"
action="lists"
action="lists"
action="type_list"
action="position"
0 0
- PHPCMS V9模板设计常用变量
- PHPCMS V9模板设计常用变量
- PHPCMS V9模板设计程序二级开发中常用的一些网站相关信息变量列表
- PHPCMS V9模板中的常用变量、碎片代码详解
- PHPCMS V9模板中的常用变量、碎片代码详解
- phpcms v9模板制作常用代码集合
- phpcms v9 模板标签技巧,模板标签常用方法
- phpcms v9 模板标签技巧,标签常用方法
- phpcms v9模板制作过程中一些常用代码
- phpcms v9 模板标签技巧,标签常用方法
- phpcms v9 模板标签技巧,标签常用方法
- phpcms v9 模板对应表
- PHPCMS V9模板语法规则
- phpcms v9模板标签使用说明
- PHPcms v9的模板标签
- 【phpcms-v9】phpcms中常用代码总结
- 【phpcms-v9】phpcms中常用代码总结
- 【phpcms-v9】phpcms-v9中模板载入函数template详解
- Html标签属性之 字体
- 黑马程序员------Java的多态性
- LeetCode139:Word Break
- Servlet 工作原理解析
- Linux-命令-tail
- PHPCMS V9模板设计常用变量
- Redis 与 Memcached 区别
- 鸟哥的Linux私房菜-----8、文件系统的装载
- 关于windows内核SSDT HOOK的一点思考
- xcode升级到6.3.2后找不到Alcatraz的bug
- 鸟哥的Linux私房菜-----9、vi文本处理器
- shell脚本中echo显示内容带颜色显示
- JAVA设计模式之原型模式
- 设计模式-迭代器模式