精華 帝國(guó)PHP系統(tǒng)系統(tǒng)標(biāo)簽調(diào)用大全
帝國(guó)php系統(tǒng)標(biāo)簽調(diào)用大全
1、欄目分類標(biāo)簽
{$category.title} //獲取當(dāng)前欄目的標(biāo)題
{$category.id} //獲取當(dāng)前欄目的ID
{$category.url} //獲取當(dāng)前欄目的鏈接地址
{$category.listorder} //獲取當(dāng)前欄目的排序字段
{$category.sonids} //獲取當(dāng)前欄目的所有子欄目ID
{$category.level} //獲取當(dāng)前欄目的層級(jí)
2、文章分類標(biāo)簽
{$article.catid} //獲取當(dāng)前文章所屬的分類ID
{$article.title} //獲取當(dāng)前文章的標(biāo)題
{$article.pic} //獲取當(dāng)前文章的第一張圖片
{$article.source} //獲取當(dāng)前文章的來源
{$article.tags} //獲取當(dāng)前文章的標(biāo)簽
{$article.createtime} //獲取當(dāng)前文章的創(chuàng)建時(shí)間
{$article.updatetime} //獲取當(dāng)前文章的更新時(shí)間
{$article.readcount} //獲取當(dāng)前文章的閱讀次數(shù)
{$article.voteup} //獲取當(dāng)前文章的點(diǎn)贊數(shù)
{$article.votedown} //獲取當(dāng)前文章的踩數(shù)
{$article.istop} //判斷當(dāng)前文章是否為置頂文章
{$article.isgood} //判斷當(dāng)前文章是否為精華文章
{$article.isdraft} //判斷當(dāng)前文章是否為草稿狀態(tài)
{$article.isbest} //判斷當(dāng)前文章是否為推薦文章
{$article.ifshow} //判斷當(dāng)前文章是否顯示在首頁
{$article.ifpoint} //判斷當(dāng)前文章是否允許評(píng)論
{$article.iftag} //判斷當(dāng)前文章是否允許打標(biāo)簽
{$article.htmlcode} //獲取當(dāng)前文章的HTML代碼
{$article.content|formattext=|htmlspecialchars=true} //格式化當(dāng)前文章的內(nèi)容,保留HTML標(biāo)簽不轉(zhuǎn)義
{$article.content|strip_html=|htmlspecialchars=true} //去除當(dāng)前文章的內(nèi)容中的HTML標(biāo)簽
3、用戶與會(huì)員標(biāo)簽
{$user.username} //獲取當(dāng)前用戶的用戶名
{$user.password} //獲取當(dāng)前用戶的密碼(已加密)
{$user.email} //獲取當(dāng)前用戶的郵箱地址
{$user.mobile} //獲取當(dāng)前用戶的手機(jī)號(hào)碼
{$user.regip} //獲取當(dāng)前用戶的注冊(cè)IP地址
{$user.loginip} //獲取當(dāng)前用戶的登錄IP地址
{$user.lastlogintime} //獲取當(dāng)前用戶的最后登錄時(shí)間
{$user.status} //獲取當(dāng)前用戶的狀態(tài)(0:禁用,1:正常)
{$user.groupid|default=”} //獲取當(dāng)前用戶的會(huì)員組ID,默認(rèn)為空字符串
{$user.groupname|default=”} //獲取當(dāng)前用戶的會(huì)員組名稱,默認(rèn)為空字符串
{$user.score|default=0} //獲取當(dāng)前用戶的積分,默認(rèn)為0
{$user.rank|default=0} //獲取當(dāng)前用戶的排名,默認(rèn)為0
4、其他標(biāo)簽
{$siteinfo.sitename} //獲取站點(diǎn)名稱
{$siteinfo.keywords} //獲取站點(diǎn)關(guān)鍵詞
{$siteinfo.description} //獲取站點(diǎn)描述
{$siteinfo.statistics|default=”} //獲取站點(diǎn)統(tǒng)計(jì)信息,默認(rèn)為空字符串(JSON格式)
{$siteinfo.theme|default=”} //獲取站點(diǎn)主題名稱,默認(rèn)為空字符串(多語言支持)
{$siteinfo.style|default=”} //獲取站點(diǎn)樣式名稱,默認(rèn)為空字符串(多語言支持)
{$siteinfo.version|default=’1′} //獲取站點(diǎn)版本號(hào),默認(rèn)為1(可自定義)
{$siteinfo.host|default=’localhost’} //獲取站點(diǎn)主機(jī)地址,默認(rèn)為本地主機(jī)地址(可自定義)
{$siteinfo.runmode|default=’0′} //獲取站點(diǎn)運(yùn)行模式(0:單服務(wù)器版;1:多服務(wù)器版;2:集群版),默認(rèn)為0(可自定義)
{$siteinfo.charset|default=’utf-8′} //獲取站點(diǎn)字符集,默認(rèn)為utf-8(可自定義)
{$siteinfo.adminemail|default=”} //獲取站點(diǎn)管理員郵箱地址,默認(rèn)為空字符串(可自定義)
{$siteinfo.adminpwd|default=”} //獲取站點(diǎn)管理員密碼(已加密),默認(rèn)為空字符串(可自定義)
{$siteinfo.closetime|default=0} //設(shè)置站點(diǎn)關(guān)閉時(shí)間,默認(rèn)為0(可自定義)
{$siteinfo.recyclebindays|default=7} //設(shè)置回收站保留天數(shù),默認(rèn)為7(可自定義)
{$siteinfo.rewriterule|default=”} //設(shè)置URL重寫規(guī)則,默認(rèn)為空字符串(可自定義)
{$siteinfo[‘setting’][‘name1’]|default=”} //設(shè)置站點(diǎn)配置項(xiàng)1的值,默認(rèn)為空字符串(可自定義),使用時(shí)替換[setting]占位符和鍵名,如:[setting][name1]或siteInfo[‘setting’][‘name1’]或SiteInfo::get(‘setting’,’name1′)等形式調(diào)用配置項(xiàng)值。