參 數(shù):
name:info 必須
ids:調(diào)用指定ID的一個(gè)或多個(gè)數(shù)據(jù),如 1,2,3
cid:數(shù)據(jù)所在分類,可調(diào)出一個(gè)或多個(gè)分類數(shù)據(jù),如 1,2,3 默認(rèn)值為全部,在當(dāng)前分類為:'.$cid.'
field:調(diào)用文章模型的指定字段,如(id,title,actor) 默認(rèn)全部
limit:數(shù)據(jù)條數(shù),默認(rèn)值為10,可以指定從第幾條開始,如3,8(表示共調(diào)用8條,從第3條開始)
order:推薦方式(id/addtime/hits/monthhits/weekhits/dayhits/year/up/down) (desc/asc/rand())
keyword:'關(guān)鍵字' 用于調(diào)用自定義關(guān)鍵字(搜索/標(biāo)簽)結(jié)果
time: 指定上傳時(shí)間內(nèi),如(1/7/30) 分別表示(當(dāng)天/本周/本月)
stars:推薦星級(jí)數(shù),可調(diào)出一個(gè)或多個(gè)星級(jí)數(shù)據(jù),如 1,2,3 默認(rèn)值為全部
hits:大于指定人氣值的數(shù)據(jù)(如:888)或某段之間的(如:888,999)
up:大于指定支持值的數(shù)據(jù)(如:888)或某段之間的(如:888,999)
down:大于指定反對(duì)值的數(shù)據(jù)(如:888)或某段之間的(如:888,999)
score:大于指定評(píng)分平均值的數(shù)據(jù)(如:6)或某段之間的(如:1,8)/范圍:0-10
scoreer:大于指定評(píng)分人的數(shù)據(jù)(如:888)或某段之間的(如:888,999)
<gxcms name="info" limit="12" order="addtime desc">
{$i}
{$info.showname} 所屬分類中文名稱
{$info.showurl} 所屬分類URL鏈接
{$info.cid} 所屬分類ID
{$info.id} 文章ID
{$info.title} 文章名稱
{:get_color_title($info['title'],$info['color'])}
{$info.readurl} 文章詳情URL鏈接
{$info.remark} 文章簡介
{$info.content} 文章詳情 {$video.content|msubstr='0,30'}
{$info.picurl} 文章海報(bào)圖片地址
{$info.picurl_small} 文章海報(bào)圖片縮略圖地址
{$info.reurl} 文章來源
{$info.inputer} 影片錄入者
{$info.letter} 影片首字母
{$info.addtime} 文章添加日期
{$info.addtime|get_color_date='Y-m-d H:i:s',###}
{$info.hits} 文章人氣值
{$info.stars} 文章推薦級(jí)別
{$info.up} 文章頂信息
{$info.down} 文章踩集息
{$info.score} 文章評(píng)分平均值
{$info.scoreer} 文章評(píng)分人數(shù)
{$info.keywords} 文章自定義關(guān)鍵字
</gxcms>
文章(頻道頁/欄目頁)標(biāo)簽說明
解析范圍: 頻道頁模板(info_channel.html) 欄目頁模板(info_list.html)
{$cid} 頻道欄目ID
{$pid} 頻道欄目父級(jí)ID
{$cname} 當(dāng)前分類中文名稱
{$cfile} 當(dāng)前分類自定義別名
{$ctitle} 頻道欄目自定義title
{$ckeywords} 頻道欄目模板MATH關(guān)鍵詞
{$cdescription} 頻道模板MATH描述
{$page} 當(dāng)前頁數(shù)
{$pages} 翻頁信息列表
{$count} 當(dāng)前欄目記錄數(shù)
{$order} 排序方式(動(dòng)態(tài)模式下地址欄的排序方式)
===========================================文章(頻道頁/欄目頁)分頁循環(huán)展示===================================
參 數(shù):
limit:每頁數(shù)據(jù)條數(shù) 不填寫則默認(rèn)值為10
order:數(shù)據(jù)排序方式 不填寫則默認(rèn)值為addtime,可使用字段信息如下
addtime,上傳時(shí)間/hits,人氣值/stars,推薦級(jí)別/up,頂/down,踩/score,評(píng)分值/scoreer,評(píng)分人數(shù)/'.$order.',根據(jù)地址欄的order參數(shù)動(dòng)態(tài)變化(按人氣,按點(diǎn)擊)
<gxlist name="info" limit="12" order="$order">
......循環(huán)變量見上表
</gxlist>
文章(搜索頁)變量標(biāo)簽
解析范圍: 影視搜索頁模板(info_search.html)
{$cid} 分類限制檢索范圍ID
{$keyword} 當(dāng)前搜索關(guān)鍵字
{$order} 排序方式(地址欄排序方式)
{$count} 搜索結(jié)果記錄數(shù)
{$page} 當(dāng)前頁數(shù)
{$pages} 分頁列表信息
文章(搜索頁)分頁循環(huán)展示標(biāo)簽
參 數(shù):
limit:每頁數(shù)據(jù)條數(shù) 不填寫則默認(rèn)值為10
order:數(shù)據(jù)排序方式 不填寫則默認(rèn)值為addtime,可使用字段信息如下
addtime,上傳時(shí)間/hits,人氣值/stars,推薦級(jí)別/up,頂/down,踩/score,評(píng)分值/scoreer,評(píng)分人數(shù)/'.$order.',根據(jù)地址欄的order參數(shù)動(dòng)態(tài)變化(按人氣,按點(diǎn)擊)
<gxsearch name="info" limit="12" order="$order">
......循環(huán)變量文章循環(huán)調(diào)用表
</gxsearch>
文章(內(nèi)容頁)標(biāo)簽說明
{$i}
{$id} 文章ID
{$title} 文章名稱 {:get_color_title($title,$color)}
{$readurl} 文章詳情URL鏈接
{$remark} 文章簡介
{$content} 文章詳情 {$content|msubstr='0,30'}
{$picurl} 文章海報(bào)圖片地址
{$picurl_small} 文章海報(bào)圖片縮略圖地址
{$reurl} 文章來源
{$inputer} 影片錄入者
{$letter} 影片首字母
{$addtime} 文章添加日期 {$addtime|get_color_date='Y-m-d H:i:s',###}
{$hits} 文章總?cè)藲庵?/p>
{$monthhits} 月人氣值
{$weekhits} 周人氣值
{$dayhits} 日人氣值
{$inserthits} 寫入點(diǎn)擊數(shù)
{$stars} 文章推薦級(jí)別
{$up} 文章頂信息
{$down} 文章踩集息
{$score} 文章評(píng)分平均值
{$scoreer} 文章評(píng)分人數(shù)
{$keywords} 文章自定義關(guān)鍵字
專題循環(huán)調(diào)用標(biāo)簽說明
解析范圍: 全站模板均可調(diào)用
參 數(shù):
name:special
ids:調(diào)用指定ID的一個(gè)或多個(gè)數(shù)據(jù),如 1,2,3
field:調(diào)用指定字段,如(id,title,actor) 默認(rèn)全部
limit:數(shù)據(jù)條數(shù),默認(rèn)值為10,可以指定從第幾條開始,如3,8(表示共調(diào)用8條,從第3條開始)
order:推薦方式
(id/addtime/hits/monthhits/weekhits/dayhits/year/up/down) (desc/asc/rand())
hits:大于指定人氣值的數(shù)據(jù)(如:888)或某段之間的(如:888,999)
up:大于指定支持值的數(shù)據(jù)(如:888)或某段之間的(如:888,999)
down:大于指定反對(duì)值的數(shù)據(jù)(如:888)或某段之間的(如:888,999)
<gxcms name="special" limit="10">
{$i}
{$special.id} 專題ID
{$special.title} 專題名稱
{$special.logo} 專題LOGO
{$special.banner} 專題Banner
{$special.content} 專題簡介
{$special.content|msubstr=0,30}
{$special.hits} 專題人氣
{$special.addtime} 專題更新時(shí)間
{$special.addtime|date='Y-m-d H:i:s',###}
</gxcms>
專題(列表頁)標(biāo)簽說明
解析范圍: 專題欄目頁模板(special_list.html)
{$page} 當(dāng)前頁數(shù)
{$pages} 分頁數(shù)字列表
專題(列表頁)分頁循環(huán)展示標(biāo)簽
參 數(shù):
limit:每頁數(shù)據(jù)條數(shù) 不填寫則默認(rèn)值為10
order:數(shù)據(jù)排序方式 不填寫則默認(rèn)值為addtime,可使用字段信息如下
id,專題ID/addtime,上傳時(shí)間/hits,人氣值/stars,根據(jù)地址欄的order參數(shù)動(dòng)態(tài)變化(按人氣,時(shí)間,id)
<gxlist name="special" limit="12" order="$order">
{$i}
{$special.id} 專題ID
{$special.title} 專題名稱
{$special.logo} 專題LOGO
{$special.banner} 專題Banner
{$special.content} 專題簡介
{$special.content|msubstr=0,30}
{$special.hits} 專題人氣
{$special.addtime} 專題更新時(shí)間
{$special.aids} 收錄的文章ID集
{$special.mids} 收錄的影視ID集
</gxlist>
專題(詳情頁)標(biāo)簽變量
{$id} 專題ID
{$aids} 收錄的文章ID集
{$mids} 收錄的影視ID集
{$title} 專題名稱
{$content} 專題簡介
{$logo} 專題logo
{$banner} 專題banner
{$hits} 專題總?cè)藲庵?/p>
{$monthhits} 月人氣值
{$weekhits} 周人氣值
{$dayhits} 日人氣值
{$inserthits} 寫入點(diǎn)擊數(shù)
{$addtime} 專題更新時(shí)間 {$addtime|date='Y-m-d H:i:s',###}
收錄影片列表循環(huán)標(biāo)簽:
<notempty name="mids"><gxcms name="'.$mids.'" id="video">
.....參考具體的影片循環(huán)變量
</gxcms></notempty>
收錄文章列表循環(huán)標(biāo)簽:
<notempty name="aids"><gxcms name="'.$aids.'" id="info">
.....參考具體的文章循環(huán)變量
</gxcms></notempty>
留言列表分頁標(biāo)簽
參 數(shù):
limit:每頁數(shù)據(jù)條數(shù) 不填寫則默認(rèn)值為10
order:數(shù)據(jù)排序方式 不填寫則默認(rèn)值為addtime,可使用字段信息如下
id,專題ID/addtime,上傳時(shí)間/hits,人氣值/stars,根據(jù)地址欄的order參數(shù)動(dòng)態(tài)變化(按人氣,時(shí)間,id)
<gxlist name="guestbook" limit="10" order="addtime desc">
{$i}
{$guestbook.id}
{$guestbook.content|htmlspecialchars}
{$guestbook.recontent|htmlspecialchars}
{$guestbook.ip}
{$guestbook.top}
{$guestbook.status}
{$guestbook.addtime|get_color_date='Y-m-d H:i:s',###}
{$guestbook.floor}
{$guestbook.userid}
{$guestbook.username|htmlspecialchars
}
{$guestbook.face}
</gxlist>
評(píng)論模塊標(biāo)簽變量
{$mid} 模型ID(1=影視,2=文章,3=專題)
{$did} 對(duì)應(yīng)的模型ID數(shù)據(jù)值
評(píng)論模塊循環(huán)標(biāo)簽
<gxlist name="list" limit="comment">
{$i}
{$comment.id}
{$comment.mid} 1=影片,2=新聞,3=專題
{$comment.content|htmlspecialchars}
{$comment.ip}
{$comment.addtime|date='Y-m-d H:i:s',###}
{$comment.floor}
{$comment.up}
{$comment.down}
{$comment.userid}
{$comment.username|htmlspecialchars}
{$comment.face}
</gxlist>
全局導(dǎo)航標(biāo)簽
參 數(shù):
ids:可以指定多個(gè),以逗號(hào)分隔,留空則表示調(diào)用全部
<gxcms name="menu" ids="1,2,3">
{$i} 排序位
{$menu.id} 菜單ID
{$menu.oid} 菜單排序ID
{$menu.pid} 菜單父級(jí)ID
{$menu.mid} 模型ID(1=影視,2=文章,3=專題,9=外部鏈接)
{$menu.cname} 菜單名稱
{$menu.showurl} 菜單鏈接
<gxfor name="menu.son" id="menu">
{$i} 排序位
{$menu.id} 菜單ID
{$menu.oid} 菜單排序ID
{$menu.pid} 菜單父級(jí)ID
{$menu.cname} 菜單名稱
{$menu.showurl} 菜單鏈接
</gxfor>
</gxcms>
幻燈模塊
<gxcms name="slide" order="oid asc">
{$i} 排序位
{$slide.title} 幻燈名稱
{$slide.content} 幻燈簡介
{$slide.link} 幻燈鏈接
{$slide.picurl} 幻燈圖片
{$slide.picurl-s} 幻燈小圖
</gxcms>