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 美元)之後的第二款運動相機,這是繼Insta360X4(亞馬遜售價499.99 美元)之後的第二款運動相機。錄製功能。

某些情況,我們希望在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 的相關資訊已在網路上洩露。請注意,據說下麵包含的資訊來自亞馬遜美國列表,該列表現已被刪除
