编辑模板 sites/drag_demo_sites/sites/item/article/view3-1.html
创建模板备份
<!--{php168}--> <!--{template $this_system header}--> <link rel="stylesheet" type="text/css" href="{$SKIN}style.css" /> <script type="text/javascript" src="{$RESOURCE}/js/$SYSTEM/item/item.js"></script> <script type="text/javascript"> var item_id = $data[id], model = '$data[model]', item_cid = $data[cid], verified = \$_GET['verified'] === undefined ? 1 : (\$_GET['verified'] == 0 ? 0 : 1); $(function(){ if(get_cookie('IS_ADMIN') == 1){ item_operation($('#operation').show()); } }); </script> <div class="breadbanner delmag"> $label[fenzhan-banner] </div> <div class="container"> <div class="maincon"> <div class="row"> <div class="col-sm-12"> <div class="position2"> <a href="{if $this_system->domain}{if in_array('s.php',explode('/',$this_system->domain))}{if $SITE['config']['forbidden_dynamic'] || $this_module->CONFIG['htmlize']}{str_replace('s.php','sites/html',$this_system->domain)}{else}{$this_system->domain}{/if}{else}{$this_system->domain}{/if}{else}{str_replace('index.php/cms','',$this_system->controller)}{/if}">首页</a> <!--{foreach $parent_cats $v}--> > <a href="$v[url]">$v[name]</a> <!--{/foreach}--> > <a href="$CAT[url]">$CAT[name]</a> </div> </div> </div> <div class="row"> <div class="contentbox col-lg-10 col-md-10 col-sm-10 col-xs-12"> <div class="layout_txtcontent_title"> $data[title] </div> <div class="layout_txtcontent_info"> 日期:{date('Y-m-d', $data['timestamp'])} 作者:{$data['author']} 来源:{$data['source']} 浏览量:<span class="item_views">$data[views]</span> <span id="operation" style="display: none; cursor: pointer;color:#0040ff;margin-left:15px;">{$P8LANG['operation']}>></span> </div> <div class="layout_txtcontent_content"> $data[content] </div> <div class="son_title tr"> <span>【<a href="javascript:" onClick="jscript:window.external.AddFavorite(document.location.href,document.title);">收藏本页</a>】</span> </div> <div class="change"> <ul> <li><font style="color:red">上一篇:</font><!--{if !empty($prev_item['subject'])}--><a href="$prev_item[url]" title="$prev_item[title]">$prev_item[subject]</a><!--{else}-->没有了<!--{/if}--></li> <li><font style="color:red">下一篇:</font><!--{if !empty($next_item['subject'])}--><a href="$next_item[url]" title="$next_item[title]">$next_item[subject]</a><!--{else}-->没有了<!--{/if}--></li> </ul> </div> <div class="closepage"> <span><a href="{if $this_system->domain}{$this_system.domain}{else}{str_replace('index.php/cms','',$this_system->controller)}{/if}">返回首页</a></span> <span><a href="javascript:self.close()" >关闭页面</a></span> </div> </div> <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12"> <div class="sharebox"> <span>相关链接</span> <div class="relink"> <ul> $label[fenzhan-liajie20] </ul> </div> </div> </div> </div> </div> </div> <script type="text/javascript" src="{$RESOURCE}/search/sites_count.php?id=$data[id]"></script> <!--{template $this_system footer}--> <!--{/php168}-->