久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機端+微網(wǎng)站+自適應網(wǎng)頁多模板選擇-建站388元起價!!!
當前位置:主頁 > 網(wǎng)站建設 > 2016模板下載吧整理收集 dede5.7標簽調(diào)用大全,搭建

2016模板下載吧整理收集 dede5.7標簽調(diào)用大全,搭建

時間:2023-07-23 12:07:23 閱讀: 文章分類: 網(wǎng)站建設 作者: IT網(wǎng)站員

導讀:搭建網(wǎng)站搭建網(wǎng)站最近在用DEDE仿站,經(jīng)常要用到一些標簽的調(diào)用,下面從網(wǎng)上找到了一些調(diào)用標簽,跟大家分享一下: 關(guān)鍵描述調(diào)用標簽: 建站的技術(shù)建站技術(shù)最近在用DEDE仿站,經(jīng)常要用到一些標簽的調(diào)用,下面從網(wǎng)上找到了一些調(diào)用標簽,跟大家分享一下: 關(guān)鍵描述調(diào)用標簽: <meta name="keywords" content="{dede:field name='keywords'/}"> <meta name="description" content="{dede:field name='description' function='html2text(@me)'/}"> 模板路徑調(diào)用標簽: {dede:field name='templeturl'/} 網(wǎng)站標題調(diào)用標簽: {dede:global name='cfg_webname'/} 欄目導航調(diào)用標簽: <a href="/" rel="external nofollow" >首頁</a></li> {dede:channel type='top' row='8' currentstyle="<li class='thisclass'><a href='~typelink~'>~typename~</a> </li>"} <li><a href='[field:typelink/]' target="_blank">[field:typename/]</a> </li> {/dede:channel} 指定調(diào)用欄目標簽: {dede:onetype typeid='ID'}[field:typename /]{/dede:onetype} 頻道欄目調(diào)用標簽: {dede:channel type='self'}<li><a href='[field:typelink/]'>[field:typename/]</a></li>{/dede:channel} 友情鏈接調(diào)用標簽: {dede:flink row='24' linktype=2/} 網(wǎng)站版權(quán)調(diào)用標簽: {dede:global name='cfg_powerby'/} 網(wǎng)站備案調(diào)用標簽: {dede:global name='cfg_beian'/} 當前欄目名稱標簽: {dede:field name='typename'/} 當前位置調(diào)用標簽: {dede:field name='position'/} 列表文章調(diào)用標簽: {dede:list pagesize='8'}{/dede:list} 欄目鏈接調(diào)用標簽: [field:typelink function='str_replace("a ","a class=ulink ",@me)'/] 作者鏈接調(diào)用標簽: [field:writer /] 列表點擊調(diào)用標簽: [field:click/] 列表評論調(diào)用標簽: [field:postnum/] 查閱全文調(diào)用標簽: <a href="[field:arcurl/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" >查閱全文...</a> 列表時間調(diào)用標簽: [field:pubdate function="GetDateTimeMK(@me)"/] 列表分頁調(diào)用標簽: {dede:pagelist listsize='4' listitem='index pre pageno next end '/} 列表頁查看更多調(diào)用標簽:{dede:field name='typeurl'/} 文章標題調(diào)用標簽: {dede:field name="title"/} 文章來源調(diào)用標簽: {dede:field name='source'/} 文章作者調(diào)用標簽: {dede:field name='writer' /} 文章時間調(diào)用標簽: {dede:field name='pubdate' function='GetDateMk(@me)'/} 文章Tag調(diào)用標簽: {dede:tag type='current'/} 文章點擊調(diào)用標簽: <script src="{dede:field%20name='phpurl'/}/count.php?aid={dede:field%20name='ID'/}&mid={dede:field%20name='memberid'/}&view=yes" language="javascript"></script> 文章內(nèi)容調(diào)用標簽: {dede:field name='body'/} 文章分頁調(diào)用標簽: {dede:pagebreak/} [<a href="{dede:field%20name='phpurl'/}/stow.php?arcID={dede:field%20name=ID/}" rel="external nofollow" >收藏</a>] [<a href="{dede:field%20name='phpurl'/}/recommend.php?arcID={dede:field%20name=ID/}" rel="external nofollow" >推薦</a>] [<a href="{dede:field%20name='phpurl'/}/feedback.php?arcID={dede:field%20name=ID/}" rel="external nofollow" >評論</a>] [<a href="#" rel="external nofollow" rel="external nofollow" onClick="window.print();">打印</a>] [<a href="#" rel="external nofollow" rel="external nofollow" onClick="window.close();">關(guān)閉</a>] 文章頂客次數(shù)標簽: {dede:field name='digg'/} <a href="javascript:Digg('digg',{dede:field%20name='id'/});" rel="external nofollow" >頂一下</a> 上一篇下一篇標簽: {dede:prenext get='pre'/}{dede:prenext get='next'/} 限制上一篇下一篇的長度:打開:include/arc.archives.class.php 查找以下代碼: $this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> "; 在這一段代碼的前一段,也就是上面添加以下代碼: $preRow['title']=cn_substr($preRow['title'],40); 字符,40 表示字符數(shù),你的梅花要求自行修改數(shù)字. //限制上下篇文章標題的 限制上一篇下一篇的文 章標題長度字符 修改好了上一篇的標題字符的長度,現(xiàn)在同樣的操縱修改下一篇的標題字符的長度.找到以 下代碼: $this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> "; 在這一段代碼的上面添加以下以下代碼: $preRow['title']=cn_substr($preRow['title'],40); 字符,40 表示字符數(shù),你的梅花要求自行修改數(shù)字. //限制上下篇文章標題的 這樣就完成了修改了. 頭條推薦調(diào)用標簽: {dede:arclist row=1 titlelen=24 orderby=pubdate att=2} <dt> [field:textlink/] <span>[field:description/]……</span> </dt> {/dede:arclist} 最新文章調(diào)用標簽: {dede:arclist row=8 titlelen=24 orderby=pubdate}<li>[field:textlink/]</li> {/dede:arclist} 熱關(guān)鍵字調(diào)用標簽: {dede:hotwords num='5' subday='30'/} 最新圖文調(diào)用標簽: {dede:arclist row=4 titlelen=20 orderby=pubdate type='image.' imgwidth='152' imgheight='98'} <dd><a href="[field:arcurl/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="[field:picname/]" alt="[field:title/]" ></a><span><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl%20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external 織夢cms模板nofollow" rel="external nofollow" rel="external nofollow" >[field:title /]</a></span> </dd>{/dede:arclist} 推薦文檔調(diào)用標簽: {dede:arclist type='commend' titlelen='40' row='10'} <li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl%20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >[field:title /]</a></li> {/dede:arclist} 隨機推薦調(diào)用標簽: {dede:arclist type='commend' titlelen='26' orderby='rand' row='10'} <li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl%20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >[field:title /]</a></li> {/dede:arclist} 熱點文檔調(diào)用標簽: {dede:arclist orderby='click' titlelen='40' row='10'} <li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl%20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >[field:title /]</a></li> {/dede:arclist} 相關(guān)文檔調(diào)用標簽: {dede:likeart titlelen='24' row='10'} <li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl%20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >[field:title /]</a></li> {/dede:likeart} 調(diào)用圖片鏈接標記: <a href="[field:arcurl/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src="[field:picname/]" alt="[field:title/]" ></a> <a href='[field:arcurl%20/]'>[field:image/]</a> 調(diào)用文字鏈接標記: <a href="[field:aucurl/]" rel="external nofollow" title="[field:title/]">[field:title/]</a> <a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl%20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >[field:title /]</a> 控制字數(shù)描述標記: [field:description function="cn_substr(@me,100)"/]... 調(diào)用文章tags標記: {dede:tag type='current'/} 文章關(guān)鍵字與描述: {dede:field name='keywords'/} {dede:field name='description' function='html2text(@me)'/} 欄目介紹:{dede:field name='description' function='html2text(@me)'/} 調(diào)用外部htm文件:{dede:include file='head.htm' ismake='yes'/} 搜索文章調(diào)用標簽:{dede:global name='keyword'/}&quot;的搜索結(jié)果 - {dede:global name='cfg_webname'/} 搜索&quot; {dede:global name='keyword'/}</span>&quot; 的結(jié)果 遞增序列號: [field:global name=autoindex/] 列表隔5行加一行線: {dede:list pagesize='50'} <LI><a href="[field:arcurl%20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" title="[field:title function='htmlspecialchars(@me)'/]" target=_blank>[field:title function="cn_substr(@me,48)"/]</a>[field:pubdate runphp='yes'] $a="<font color=red>".strftime('%m-%d',@me)."</font>"; $b=strftime('%m-%d',@me); $ntime = time(); $day3 = 3600 * 24; if(($ntime - @me) < $day3) @me = $a; else @me =$b; [/field:pubdate]<br> [field:global name=autoindex runphp="yes"] if(@me%5==0)@me="<hr />"; else @me=""; [/field:global] {/dede:list} <DIV class="line2 m1 m3"></DIV></LI> 最新 文章列表 “隔行換色” 的方法 {dede:arclist orderby=pubdate titlelen='26' row='10'} [field:global runphp='yes' name=autoindex] $a="<div id='a'>"; $b="<div id='b'>"; if ((@me%2)==0) @me=$a; else @me=$b; [/field:global] <ul> <li>[field:title/]</li> </ul> </div> {/dede:arclist} 24小時內(nèi)更新的文章時間顯示為紅色: [field:pubdate runphp='yes'] $a="<font color=red>".strftime('%m-%d',@me)."</font>"; $b=strftime('%m-%d',@me); $ntime = time(); $day3 = 3600 * 24; if(($ntime - @me) < $day3) @me = $a; else @me =$b; [/field:pubdate] COPY頁面內(nèi)容,自動在后面加上網(wǎng)站信息,利于SEO <script type="text/javascript"> document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "rn本篇文章來源于 www.地址.COM 原文鏈接:"+location.href; clipboardData.setData("text", text); } }, 100 ) } </script> 按時間點擊文章排行榜調(diào)用標簽: 按總: {dede:arclist row='24' titlelen=24 orderby=click} 按月: {dede:arclist row='24' titlelen=8 orderby=click subday=30} 按周: {dede:arclist row='24' titlelen=8 orderby=click subday=7} 在首頁調(diào)用某欄目的子欄目 {dede:channel type=’sun’ typeid=’欄目ID’} <a href=”[field:typelink/]“>[field:typename/]</a> {/dede:channel} 或者 {dede:global name=’maplist’/} 搜索表單調(diào)用標簽: <form action="{dede:global name='cfg_phpurl'/}/search.php" name="formsearch"> <input type="hidden" name="kwtype" value="1" /> <input name="keyword" id="keyword" type="text" class="searchtxt" /> <select name="searchtype" id="searchtype"> <option value="titlekeyword" selected>智能模糊搜索</option> <option value="title">僅搜索標題</option> </select> <input type="image" src="{dede:field%20name='templeturl'/}/images/topsearch_submit.gif" /> </form> 實現(xiàn)“文章標題-2級欄目-1級欄目-網(wǎng)站名”形式 {dede:field name='title'/}-{dede:field name='position' runphp='yes'} $tc="-"; //分隔符 $tw=$GLOBALS['cfg_list_symbol']; //調(diào)用位置分隔符 @me=html2text(@me); //去除html標簽 $tf=split($tw,@me); //分解成數(shù)組 for($ta=(count($tf)-2);$ta>=1;$ta--){ //循環(huán)賦值給$tk $tk.=trim($tf[$ta]).$tc; } $tk=substr($tk,0,-1); @me=$tk; //賦值給@me {/dede:field}-{dede:global name='cfg_webname'/} 調(diào)用縮略圖: <img src='{dede:field name="litpic"/}'> 發(fā)布的文章顯示紅色日期或加上new字或new小圖片 給近三天(或當天)發(fā)布的文章顯示紅色日期或加上new字或new小圖片等。 都是圍繞pubdate做文章,寫擴展的。 第2、3要注意的問題是:如:"<img src='new.gif' />中不能用雙引號,否則不行。 如果要給當天的加,把 3600 * 24 * 3 改為 3600 * 24  即可。 1、==========紅色的日期======== [field:pubdate runphp='yes'] $a="<font color=red>".strftime('%m-%d',@me)."</font>"; $b=strftime('%m-%d',@me); $ntime = time(); $day3 = 3600 * 24 * 3; if(($ntime - @me) < $day3) @me = $a; else @me =$b; [/field:pubdate] 2、==========紅色的(new)======== [field:pubdate runphp='yes'] $aa=strftime('%m-%d',@me); $ntime = time(); $tagtime = @me; $day3 = 3600 * 24 * 3; if($tagtime > $ntime-$day3) @me = "<font color='red'>(new)</font>"; else @me = $aa; [/field:pubdate] 3、==========加new.gif小圖片======== [field:pubdate runphp='yes'] $aa=strftime('%m-%d',@me); $ntime = time(); $tagtime = @me; $day3 = 3600 * 24 * 3; if($tagtime > $ntime-$day3) @me = "<img src='new.gif' />".$aa; else @me = $aa; [/field:pubdate] 時間效果 [field:pubdate runphp="yes"] if((time()-@me)<(60*60*24)){@me=' <font color="#ff6600">'.strftime("%H:%M",@me).'</FONT>';} else {@me=strftime("%m-%d",@me);} [/field:pubdate] DEDE seo小技巧 加個百度搜索本篇文章 【<a href="javascript:" rel="external nofollow" rel="external nofollow" onclick='window.open("http://www.baidu.com/s?q1={dede:field name="title" /}&q2=&q3=&q4=&rn=10&lm=0&ct=1&ft=&q5=&amp;q6=你的網(wǎng)址")' target="_top" title="在百度搜索“{dede:field name="title" /}”相關(guān)內(nèi)容"><font color=red>在百度搜索更多繁體字</font></a>】 把網(wǎng)址改一下,不加http 【<a href="javascript:" rel="external nofollow" rel="external nofollow" onclick='window.open("http://www.baidu.com/baidu?word={dede:field name="title" /}")' target="_top" title="在百度搜索“{dede:field name="title" /}”相關(guān)內(nèi)容 調(diào)用tag: {dede:field name='keywords' runphp='yes' } if(!empty(@me)){ $kws = explode(' ',@me); @me = ""; foreach($kws as $k){ @me .= "<a href='/tag.php?/$k/'>$k</a> "; } @me= str_replace('+', ' ',trim(@me)); } {/dede:field} -------------------------------------------------------------------------------- 真正采集熱門Tags,刷新一次變換一次 模板代碼: {dede:tag row='10' sort='month' } <a class="tag" href='[field:link/]'>[field:tagname/] </a> {/dede:tag} <script language="javascript"> <!-- var tag_a=document.getElementsByTagName("a"); for( i in tag_a){ var offset=6; var num=4; if(tag_a[i].className=="tag"){ var rnd=Math.ceil((num+offset)*Math.random()); if(rnd>offset){ tag_a[i].className="tag"+(rnd-offset); } } } //--> </script> CSS代碼: .tag1 { color:#339900;font-weight:bold;} .tag2 { color:#e65730;} .tag3 { color:#00b9da;} .tag4 { color:#FE3981;font-weight:bold;font-size:14px;} 更換標簽方式: 默認調(diào)用的是當月熱門標簽,如果換想其他的可以: -------------------------------------------------------------------------------- 最新標簽 {dede:tag row='30' sort='new'}<a href='[field:link/]'>[field:highlight/]([field:result/])</a> {/dede:tag} -------------------------------------------------------------------------------- 當月熱門標簽 {dede:tag row='30' sort='month'}<a href='[field:link/]'>[field:tagname/]([field:result/])</a> {/dede:tag} -------------------------------------------------------------------------------- 隨機標簽 {dede:tag row='60' sort='rand'}<a href='[field:link/]'>[field:highlight/]([field:result/])</a> {/dede:tag} -------------------------------------------------------------------------------- 任何系統(tǒng)頁面調(diào)用會員積分排行: {dede:sql sql="Select id,userid,uname,scores From dede_member order by scores desc limit 0,10"} <dd><span class="name"><a href='[field:global name='cfg_cmspath'/]/member/?[field:userid/]/'>[field:uname/]</a> </span><span class="jifen">積分[field:scores/]</span></dd> {/dede:sql} -------------------------------------------------------------------------------- <!--問答系統(tǒng)-->調(diào)用 {dede:ask row='10'} <li> <span class="gpclass">[<a href="[field:typeurl/]" rel="external nofollow" >[field:tidname/]</a>]</span> <span class="gptlink"><a href="[field:url/]" rel="external nofollow" >[field:title/]</a></span> </li> {/dede:ask} -------------------------------------------------------------------------------- 企業(yè)調(diào)用 {dede:sql sql="SELECT m.ID,m.type,m.userid,m.matt,c.id,c.comname FROM dede_member m left join dede_member_cominfo c on m.ID = c.id where m.type = 1 and m.matt = 1 LIMIT 0 , 10"} <dd><span class="name"><a href='[field:global name='cfg_cmspath'/]/member/?[field:userid/]/'>[field:comname/]</a> </span></dd> {/dede:sql} -------------------------------------------------------------------------------- 專題調(diào)用 {dede:arclist row=10 orderby=rand type='spec.'} <li><a href="[field:filename%20function='str_replace(" rel="external nofollow" index.html","",@me)'/]" target="_blank"><STRONG>[field:title function=' ( strlen("@me")>16 ? cn_substr("@me",16): "@me" ) '/] </STRONG></a> </li> {/dede:arclist} -------------------------------------------------------------------------------- 列表頁調(diào)用TAG標簽的兩種方法 dedecms默認在列表是無法調(diào)用tag標簽的,經(jīng)過各位版主們的幫助,現(xiàn)給大家提供出種方法 方法1: 在列表需要的位置加入下列代碼 [field:id runphp=yes] $tsql = new DedeSql(false); $tags = ''; $tsql->SetQuery("Select i.tagname From dede_tag_list t left join dede_tag_index i on i.id=t.tid wheret.aid='@me'"); $tsql->Execute('t'); while($row = $tsql->GetArray('t',MYSQL_ASSOC)){ $tags .= "<a href='/tag.php?/".urlencode($row['tagname'])."'>".$row['tagname']."</a>"; } @me=$tags; [/field:id] 方法2: 在inc_functions.php文件里加入 function listtag($aid){ $tsql = new DedeSql(false); $tags = ''; $tsql->SetQuery("Select i.tagname From dede_tag_list t left join dede_tag_index i on i.id=t.tid where t.aid='$aid'"); $tsql->Execute('t'); while($row = $tsql->GetArray('t',MYSQL_ASSOC)){ $tags .= "<a href='/tag.php?/".urlencode($row['tagname'])."'>".$row['tagname']."</a>"; } return $tags; } 然后在列表頁相應位置加入 [field:ID function="listtag(@me)"/]標記 -------------------------------------------------------------------------------- {dede:arclist typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword=''} -------------------------------------------------------------------------------- 去除html [field:title function='htmlspecialchars(@me)'/] 主要使用在FLASH以及<a>中,是了了去除標簽中的HTML元素,比如<b></b>等,如果不使用此標簽,則會導致HTML代碼顯示在頁面中。 使用方法 ------------------------------------------------------------------------------- <a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl%20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >[field:title /]</a> 或者 <a href="[field:arcurl%20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><img src='[field:litpic/]' alt="[field:title function='htmlspecialchars(@me)'/]" border='0' width='' height=''></a> 圖片: 1: <a href='[field:arcurl%20/]'><img src='[field:litpic/]' border='0' width='' height=''></a> 2: [field:imglink /] 3: <a href='[field:arcurl%20/]'> [field:image/]</a> [field:imglink /]與<a href='[field:arcurl%20/]'>[field:image/]</a> 是完全等價的,只不過后者更靈活一點,可以在 <a>中添加 title="" 即 <a href='[field:arcurl%20/]' title="[field:title function='htmlspecialchars(@me)'/] ">[field:image/]</a> <a href='[field:arcurl%20/]'><img src='[field:litpic/]' border='0' width='' height=''></a> 則更為靈活,不僅可以添加title="",還可以添加 alt="",但是雖然靈活了,缺少了圖片的寬度和高度的控制,所以要在CSS中控制圖片的大小,適合對CSS有一點了解的人。 欄目: 1: <a href='[field:typeurl /]'>[field:typename /]</a> 2:[field:typelink /] 二者是相等的,只不過是前者更靈活一點 連接: 1: <a href='[field:arcurl%20/]'>[field:title /]</a> 2:[field:textlink /] 兩者是相等的,前者比后者更靈活,可以增加titie="" 在這里應該注意的是,title長度的問題,dedecms數(shù)據(jù)庫中最大長度為80字節(jié),40漢字寬度,另外,arclist標簽里面如果不設置titlelen的值,則默認取值為30字符,15漢字寬度 所以除了在使用titlelen控制標題長度,還可以使用另外一種方法來控制標題長度 設置titlelen="80" <a href="[field:arcurl%dede模板下載20/]" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" title="[field:title function='htmlspecialchars(@me)'/]"夢織模板>[field:title function="cn_substr(@me,40)"/]</a> 這種格式的好處是,title=""中為完整標題,即鼠標停留顯示完整標題,function="cn_substr(@me,40)"作用是截取40字符寬度,20漢寬度。 點擊: [field:click/] [field:click runphp="yes"] if(@me>1000)@me='<font color="#ff0000">@me</font>'; else @me=@me; [/field:click] 超過1000點擊的,顯示紅色 簡介: 1: [field:info /] 2: [field:description /] 3: [field:info function="cn_substr(@me,120)"/] 4: [field:description function="cn_substr(@me,120)"/] 兩種是相等的,簡介長度有兩種控制方式,一種是infolen="" 控制,如果infolen無參數(shù),則默認為250 另外一種是使用function="cn_substr(@me,120)"控制 120為所取字符寬度, 日期: [field:pubdate /] 效果 1:[field:pubdate runphp="yes"] if((time()-@me)<(60*60*24)){@me=' <font color="#ff6600">'.strftime("%H:%M",@me).'</FONT>';} else {@me=strftime("%m-%d",@me);} [/field:pubdate] 效果 2: 24內(nèi)發(fā)布的文章日期顯示紅色 [field:pubdate runphp="yes"] if((time()-@me)<(60*60*24)){@me=' <font color="#ff6600">'.strftime("%m-%d",@me).'</FONT>';} else {@me=strftime("%m-%d",@me);} [/field:pubdate] [field:pubdate function='strftime("%Y-%m-%d %H:%M:%S",@me)'/] 2008-11-01 11:11:52 [field:pubdate function='strftime("%y-%m-%d %H:%M:%S",@me)'/] 08-11-01 11:11:52 [field:pubdate function='strftime("%m-%d %H:%M:%S",@me)'/] 11-01 11:14:20 [field:pubdate function='strftime("%m-%d %H:%M",@me)'/] 11-01 11:14 [field:pubdate function='strftime("%y-%m-%d",@me)'/] 08-11-01 [field:pubdate function='strftime("%y年%m月%d日",@me)'/] 08年11月01日 [field:pubdate function='strftime("%Y年%m月%d日 %H點%M分%S秒",@me)'/] 2008年11月01日 11點17分36秒 [field:pubdate function='strftime("%b %d, %Y",@me)'/] Nov 01, 2008 [field:pubdate function='strftime("%A on %b %d, %Y, %X : %Z",@me)'/] Saturday on Nov 01, 2008, 11:21:06 : 中國標準時間 %a 星期幾的縮寫。 %A 星期幾的全名。 %b 月份名稱的縮寫。 %B 月份名稱的全名。 %c 本地端日期時間較佳表示字符串。 %d 用數(shù)字表示本月的第幾天 (范圍為 00 至 31)。 %H 用24小時制數(shù)字表示小時數(shù) (范圍為 00 至 23)。 %I 用12小時制數(shù)字表示小時數(shù) (范圍為 01 至 12)。 %j 以數(shù)字表示當年度的第幾天 (范圍為001至 366)。 %m 月份的數(shù)字 (范圍由 1 至 12)。 %M 分鐘。 %p 以 'AM' 或 'PM' 表示本地端時間。 %S 秒數(shù)。 %U 數(shù)字表示為本年度的第幾周,第一個星期由第一個周日開始。 %W 數(shù)字表示為本年度的第幾周,第一個星期由第一個周一開始。 %w 用數(shù)字表示本周的第幾天 ( 0 為周日)。 %x 不含時間的日期表示法。 %X 不含日期的時間表示法。 %y 二位數(shù)字表示年份 (范圍由 00 至 99)。 %Y 完整的年份數(shù)字表示,即四位數(shù)。 %Z 時區(qū)或名稱縮寫。 %% % 字符。 評論: [field:postnum/] 作者: [field:writer /] {/dede:arclist}相關(guān)建站的技術(shù)建站技術(shù)。

關(guān)鍵詞標簽: 搭建網(wǎng)站 標簽 模板下載

聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-07-23 ,文章2016模板下載吧整理收集 dede5.7標簽調(diào)用大全,搭建主要講述標簽,模板下載,搭建網(wǎng)站網(wǎng)站建設源碼以及服務器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_35583.html

我的IDC 網(wǎng)站建設技術(shù)SEOUC.COM
專注網(wǎng)站建設,SEO優(yōu)化,小程序設計制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 介休市| 宁都县| 兴隆县| 盐边县| 上犹县| 新密市| 华阴市| 清远市| 鄢陵县| 进贤县| 任丘市| 惠来县| 徐州市| 衡水市| 潮安县| 二连浩特市| 仁化县| 乌拉特后旗| 鹤山市| 三台县| 兖州市| 昔阳县| 县级市| 乌拉特后旗| 商水县| 曲靖市| 嘉峪关市| 育儿| 福州市| 定远县| 民县| 长汀县| 辉南县| 和龙市| 鸡西市| 花莲市| 丰都县| 襄樊市| 长治县| 瑞丽市| 伊川县|