<title>{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:global.cfg_keywords/}"/>
<meta name="description" content="{dede:global.cfg_description/}"/>
<link rel="alternate" type="application/rss+xml" title="" href="/rss.php"/>
{dede:include filename="/web/header.html"/}
{dede:channel type='son|self|top' row='8' typeid='1'}
<li><a href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel}
{dede:arclist row='10' infolen='120' typeid='1' flag='h'}
[field:typename/]
[field:arcurl/]
[field:title/]
[field:title function="cn_substr('@me',40)"/]
[field:pubdate function=MyDate('m-d',@me)/]
[field:infos/]
[field:description/]
[field:description function="cn_substr('@me',100)"/]
[field:picname/]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' typeid='1' flag='h' orderby='pubdate' keyword='' idlist='' limit='起始ID,记录数' subday='天数' addfields='filetype,language,softtype' channelid='17' isweight='y' orderby='weight'}
[[field:typename/]]<li><a href="[field:arcurl/]" title="[field:title/]" target="_blank">[field:title function="cn_substr('@me',40)"/]</a>[field:pubdate function=MyDate('m-d',@me)/]</li>
{/dede:arclist}
{dede:type typeid='2'}<a href="[field:typelink /]" target="_blank">[field:typename/]</a>{/dede:type}
{dede:channelartlist row='6' typeid='1,2,3,4,5,6'}
<div class="{dede:global.itemindex runphp='yes'} $aa=@me; if($aa!=1){ @me=' noshow'; }else{ @me=''; } {/dede:global.itemindex}">
<div class="fr ksarc">
<div class="kstype">
{dede:channel type='son' row='6' }
<a href="[field:typeurl/]" target="_blank">> [field:typename/]</a>
{/dede:channel}
</div>
<div class="kslist">
{dede:arclist titlelen="40" infolen="180" flag="h" row="1"}
<h4><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h4>
<p>[field:infos/]...<a href="[field:arcurl/]" target="_blank">详情>></a></p>
{/dede:arclist}
<div class="div1">
<h4><span>相关文章</span><a href="{dede:field name='typeurl'/}" target="_blank">更多>></a></h4>
<ul>
{dede:arclist titlelen="26" infolen="250" row="5"}
<li><a href="[field:arcurl/]" target="_blank">• [field:title/]</a></li>
{/dede:arclist}
</ul>
</div>
</div>
</div>
</div>
{/dede:channelartlist}
<title>{dede:field.seotitle /}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}" />
<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />
<title>{dede:field name='position' runphp='yes'} $tc="_"; //分隔符 $tw=$GLOBALS['cfg_list_symbol']; //调用位置分隔符 @me=html2text(@me); //去除html标签 $tf=split($tw,@me); //分解成数组 for($ta=(count($tf)-2);$ta>=1;$ta--){ //循环赋值给$tk $tk.=trim($tf[$ta]).$tc; } $tk=substr($tk,0,-1); @me=$tk; //赋值给@me {/dede:field}-{dede:global name='cfg_webname'/}</title>
{dede:field name='position'/}
{dede:list titlelen='' infolen='' orderby='' pagesize=''}
<li><a href="[field:arcurl/]" title="[field:title/]" target="_blank">[field:title function="cn_substr('@me',40)"/]</a>[field:pubdate function=MyDate('m-d',@me)/]<p>[field:description/]</p></li>
{/dede:list}
{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/}
直接使用标签:[field:id function=GetTags(@me)/],就可以调用出来了。只不过不带连接的,如果需要连接,请注释掉include\helpers\archive.helper.php文件的130行:
// $tags .= ($tags=='' ? $row['tag'] : ','.$row['tag']);
用下面语句替换,当然你也可以加入自己的样式
$tags .= "<a href='/tags.php?/".urlencode($row['tag'])."/'>".$row['tag']."</a> ";
$tags .= ($tags=='' ? '<a href="/tags.php?'.urlencode($row['tag']).'">'.$row['tag'] : '</a> <a href="/tags.php?'.urlencode($row['tag']).'">'.$row['tag'].'</a>');
<title>{dede:field.title/}_{dede:field.seotitle /}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}" />
<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />
<title>{dede:field.title/}_{dede:field name='position' runphp='yes'} $tc="_"; //分隔符 $tw=$GLOBALS['cfg_list_symbol']; //调用位置分隔符 @me=html2text(@me); //去除html标签 $tf=split($tw,@me); //分解成数组 for($ta=(count($tf)-2);$ta>=1;$ta--){ //循环赋值给$tk $tk.=trim($tf[$ta]).$tc; } $tk=substr($tk,0,-1); @me=$tk; //赋值给@me {/dede:field}-{dede:global name='cfg_webname'/}</title>
{dede:field name='position'/}
文章标题: {dede:field.title/}
发布时间: {dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}
来源: {dede:field.source/}
查看次数: <script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script>
编辑: {dede:adminname/}
作者: {dede:field.writer/}
文章梗概: {dede:field.description runphp='yes'}if(@me<>'' )@me = '<div class="intro">'.@me.'</div>';{/dede:field.description}
文章内容: {dede:field.body/}
责任编辑: {dede:adminname/}
文章分页: {dede:pagebreak/}
文章上一篇: {dede:prenext get='pre'/} {dede:prenext function="str_replace(' 下一篇:','<'.'br'.' />下一篇:',@me)"/}
文章下一篇: {dede:prenext get='next'/}
相关文档: {dede:likearticle row='5' titlelen='80' eregtype='all|tag|keyword'}
·<a href="[field:arcurl/]">[field:title/]</a>
{/dede:likearticle}
{dede:tag sort='new' getall='0' typeid='0'}
<a href='[field:link/]'>[field:tag /]</a>
{/dede:tag}
{dede:sql sql='Select * from dede_archives where mid=1'}
<a href='/plus/view.php?aid=[field:id/]' target='_blank'>[field:title/]</a>
{/dede:sql}
{dede:flink row='24'/}
{dede:flink row='24' type='image/text' titlelen="24" typeid="0"} [field:link /] {/dede:flink}
{dede:sonchannel}
<a href='[field:typeurl/]'>[field:typename/]</a>
{/dede:sonchannel}
{dede:loop table='dede_archives' sort='' row='4' if=''}
<a href='[field:arcurl/]'>[field:title/]</a>
{/dede:loop}
{/dede:likearticle}
当前栏目名称: {dede:field name='typename'/}
封面模板单面内容: {dede:field.content/}