修改内容:view.htm
1.文章标题,模板代码
<h1 class="ph">$article[title] <!--{if $article[‘status‘] == 1}-->({lang moderate_need})<!--{elseif $article[‘status‘] == 2}-->({lang ignored})<!--{/if}--></h1>
文章标题, 前台代码
<h1 class="ph">同样做游戏手柄,小米和UC有啥不一样? </h1>
2.文章信息,模板代码:
<p class="xg1"> $article[dateline]<span class="pipe">|</span> {lang view_publisher}: <a href="home.php?mod=space&uid=$article[uid]">$article[username]</a><span class="pipe">|</span> {lang view_views}: <em id="_viewnum"><!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--></em><span class="pipe">|</span> {lang view_comments}: <!--{if $article[commentnum] > 0}--><a href="$common_url" title="{lang view_all_comments}"><em id="_commentnum">$article[commentnum]</em></a><!--{else}-->0<!--{/if}--> <!--{if $article[author]}--><span class="pipe">|</span>{lang view_author_original}: $article[author]<!--{/if}--> <!--{if $article[from]}--><span class="pipe">|</span>{lang from}: <!--{if $article[fromurl]}--><a href="$article[fromurl]" target="_blank">$article[from]</a><!--{else}-->$article[from]<!--{/if}--><!--{/if}--> <!--{if $_G[‘group‘][‘allowmanagearticle‘] || ($_G[‘group‘][‘allowpostarticle‘] && $article[‘uid‘] == $_G[‘uid‘] && (empty($_G[‘group‘][‘allowpostarticlemod‘]) || $_G[‘group‘][‘allowpostarticlemod‘] && $article[‘status‘] == 1)) || $categoryperm[$value[‘catid‘]][‘allowmanage‘]}--> <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a> <!--{if $article[status]>0 && ($_G[‘group‘][‘allowmanagearticle‘] || $categoryperm[$value[‘catid‘]][‘allowmanage‘])}--> <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=verify&aid=$article[aid]" id="article_verify_$article[aid]" onclick="showWindow(this.id, this.href, ‘get‘, 0);">{lang moderate}</a> <!--{else}--> <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$article[aid]" id="article_delete_$article[aid]" onclick="showWindow(this.id, this.href, ‘get‘, 0);">{lang delete}</a> <!--{/if}--> <!--{/if}--> <!--{hook/view_article_subtitle}--> </p>
文章信息:前台代码
<p class="xg1"> 2015-6-4 14:44<span class="pipe">|</span> 发布者: <a href="home.php?mod=space&uid=1">admin</a><span class="pipe">|</span> 查看: <em id="_viewnum">122</em><span class="pipe">|</span> 评论: 0<span class="pipe">|</span>来自: <a href="http://www.pingwest.com/" target="_blank">品玩</a></p>
3.相关阅读 模板代码
<!--{if $article[‘related‘]}--> <div id="related_article" class="bm"> <div class="bm_h cl"> <h3>{lang view_related}</h3> </div> <div class="bm_c"> <ul class="xl xl2 cl" id="raid_div"> <!--{loop $article[‘related‘] $raid $rvalue}--> <input type="hidden" value="$raid" /> <li>• <a href="{$rvalue[uri]}">{$rvalue[title]}</a></li> <!--{/loop}--> </ul> </div> </div> <!--{/if}-->
相关阅读:前台代码
<div id="related_article" class="bm"> <div class="bm_h cl"> <h3>相关阅读</h3> </div> <div class="bm_c"> <ul class="xl xl2 cl" id="raid_div"><input type="hidden" value="1"> <li>• <a href="portal.php?mod=view&aid=1">1800元人民币的手柄长什么样?</a></li> <input type="hidden" value="3"> <li>• <a href="portal.php?mod=view&aid=3">PS3手柄选购完全指南 教您如何辨识真假</a></li> <input type="hidden" value="5"> <li>• <a href="portal.php?mod=view&aid=5">盛大推出新款游戏,你猜猜是什么?</a></li> </ul> </div> </div>
时间: 2024-10-06 01:06:06