標題 / 關鍵詞 / 描述title / keywords / description {pboot:pagetitle}
文章標題{content:title} {content:title}
文章副標題{content:subtitle} {content:subtitle}
文章內容摘要{content:description} {content:description}
文章時間格式 2020-1-1{content:date style=Y-d-m} {content:date style=Y-d-m}
文章點擊數(動態){content:visits} {content:visits}
文章點贊數(動態){content:likes} {content:likes}
文章點贊鏈接{content:likeslink} {content:likeslink}
文章反對數(動態){content:oppose} {content:oppose}
文章反對數(動態){content:opposelink} {content:opposelink}
文章作者{content:author} {content:author}
文章來源{content:source} {content:source}
文章當前鏈接{pboot:httpurl} {pboot:httpurl}
文章縮略圖{content:ico} {content:ico}
文章內容{content:content} {content:content}
文章附件{content:enclosuresize} {content:enclosuresize}
文章附件大小{content:enclosure} {content:enclosure}
文章內容自定義字段{content:ext_***} {content:ext_***}
文章外部鏈接{content:outlink} {content:outlink}
隨機調用欄目文章{pboot:list} {pboot:list scode={sort:tcode} num=6 order=random} [list:title] {/pboot:list}
調用欄目熱門文章{pboot:list} {pboot:list scode={sort:tcode} num=6 order=visits} [list:title] {/pboot:list}
文章TAG標簽{content:tags} {content:tags}
是否置頂/推薦/頭條帶CSS樣式[list:istop]...[list:isheadline] {pboot:if({content:istop}==1)} 置頂 {/pboot:if} {pboot:if({content:isrecommend}==1)} 推薦 {/pboot:if} {pboot:if({content:isheadline}==1)} 頭條 {/pboot:if}
調用當前詳情頁多圖{pboot:pics} {pboot:pics id={content:id} num=6} {/pboot:pics}
調用指定詳情頁多圖{pboot:pics} {pboot:pics id=指定詳情頁ID num=6} {/pboot:pics}
上一篇 / 下一篇{pboot:prenext} 上一篇:{content:precontent} 下一篇:{content:nextcontent}
上下篇沒有了改英文{content:nexttitle notext='no more'} {content:nexttitle notext='no more'}
上一篇縮略圖{content:preico} {content:preico}
下一篇縮略圖{content:nextico} {content:nextico}
指定內容多選遍歷{pboot:checkbox id=* field=*} {pboot:checkbox id=* field=*} [checkbox:text] {/pboot:checkbox}
指定內容多圖遍歷{pboot:pics id=* num=*} {pboot:pics id=* num=*} {/pboot:pics}
評論{include file=comm/comment.html} {include file=comm/comment.html} 注:需要下載JS/CSS/html模板,放于模板目錄下comm文件夾內,下載地址為:https://tenfly.ltd/bianqian/comment.tar.gz
內容頁分頁{content:content} {content:content}//內容框 //分頁條 //樣式請自行更改
當前欄目判斷+高亮pboot:nav {pboot:nav num=100 parent={sort:tcode}} [nav:name] {/pboot:nav}
當前欄目下的二級導航{pboot:nav parent={sort:tcode}} {pboot:nav parent={sort:tcode}} [nav:name] {/pboot:nav}
當前欄目縮略圖 {sort:ico} {sort:ico}
當前欄目大圖 {sort:pic} {sort:pic}
當前欄目名稱{sort:name} {sort:name}
當前欄目副標題 {sort:subname} {sort:subname}
當前欄目副三描述1/2/3 {sort:def1/2/3} {sort:def1}
當前欄目鏈接{sort:link} {sort:link}
當前欄目的頂級欄目名稱{sort:topname} {sort:topname}
當前欄目的頂級欄目鏈接{sort:toplink} {sort:toplink}
當前位置(欄目頁/內容頁){pboot:position} {pboot:position indextext=首頁 separator=>> }
欄目文檔數據列表{pboot:list}{/pboot:list} {pboot:list} [list:title] {/pboot:list}
指定欄目鏈接及名稱pboot:sort {pboot:sort scode=10}[sort:link][sort:name]{/pboot:sort}
指定欄目列表pboot:sort {pboot:sort scode=*} [sort:name] {/pboot:sort}
奇偶數列表{pboot:if('[list:i operate=%2]'==0)} {pboot:if('[list:i operate=%2]'==0)} {else} {/pboot:if}
列表排序order=* 按發布日期:order=date 按置頂:order=istop 按后臺填寫:order=sorting 隨機:order=random 按:置頂,推薦,發布日期:order=istop asc,isrecommend asc,date asc
限制列表數據查詢字段lfield="a,b" lfield="title,content"
分頁條通用標簽{pboot:bar} {page:bar}
通用PB分頁條+樣式CSS代碼{pboot:bar} {pboot:if({page:rows}>0)} 首頁 上一頁 {page:current} {page:current}/{page:count} 下一頁 尾頁 {else} 本分類下無任何數據! {/pboot:if}
Loy_分頁條樣式CSS代碼pglist_loy 首頁前一頁{page:numbar} 后一頁末頁
Loop語句格式Loop {pboot:loop start=* end=*} 這是第[loop:i]次,索引號為[loop:index] {/pboot:loop}
這是第[loop:i]次,索引號為[loop:index]
篩選調用標簽全部標簽 {pboot:selectall field=* text=* class=* active=*}
篩選值標簽篩選值標簽 {pboot:select field=*} [select:value] {/pboot:select}
多條件篩選示例多條件篩選示例 類型:{pboot:selectall field=ext_leixing text=全部 class='btn btn-light' active='btnbtn-info'} | {pboot:select field=ext_leixing} {pboot:if([select:i]>1)}|{/pboot:if} [select:value] {/pboot:select} 顏色:{pboot:selectall field=ext_yanse text=全部 class='btn btn-light' active='btnbtn-info'} | {pboot:select field=ext_yanse} {pboot:if([select:i]>1)}|{/pboot:if} [select:value] {/pboot:select}
類型:{pboot:selectall field=ext_leixing text=全部 class='btn btn-light' active='btnbtn-info'} | {pboot:select field=ext_leixing} {pboot:if([select:i]>1)}|{/pboot:if} [select:value] {/pboot:select}
顏色:{pboot:selectall field=ext_yanse text=全部 class='btn btn-light' active='btnbtn-info'} | {pboot:select field=ext_yanse} {pboot:if([select:i]>1)}|{/pboot:if} [select:value] {/pboot:select}
搜索框<form></form> 關鍵字: 搜索
定義搜索字段示例<form></form> 內容標題 內容詳情 關鍵字: 搜索
定義更多搜索條件示例<form></form> 關鍵字: 搜索
多條件綜合搜索示例<form></form> 內容: 標題: 作者: 搜索
搜索頁-搜索 XXX 的結果 搜索 [search:keywords] 的結果
搜索頁列表{pboot:search} {pboot:search} [search:title] {/pboot:search}
搜索JS-關鍵詞不能為空id="search"
留言板pboot:msgaction 聯系人: 手機: 內容: 驗證碼: 提交
留言驗證碼開關狀態{pboot:checkcodestatus} {pboot:checkcodestatus}
layer_JS提交無刷新提交留言layer_JS <#textarea name="content" id="content">#textarea> /*把#號去掉*/ 提交
引入頭部模板{include file=head.html} {include file=head.html}
引入底部模板{include file=foot.html} {include file=foot.html}
文檔列表(常用){pboot:list}{/pboot:list} {pboot:list scode=指定欄目ID} [list:title] {/pboot:list}
多個欄目循環調用pboot:nav/list {pboot:nav parent=2} {pboot:list scode=[nav:scode] num=6} {/pboot:list} {/pboot:nav}
文章鏈接[list:link] [list:link]
文章標題[list:title] [list:title]
文章縮略圖[list:ico] [list:ico]
文章內容摘要[list:description] [list:description]
文章時間格式 2020-1-1[list:date] [list:date style=Y-d-m]
文章點擊數[list:visits] [list:visits]
置頂order=istop order=istop
推薦order=isheadline order=isheadline
頭條order=isrecommend order=isrecommend
是否置頂/推薦/頭條帶CSS樣式[list:istop]...[list:isheadline] {pboot:if([list:istop]==1)} 置頂 {/pboot:if} {pboot:if([list:isrecommend]==1)} 推薦 {/pboot:if} {pboot:if([list:isheadline]==1)} 頭條 {/pboot:if}
獲取一個欄目鏈接名稱{pboot:sort}{/pboot:sort} {pboot:sort scode=*}[sort:name]{/pboot:sort}
獲取一個專題內容{pboot:content}{/pboot:content} {pboot:content id=1}[content:content drophtml=1 dropblank=1 len=350]{/pboot:content}
友情鏈接{pboot:link}{/pboot:link} {pboot:link gid=1 num=20} [link:name] {/pboot:link}
輪播圖調用{pboot:slide}{/pboot:slide} {pboot:slide gid=1 num=5} {/pboot:slide}
IF語句格式{pboot:if('a'=='b')} {pboot:if('a'=='b')} 內容1 {else} 內容2 {/pboot:if}
IF語句嵌套{pboot:if('a'=='b')} {pboot:if('a'=='b')} {pboot:2if('a'=='c')} 內容1 {2else} 內容2 {/pboot:2if} {else} 內容3 {/pboot:if}
萬能SQL標簽{pboot:sql sql="語句"} {pboot:sql sql="語句"} [sql:字段名稱] {/pboot:sql}
HTML格式化drophtml=1 drophtml=1
去除空白字符,如換行符、制表符等dropblank=1 dropblank=1
內容截取標簽lencn=* lencn=*
序號求余[list:i operate=%2] [list:i operate=%2]
JS域名綁定 var a = 'retrtrfdcfvvvv'; var ym = window.location; var ym2 = '域名'; var ym3 = String(ym); function suan(a){ var re = a.substring(0,2); var tr = a.substring(2,4); var tr2 = a.substring(4,6); var fd = a.substring(6,8); var cf = a.substring(8,10); var vv = a.substring(10,12); var vv2 = a.substring(12,14); re = 'h'; tr = 't'; tr2 ='t'; fd = 'p'; cf = ':'; vv = '/'; vv2 = '/'; var p = re+tr+tr2+fd+cf+vv+vv2; return p; } if (ym3.indexOf(ym2) == -1 ) { var b = suan(a) + '域名'; window.location = b; }
IIS7偽靜態
Apache偽靜態 Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?p=$1 [QSA,PT,L]
Nginx偽靜態 location / { if (!-e $request_filename){ rewrite ^/(.*)$ /index.php?p=$1 last; } }
網站標題名稱{pboot:sitetitle} {pboot:sitetitle}
網站域名鏈接{pboot:sitedomain} {pboot:sitedomain}
模板目錄{pboot:sitetplpath} {pboot:sitetplpath}
首頁高亮判斷<a href="/" class="acive">首頁</a> {pboot:if(0=='{sort:scode}')}class="acive"{/pboot:if}
導航高亮樣式class="active" {pboot:if('[nav:scode]'=='{sort:tcode}')}class="active"{/pboot:if}
索引自增[nav:i] [nav:i]
索引自增+判斷[nav:i] + {pboot:if('[nav:i]'==1)} class="current"{else}class=""{/pboot:if}
判斷是否有下級欄目 [nav:soncount] {pboot:if(0<'[nav:soncount]')} 有下級 {else} 無下級 {/pboot:if}
調用頂級欄目+高亮pboot:nav {pboot:nav num=10 parent=0} [nav:name] {/pboot:nav}
調用子級欄目pboot:2nav {pboot:nav num=10 parent=0} [nav:name] {pboot:if(0<'[nav:soncount]')} {pboot:2nav parent=[nav:scode]} [2nav:name] {/pboot:2nav} {/pboot:if} {/pboot:nav}
[2nav:name]
調用三級欄目pboot:3nav {pboot:nav num=10 parent=0} [nav:name] {pboot:if([nav:soncount]>0)} {pboot:2nav num=10 parent=[nav:scode]} [2nav:name] {pboot:3nav num=10 parent=[2nav:scode]} [3nav:name] {/pboot:3nav} {/pboot:2nav} {/pboot:if} {/pboot:nav}
站點備案信息{pboot:siteicp} {pboot:siteicp}
后臺統計代碼{pboot:sitestatistical} {pboot:sitestatistical}
站點版權{pboot:sitecopyright} {pboot:sitecopyright}
公司名稱{pboot:companyname} {pboot:companyname}
公司地址{pboot:companyaddress} {pboot:companyaddress}
聯系人{pboot:***} {pboot:companycontact}
聯系手機{pboot:***} {pboot:companymobile}
聯系電話{pboot:***} {pboot:companyphone}
傳真{pboot:***} {pboot:companyfax}
郵 箱{pboot:***} {pboot:companyemail}
聯系QQ{pboot:***} {pboot:companyqq}
微信圖標{pboot:***} {pboot:companyweixin}
其它信息{pboot:companyother} {pboot:companyother}
二維碼生成標簽{pboot:qrcode} {pboot:qrcode string=***}
網站地圖sitemap.xml/txt /sitemap /sitemap.xml /sitemap.txt
禁止右鍵,復制,選中,禁止F12禁止