关键词1,关键词2 $keyArr = explode(',',$keywords); $newWord1 = is_array($keyArr) ? $keyArr[0] : ''; $newWord2 = is_array($keyArr) ? $keyArr[1] : ''; //seo关键词而局 $seoword = $kwWord1=='' ? '' : $kwWord1.''; //标题中的关键词,如:火车票 //正文内容 $articleText = $newWord1=='' ? $body : preg_replace('/('.$newWord1.')/','\1',$body,2); //正文匹配第1个关键词加粗红色高亮 $articleText = $newWord2=='' ? $articleText : preg_replace('/('.$newWord2.')/','\1',$articleText,2); //正文匹配第2个关键词加粗蓝色高亮 ?> {template 'top'} {$seoword}_{if $seotitle&&$seotitle!=$title}{$seotitle}_{$title}{else}{$title}{/if}_{$website} {template 'css-js-top'}

{$title}{$seoword}

[摘要] '.$kwWord1.$kwWord2.$newWord1.$newWord2.''; ?> {$description}

'.$kwWord1.$kwWord2.''.$newWord1.$newWord2; ?>

{get_imgdir($articleText)}

{if $adminname}
责任编辑:{$adminname}
{/if} get_results($sql); ?> {php $likearticle = get_likearticle($keywords,1)} {if $likearticle}
{php echo $seowords=='' ? '' : ''.$seowords.''}相关阅读:
    {loop $keyarticle $t}
  • {$t[title]}{Date('Y-m-d',$t[pubdate])}
  • {/loop} {loop $likearticle $t}
  • {$t[title]}{Date('Y-m-d',$t[pubdate])}
  • {/loop}
{/if} {php $sql = "select * from `".$prefix."archives` where litpic='' and id!=".$id." order by senddate desc limit 0,5" } {php $result = $db->get_results($sql)} {if $result}
最新资讯:
    {loop $result $t}
  • {$t[title]}{Date('Y-m-d',$t[pubdate])}
  • {/loop}
{/if}
一周排行:
    {php $sql = "select * from `".$prefix."archives` where litpic='' and id!=".$id." order by rand() limit 0,2" } {php $result = $db->get_results($sql)} {if $result} {loop $result $t}
  • {$t[title]}{Date('Y-m-d',$t[pubdate])}
  • {/loop} {/if} {php $sql = "select * from `".$prefix."archives` where litpic='' and id!=".$id." order by click desc limit 0,1" } {php $result = $db->get_results($sql)} {if $result} {loop $result $t}
  • {$t[title]}{Date('Y-m-d',$t[pubdate])}
  • {/loop} {/if}
{template 'sider-right'}
{template 'footer'}