抓取结果
织梦常用模板标签_六久阁 内容模板 article_article.htm 标题 / 关键词 / 描述title / keywords / description <title>{dede:field.title/} - {dede:global.cfg_webname/}</title> <meta name="keywords" content="{dede:field.keywords/}"/> <meta name="description" content="{dede:field.description function=html2text(@me)/}"/> 电脑站跳转到手机站js代码mobile-agent <meta http-equiv="mobile-agent" content="format=xhtml;url={dede:global.cfg_mobileurl/}/view.php?aid={dede:field.id/}"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){if(window.location.href.indexOf("?mobile")<0){try{if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){window.location.href="{dede:global.cfg_mobileurl/}/view.php?aid={dede:field.id/}";}else if(/iPad/i.test(navigator.userAgent)){}else{}}catch(e){}}}}</script> 文章标题{dede:field.title/} {dede:field.title/} 文章内容摘要{dede:field.description/} {dede:field.description/} 文章时间格式 2020-1-1{dede:field.pubdate/} {dede:field.pubdate function="MyDate('Y-m-d',@me)"/} 文章点击数(动态){dede:field.click/} <script src="/plus/count.php?view=yes&aid={dede:field.id/}&mid={dede:field.mid/}" type='text/javascript' language="javascript"></script> 文章作者{dede:field.writer/} {dede:field.writer runphp=yes}@me = (empty(@me) ? "admin" : "@me");{/dede:field.writer} 文章来源{dede:field.source/} {dede:field.source runphp=yes}@me = (empty(@me) ? "本站" : "@me");{/dede:field.source} 文章当前链接(动态/静态){dede:field.arcurl/} {dede:global.cfg_basehost/}{dede:field.id runphp='yes'}$result=GetOneArchive(@me);@me=$result['arcurl'];{/dede:field.id} 文章内容{dede:field.body/} {dede:field.body/} 文章内容分页条{dede:pagebreak/} {dede:pagebreak/} 文章相关文章{dede:likearticle} {dede:likearticle mytypeid='' row='' col='' titlelen='' infolen=''}{/dede:likearticle} 文章相关文章(二开){dede:liketags} {dede:liketags row='3' typeid='6' titlelen='250' eregtype='all|tag|keyword' flag='c' infolen='250'}{/dede:liketags} 文章TAG标签{dede:tag}{/dede:tag} {dede:tag row='30' sort='new' getall='0'}<a href="[field:link/]">[field:tag /]</a>{/dede:tag} 图集图片调用{dede:field name=imgurls/} {dede:field name=imgurls alt=图片输出区 row=1}[field:imgsrc/]{/dede:field} 图集图片调用{dede:productimagelist} {dede:productimagelist}[field:imgsrc/][field:text/]{/dede:productimagelist} 上一篇 / 下一篇{dede:prenext/} {dede:prenext get=pre/}{dede:prenext get=next/} 列表模板 list_article.htm 标题 / 关键词 / 描述title / keywords / description <title>{dede:field.seotitle /}{dede:pagelist listitem="pageno" listsize="0" runphp='yes'}@me=trim(strip_tags(@me));if (is_numeric(@me)){if (@me!='1') @me='_第'.@me.'页';else @me="";}else @me="";{/dede:pagelist}_{dede:global.cfg_webname/}</title> <meta name="keywords" content="{dede:field.keywords/}"/> <meta name="description" content="{dede:field.description function=html2text(@me)/}"/> 电脑站跳转到手机站js代码mobile-agent <meta http-equiv="mobile-agent" content="format=xhtml;url={dede:global.cfg_mobileurl/}/list.php?tid={dede:field.id/}"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){if(window.location.href.indexOf("?mobile")<0){try{if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){window.location.href="{dede:global.cfg_mobileurl/}/list.php?tid={dede:field.id/}";}else if(/iPad/i.test(navigator.userAgent)){}else{}}catch(e){}}}}</script> 获取顶级栏目相关信息gettoptype(@me,typename) {dede:field.typeid function=gettoptype(@me,typename)/} 获取上级栏目相关信息getredtype(@me,typename) {dede:field.typeid function=getredtype(@me,typename)/} 顶级栏目判断+高亮{dede:field.topid/} {dede:field name=topid runphp=yes}if(@me)@me=''; else @me=' class="current"';{/dede:field} 当前栏目名称{dede:field.typename/} {dede:field.typename/} 当前栏目内容{dede:field.content/} {dede:field.content/} 当前栏目链接{dede:type}[field:typeurl/]{/dede:type} {dede:type}[field:typeurl/]{/dede:type} 当前位置{dede:field.position/} {dede:field.position/} 栏目文档数据列表{dede:list}{/dede:list} {dede:list pagesize='10' titlelen='250'}{/dede:list} 栏目分页条标签{dede:pagelist/} <div class="my_pages"><ul>{dede:pagelist listitem="index,end,pre,next,pageno" listsize="3" pagelang=""/}</ul></div> 栏目文档总数量(二开){dede:itemcount/} {dede:itemcount listsize='4'/} 栏目分页条通用样式CSS代码 .my_pages{clear:both!important;padding:5px 0 0;text-align:center;margin:5px auto;line-height:30px;} .my_pages ul{text-align:center;list-style:none;} .my_pages ul li{list-style:none;text-align:center;height:24px;display:inline;margin:0 2px;padding:0;overflow:hidden;white-space:nowrap;font-size:13px;} .my_pages ul li a{background:#fff;color:#555;display:inline;height:24px;overflow:hidden;padding:6px 10px;margin:0;border: #999 1px solid;} .my_pages ul li a:hover{color:#fff;background:#FF6600;border:#FF6600 1px solid;height:24px;overflow:hidden;text-decoration:none;cursor:pointer;} .my_pages ul li.thisclass a{background:#FF6600;border:#FF6600 1px solid;height:24px;overflow:hidden;color:#fff;font-weight:700;} 电脑站搜索框和相关传參<form></form> <form name="formsearch" action="/plus/search.php"> <input type="hidden" name="pagesize" value="15"> <input type="hidden" name="kwtype" value="0"/> <input type="text" name="q" value=""/> </form> 搜索页-搜索 XXX 的结果 搜索 {dede:global.keyword function=RemoveXSS(@me)/} 的结果 自增+取余[中括号][field:global name=autoindex/] [field:global name=autoindex runphp=yes](@me%4==1) ? @me='<tr>':@me='';[/field:global] 首页模板 index.htm 标题 / 关键词 / 描述title / keywords / description <title>{dede:global.cfg_webname/}</title> <meta name="keywords" content="{dede:global.cfg_keywords/}"/> <meta name="description" content="{dede:global.cfg_description/}"/> 电脑站跳转到手机站js代码mobile-agent <meta http-equiv="mobile-agent" content="format=xhtml;url={dede:global.cfg_mobileurl/}"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){if(window.location.href.indexOf("?mobile")<0){try{if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){window.location.href="{dede:global.cfg_mobileurl/}";}else if(/iPad/i.test(navigator.userAgent)){}else{}}catch(e){}}}}</script> 引入头部模板{dede:include filename="head.htm"/} {dede:include filename="head.htm"/} 引入底部模板{dede:include filename="foot.htm"/} {dede:include filename="foot.htm"/} 文档列表(常用){dede:arclist}{/dede:arclist} {dede:arclist typeid='' row='' titlelen='50' channelid='' addfields='' flag='' isweight='' orderby='' orderway='' limit=''}{/dede:arclist} 文章链接[field:arcurl/] [field:arcurl/] 文章标题[field:title/] [field:title/] 文章完整标题[field:fulltitle/] [field:fulltitle/] 文章缩略图[field:litpic/] [field:litpic/] 文章内容摘要[field:description/] [field:description function=cn_substr(@me,250)/] 文章时间格式 2020-1-1[field:pubdate/] [field:pubdate function="MyDate('Y-m-d',@me)"/] 文章时间格式 May 15, 2020[field:pubdate/] [field:pubdate function='strftime("%b %d, %Y",@me)'/] 文章点击数[field:click/] [field:click/] 获取一个栏目链接{dede:type}{/dede:type} {dede:type typeid=}[field:typeurl/]{/dede:type} 获取一个栏目内容(二开)[field:content/] {dede:type typeid=}[field:content function=cn_substr(html2text(@me),380)/]{/dede:type} 友情链接{dede:flink}{/dede:flink} {dede:flink type='text' row='100'}[field:url/][field:webname/]{/dede:flink} 幻灯大图小图(插件){dede:myppt}{/dede:myppt} {dede:myppt typeid=1 row=6}[field:url/][field:pic/][field:pic2/][field:title/]{/dede:myppt} 头部尾部 head.htm / foot.htm 网站标题名称{dede:global.cfg_webname/} {dede:global.cfg_webname/} 网站域名链接{dede:global.cfg_basehost/} {dede:global.cfg_basehost/} 站点安装目录{dede:global.cfg_cmspath/} {dede:global.cfg_cmspath/} 首页高亮判断<a href="/" class="current">首页</a> {dede:field name=typeid runphp=yes}(@me=='')? @me=' class="current"':@me='';{/dede:field} channelartlist多个栏目调用dede:channelartlist {dede:channelartlist row=7 typeid=top currentstyle=current}{dede:field.typeurl/}{dede:field.typename/}{/dede:channelartlist} channelartlist栏目高亮样式dede:field.currentstyle {dede:field.currentstyle/} 自增{大括号}dede:global.itemindex {dede:global name=itemindex/} 自增+判断{大括号}dede:global.itemindex + {dede:global name=itemindex runphp=yes}if(@me==1)@me=' class="current"';else @me='';{/dede:global} 是否最后一个(二开)dede:global.iflast {dede:global name=iflast runphp=yes}if (@me) @me = '';else @me = '|';{/dede:global} 栏目外部链接新窗口打开dede:field.ispart {dede:field.ispart runphp=yes}(@me==2)? @me=' target="_blank"':@me='';{/dede:field.ispart} 判断是否有下级栏目dede:field.typeid runphp=yes {dede:field name=typeid runphp=yes}global $dsql;$sql = "SELECT id FROM `#@__arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0,1";$row = $dsql->GetOne($sql);@me=is_array($row)?'有下级':'没下级';{/dede:field} channel调用顶级栏目+高亮dede:channel type='top' {dede:channel type='top' row='7' currentstyle="<a href='~typelink~' title='~typename~' class='cur'>~typename~</a>"} <a href='[field:typelink /]' title='[field:typename/]'>[field:typename/]</a> {/dede:channel} channel调用子级栏目dede:channel type='son' {dede:channel type=son noself=yes}[field:typelink/][field:typename/]{/dede:channel} 自增[中括号][field:global name=autoindex/] [field:global name=autoindex/] 自增+判断[中括号][field:global name=autoindex/] [field:global name=autoindex runphp=yes](@me==1)? @me=' class="current"':@me='';[/field:global] 是否最后一个(二开)dede:global.iflast [field:global name=iflast runphp=yes]if (@me) @me = '';else @me = '|';[/field:global] 栏目外部链接新窗口打开dede:field.ispart [field:ispart runphp=yes](@me==2)? @me=' target="_blank"':@me='';[/field:ispart] 不常用标签 more 首页/列表页模板缩略图为空不输出,不为空输出html和多个字段 [field:array runphp=yes] global $cfg_templets_skin; @me = (@me['litpic'] == '/images/defaultpic.gif' ? "" : "<div class='image_frame'><a href='{@me['arcurl']}'><img src='{@me['litpic']}'></a></div>"); [/field:array]复制1234 首页/列表页模板缩略图为空不输出,不为空输出html和缩略图字段 [field:array runphp=yes]if(@me == '/images/defaultpic.gif')@me = "";else @me = "<div class='news-pic'><img src='@me'></div>";[/field:array]复制1 首页/列表页模板另一种自增判断含多字段 [field:array runphp=yes] if($GLOBALS[autoindex]%4==0)@me="{@me['litpic']}";else @me="{@me['title']}"; [/field:array]复制123 内容页模板缩略图为空不输出,不为空输出html和多个字段 {dede:field name=array runphp=yes} global $cfg_templets_skin; @me = (@me['litpic'] == '/images/defaultpic.gif' ? "" : "<div class='image_frame'><a href='{@me['arcurl']}'><img src='{@me['litpic']}'></a></div>"); {/dede:field}复制1234 内容页模板缩略图为空不输出,不为空输出html和缩略图字段 {dede:field.litpic runphp=yes}if(@me == '/images/defaultpic.gif')@me = "";else @me = "<div class='news-pic'><img src='@me'></div>";{/dede:field.litpic}复制1 内容页模板另一种自增判断含多字段 {dede:field name=array runphp=yes} if($GLOBALS[autoindex]%4==0)@me="{@me['litpic']}";else @me="{@me['title']}"; {/dede:field}复制123 dede:sql 文档链接的写法 {dede:sql sql="SELECT * FROM #@__archives WHERE arcrank>-1 AND id in(~myid~) ORDER BY FIELD(id,~myid~)"} <a href="[field:id runphp=yes]$id=@me;$url=GetOneArchive($id);@me=$url['arcurl'];[/field:id]"><img src="[field:litpic/]">[field:title/]</a> <p>[field:description/]</p> {/dede:sql}复制1234 dede:sql 栏目链接的写法 {dede:sql sql="SELECT * FROM #@__arctype WHERE reid=1 AND typename=~title~"} <a href="[field:array runphp=yes]@me = GetOneTypeUrlA(@me);[/field:array]">[field:typename/]</a> {/dede:sql}复制123 一级 / 二级 / 三级 栏目调用 <!-- 一级栏目 --> {dede:channelartlist row=7 typeid=top currentstyle=current} <li> <a href="{dede:field.typeurl/}">{dede:field.typename/}</a> <ul class="class2"> <!-- 二级栏目 --> {dede:channel type=son noself=yes} <li> <a href="[field:typelink/]">[field:typename/]</a> <ul class="class3"> <!-- 三级栏目 --> [field:id runphp=yes] global $dsql; $sql = "Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=@me And ishidden<>1 order by sortrank asc limit 0,10"; $dsql->SetQuery($sql); $dsql->Execute('t'); $result = ''; while($row = $dsql->GetArray('t')) { $typename = $row['typename']; $typeurl = GetOneTypeUrlA($row); $result .= "<li><a href='{$typeurl}'>{$typename}</a></li>"; } @me = $result; [/field:id] </ul> </li> {/dede:channel} </ul> </li> {/dede:channelartlist}复制12345678910111213141516171819202122232425262728293031 一级 / 二级 / 二级栏目下的文章+自定义字段调用 <!-- 一级栏目 --> {dede:channelartlist row=7 typeid=top currentstyle=current} <li> <a href="{dede:field.typeurl/}">{dede:field.typename/}</a> <ul class="class2"> <!-- 二级栏目 --> {dede:channel type=son noself=yes} <li> <a href="[field:typelink/]">[field:typename/]</a> <ul class="class3"> <!-- 二级栏目下的文章+自定义字段 --> [field:id runphp=yes] global $dsql; $sql = "Select arc.*,addf.* FROM `#@__archives` arc LEFT JOIN `#@__addonshop` addf ON arc.id=addf.aid WHERE arc.arcrank>-1 AND arc.typeid=@me ORDER BY arc.id desc limit 0,10"; $dsql->SetQuery($sql); $dsql->Execute('t'); $result = ''; while($row = $dsql->GetArray('t')) { $row['arcurl'] = GetOneArchive($row['id']); $row['pubdate'] = MyDate('Y-m-d',$row['pubdate']); $result .= "<li><span>时间:{$row['pubdate']}</span><a href='{$row['arcurl']}'>{$row['title']}</a><span>价格:{$row['price']}</span></li>"; } @me = $result; [/field:id] </ul> </li> {/dede:channel} </ul> </li> {/dede:channelartlist}复制12345678910111213141516171819202122232425262728293031 手机模板动态标签 xxxxxx_m.htm 引入头部模板{dede:include filename="head_m.htm"/} {dede:include filename="head_m.htm"/} 引入底部模板{dede:include filename="foot_m.htm"/} {dede:include filename="foot_m.htm"/} 手机站路径{dede:global.cfg_mobileurl/} {dede:global.cfg_mobileurl/} 网站域名[中括号][field:global.cfg_basehost/] [field:global.cfg_basehost/] 模板路径[中括号][field:global.cfg_templets_skin/] [field:global.cfg_templets_skin/] channelartlist多个栏目调用dede:channelartlist {dede:channelartlist row=7 typeid=top currentstyle=current} {dede:global.cfg_mobileurl/}/list.php?tid={dede:field.typeid/} {dede:field.typename/} {/dede:channelartlist} channel顶级栏目调用dede:channel type='top' {dede:channel type='top' row='7'} [field:global.cfg_mobileurl/]/list.php?tid=[field:id/] [field:typename/] {/dede:channel} channel子级栏目调用dede:channel type='son' {dede:channel type=son noself=yes} [field:global.cfg_mobileurl/]/list.php?tid=[field:id/] [field:typename/] {/dede:channel} 获取一个栏目链接{dede:type}{/dede:type} {dede:type typeid=}[field:global.cfg_mobileurl/]/list.php?tid=[field:id/]{/dede:type} 首页/列表页文档链接view.php?aid=1 [field:global.cfg_mobileurl/]/view.php?aid=[field:id/] 首页/列表页缩略图PC+litpic [field:global.cfg_basehost/][field:litpic/] 内容页缩略图PC+litpic {dede:global.cfg_basehost/}{dede:field.litpic/} 内容页点击数(动态){dede:field.click/} <script src="{dede:global.cfg_basehost/}/plus/count.php?view=yes&aid={dede:field.id/}&mid={dede:field.mid/}" type='text/javascript' language="javascript"></script> 文章内容(去除图片宽高+绝对路径){dede:field.body/} {dede:field.body runphp=yes} global $cfg_basehost; $str = @me; $search = '/(<img.*?)width=(["\'])?.*?(?(2)\2|\s)([^>]+>)/is'; $search1 = '/(<img.*?)height=(["\'])?.*?(?(2)\2|\s)([^>]+>)/is'; $search2 = '#(<img.*?style=".*?)width:\s{0,}\d+px;([^"]*?.*?>)#i'; $search3 = '#(<img.*?style=".*?)height:\s{0,}\d+px;([^"]*?.*?>)#i'; $content = preg_replace($search,'$1$3',$str); $content = preg_replace($search1,'$1$3',$content); $content = preg_replace($search2,'$1$2',$content); $content = preg_replace($search3,'$1$2',$content); @me = str_replace('/uploads/allimg/', $cfg_basehost.'/uploads/allimg/', $content); {/dede:field.body} 手机站搜索框和相关传參<form></form> <form name="formsearch" action="{dede:global.cfg_basehost/}/plus/search.php"> <input type="hidden" name="pagesize" value="15"> <input type="hidden" name="kwtype" value="0"/> <input type="hidden" name="mobile" value="1" /> </form> 手机模板静态标签 xxxxxx_m.htm channelartlist多个栏目调用dede:channelartlist {dede:channelartlist row=7 typeid=top currentstyle=current} {dede:field.typeurl function='str_replace("http://你的PC域名","http://你的手机域名",@me)'/} {dede:field.typename/} {/dede:channelartlist} channel顶级栏目调用dede:channel type='top' {dede:channel type='top' row='7'} [field:typelink function='str_replace("http://你的PC域名","http://你的手机域名",@me)'/] [field:typename/] {/dede:channel} channel子级栏目调用dede:channel type='son' {dede:channel type=son noself=yes} [field:typelink function='str_replace("http://你的PC域名","http://你的手机域名",@me)'/] [field:typename/] {/dede:channel} 获取一个栏目链接{dede:type}{/dede:type} {dede:type typeid=}[field:typelink function='str_replace("http://你的PC域名","http://你的手机域名",@me)'/]{/dede:type} 首页/列表页文档链接[field:arcurl /] [field:arcurl function='str_replace("http://你的PC域名","http://你的手机域名",@me)'/] 文章内容(绝对路径){dede:field.body/} {dede:field.body function=str_replace('src="/uploads/','src="http://你的PC域名/uploads/',@me)/} 栏目内容(绝对路径){dede:field.content/} {dede:field.content function=str_replace('src="/uploads/','src="http://你的PC域名/uploads/',@me)/} -->
网站标题
织梦常用模板标签_六久阁
关键词
{dede:field.keywords/}
站点描述
{dede:field.description function=html2text(@me)/}