【实测】discuz门户文章页面模板代码-Discuz教程下载

【实测】discuz门户文章页面模板代码

开通本站Svip会员,全站资源免费下
门户文章内容模板文件:view.htm

1.文章标题,模板代码
  1. <h1 class="ph">$article[title] <!--{if $article['status'] == 1}-->({lang moderate_need})<!--{elseif $article['status'] == 2}-->({lang ignored})<!--{/if}--></h1>
复制代码
文章标题, 前台代码
  1. <h1 class="ph">同样做游戏手柄,小米和UC有啥不一样? </h1>
复制代码
2.文章信息,模板代码:
  1. <p class="xg1">
  2.                                         $article[dateline]<span class="pipe">|</span>
  3.                                         {lang view_publisher}: <a href="home.php?mod=space&uid=$article[uid]">$article[username]</a><span class="pipe">|</span>
  4.                                         {lang view_views}: <em id="_viewnum"><!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--></em><span class="pipe">|</span>
  5.                                         {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}-->
  6.                                         <!--{if $article[author]}--><span class="pipe">|</span>{lang view_author_original}: $article[author]<!--{/if}-->
  7.                                         <!--{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}-->

  8.                                         <!--{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']}-->
  9.                                                 <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a>
  10.                                                 <!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])}-->
  11.                                                         <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>
  12.                                                 <!--{else}-->
  13.                                                         <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>
  14.                                                 <!--{/if}-->
  15.                                         <!--{/if}-->
  16.                                         <!--{hook/view_article_subtitle}-->
  17.                                 </p>
复制代码
文章信息:前台代码
  1. <p class="xg1">
  2. 2015-6-4 14:44<span class="pipe">|</span>
  3. 发布者: <a href="home.php?mod=space&uid=1">admin</a><span class="pipe">|</span>
  4. 查看: <em id="_viewnum">122</em><span class="pipe">|</span>
  5. 评论: 0<span class="pipe">|</span>来自: <a href="http://www.pingwest.com/" target="_blank">品玩</a></p> 
复制代码
3.相关阅读  模板代码
  1.                 <!--{if $article['related']}-->
  2.                 <div id="related_article" class="bm">
  3.                         <div class="bm_h cl">
  4.                                 <h3>{lang view_related}</h3>
  5.                         </div>
  6.                         <div class="bm_c">
  7.                                 <ul class="xl xl2 cl" id="raid_div">
  8.                                 <!--{loop $article['related'] $raid $rvalue}-->
  9.                                         <input type="hidden" value="$raid" />
  10.                                         <li>&#8226; <a href="{$rvalue[uri]}">{$rvalue[title]}</a></li>
  11.                                 <!--{/loop}-->
  12.                                 </ul>
  13.                         </div>
  14.                 </div>
  15.                 <!--{/if}-->
复制代码
相关阅读:前台代码
  1. <div id="related_article" class="bm">
  2. <div class="bm_h cl">
  3. <h3>相关阅读</h3>
  4. </div>
  5. <div class="bm_c">
  6. <ul class="xl xl2 cl" id="raid_div"><input type="hidden" value="1">
  7. <li>&#8226; <a href="portal.php?mod=view&aid=1">1800元人民币的手柄长什么样?</a></li>
  8. <input type="hidden" value="3">
  9. <li>&#8226; <a href="portal.php?mod=view&aid=3">PS3手柄选购完全指南 教您如何辨识真假</a></li>
  10. <input type="hidden" value="5">
  11. <li>&#8226; <a href="portal.php?mod=view&aid=5">盛大推出新款游戏,你猜猜是什么?</a></li>
  12. </ul>
  13. </div>
  14. </div>
复制代码

全部评论 0

您需要登录后才可以回帖 立即登录
登录
0
0
0
返回顶部