PHPCMS V9模板设计惯用变量
PHPCMS V9模板设计常用变量
变量 |
全局 | 释义 |
{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排行榜 |
? |
action |
posid: |
? |
推荐位 |
1首页焦点图推荐 |
? |
posid |
2首页头条推荐 |
? |
? |
5推荐下载 |
? |
? |
8图片频道首页焦点图 |
? |
? |
9网站顶部推荐 |
? |
? |
10栏目首页推荐 |
? |
? |
12首页图片推荐 |
? |
? |
13栏目页焦点图 |
? |
? |
thumb:0所有文章、1包含缩略图 |
? |
thumb |
order: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} |
? ? |
发布时间 |
?
?
转自:http://hi.baidu.com/wwp0726/blog/item/a5359823151b57469922edf7.html

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

大疆尚未确认推出新运动相机的计划。相反,GoPro 今年似乎会领先于竞争对手,并透露将于 9 月 4 日推出两款新的运动相机。

自 DJI 发布 Osmo Action 4(亚马逊售价 299 美元)以来已经过去了近一年。从那时起,该公司开始专注于其他部门,包括新型 RS 相机万向节。最重要的是,它还推出了各种无人机,例如 Avata

Insta360 发布了一款新的运动相机,这是继 Insta360X4(亚马逊售价 499.99 美元)之后的第二款运动相机。不出所料,该公司推出了 Go3S,它是 Go3 的升级版,增加了 4K 视频录制功能。

某些情况,我们希望在Vuex中进行一些异步操作, 比如网络请求, 必然是异步的,这个时候怎么处理呢?下面就给大家介绍Vuex状态管理之Action异步操作,希望对需要的朋友有所帮助!

GoPro 现在推出了年度运动相机更新。与近年来不同的是,该公司决定发布两款车型。然而,它并没有回归 360 度相机,尽管去年这个时候就曾戏称它将取代 Max wi

嗯!今年,各品牌将扩大其语音人工智能的部署,以便在更多 Taco Bell 门店提供更快、更准确的得来速订单。在此之前,我们在美国 13 个州的 100 个选定地点进行了两年的实际测试。 AI减轻人类工作负担

elasticsearch中的绝大部分操作都是通过相应的action,这些action在action包中。它的结构如下图所示:上图是action包的部分截图,这里面对应着各个功能的action。各个action的包也都非常类似于index。这些action的实现也非常类似,都是基础自action,下图是indexaction的继承关系:因为这些action并未真正实现相应的功能,只是一个代理,因此实现上也非常简单。他们的主要作用是提供新建response和request的方法及对应的action

全新 GoPro 运动相机的详细信息以及 Hero 13 Black 的相关信息已在网上泄露。请注意,据说下面包含的信息来自亚马逊美国列表,该列表现已被删除
