编辑模板 sites/drag_demo_sites/sites/item/article/view5.html
创建模板备份
<!--{php168}--> <!--{template $this_system header_default}--> <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> <style type="text/css"> .col-left{width:20%;} .col-right{width:80%;} .teachers-field-image img{max-width:100%;height:auto;} .teachers-field-title h3{color:#3ec6ff;font-size:20px;margin-bottom:15px;font-weight:bold;} .teachers-field-title p{color:#555;margin-bottom:15px;text-align:center;} .teachers-body{padding-left:5%;} .teachers-content h3{padding-bottom: 21px;margin-bottom: 7px;} .teachers-content p{color:#555;font-size:16px;margin-bottom:10px;} @media (max-width: 767px){ .col-left,.col-right{width:100%;} .teachers-body{padding-left:0;} } </style> <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="col-sm-12 col-md-3 col-left"> <div class="teachers-block"> <div class="teachers-field-image text-center mb15"> <img src="$data[frame]" alt="$data[title]"> </div> <div class="teachers-field-title"> <h3 class="text-center">$data[title]</h3> <p>$data[sub_title]</p> <p><span>电子邮件: </span>$data[source]</p> </div> </div> </div> <div class="col-sm-12 col-md-9 col-right"> <div class="teachers-body"> <div class="teachers-btn text-right"> <span id="operation" style="display: none; cursor: pointer;color:#0040ff;margin-left:15px;">{$P8LANG['operation']}>></span> </div> <div class="teachers-content"> $data[content] </div> </div> </div> </div> </div> </div> <script type="text/javascript" src="{$RESOURCE}/search/sites_count.php?id=$data[id]"></script> <!--{template $this_system footer_default}--> <!--{/php168}-->