discuz门户⽂章页⾯模板修改
修改内容: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' <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="www.pingwest/" target="_blank">品玩</a></p>
3.相关阅读模板代码
discuz怎么导入模板<!--{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>
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论