PageRenderTime 50ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/template/default/forum/viewthread_portal.htm

https://github.com/jinbo51/DiscuzX
HTML | 190 lines | 115 code | 14 blank | 61 comment | 0 complexity | 65c8283ec72b750fa79f82e9156a7332 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {eval
  2. $specialarr = array(0 => array('thread', '{lang index_posts}'), 1 => array('poll', '{lang thread_poll}'), 2 => array('trade', '{lang thread_trade}'), 3 => array('reward', '{lang thread_reward}'), 4 => array('activity', '{lang thread_activity}'), 5 => array('debate', '{lang thread_debate}'));
  3. $specialtype = $specialarr[$_G['forum_thread']['special']];
  4. $_G[home_tpl_titles][] = $navsubject;
  5. $_G[home_tpl_titles][] = $specialtype[1];
  6. $_G[home_tpl_titles][] = '{lang portal}';
  7. }
  8. <!--{template common/header}-->
  9. <script type="text/javascript">var fid = parseInt('$_G[fid]'), tid = parseInt('$_G[tid]');</script>
  10. <!--{if $_G['forum']['ismoderator']}-->
  11. <script type="text/javascript" src="{$_G['setting']['jspath']}forum_moderate.js?{VERHASH}"></script>
  12. <!--{/if}-->
  13. <form method="post" autocomplete="off" name="modactions" id="modactions">
  14. <input type="hidden" name="formhash" value="{FORMHASH}" />
  15. <input type="hidden" name="optgroup" />
  16. <input type="hidden" name="operation" />
  17. <input type="hidden" name="listextra" value="$_GET[extra]" />
  18. </form>
  19. <script type="text/javascript" src="{$_G['setting']['jspath']}forum_viewthread.js?{VERHASH}"></script>
  20. <script type="text/javascript">zoomstatus = parseInt($_G['setting']['zoomstatus']);var imagemaxwidth = '{$_G['setting']['imagemaxwidth']}';var aimgcount = new Array();</script>
  21. <div id="pt" class="bm cl">
  22. <div class="z">
  23. <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> $navigation <em>&rsaquo;</em> {lang user_threads}
  24. </div>
  25. </div>
  26. <style id="diy_style" type="text/css"></style>
  27. <div class="wp">
  28. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  29. </div>
  30. <div id="ct" class="ct2 wp cl">
  31. <div class="mn">
  32. <div class="bm vw pl">
  33. <div class="h hm">
  34. <h1 class="ph">$_G[forum_thread][subject]</h1>
  35. <p class="xg1">
  36. {lang posted_by}:
  37. <!--{if $_G[forum_thread][author] && $_G[forum_thread][authorid]}-->
  38. <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]">$_G[forum_thread][author]</a>
  39. <!--{else}-->
  40. <!--{if $_G['forum']['ismoderator']}-->
  41. <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]">{lang anonymous}</a>
  42. <!--{else}-->
  43. {lang anonymous}
  44. <!--{/if}-->
  45. <!--{/if}-->
  46. <span class="pipe">|</span>
  47. {lang dateline}: <!--{date($_G[forum_thread][dateline])}--><span class="pipe">|</span>
  48. {lang home_view_num}: $_G[forum_thread][views]<span class="pipe">|</span>
  49. {lang comment_num}: $_G[forum_thread][replies]
  50. <!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && ($post['authorid'] == $_G['uid'] && $_G['forum_thread']['closed'] == 0) && !(!$alloweditpost_status && $edittimelimit && TIMESTAMP - $post['dbdateline'] > $edittimelimit)))}-->
  51. <span class="pipe">|</span><a href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if !empty($_GET[modthreadkey])}&modthreadkey=$_GET[modthreadkey]{/if}&page=$page{if $_GET[from]}&from=$_GET[from]{/if}"><!--{if $_G['forum_thread']['special'] == 2 && !$post['message']}-->{lang post_add_aboutcounter}<!--{else}-->{lang edit}</a><!--{/if}-->
  52. <!--{/if}-->
  53. <span class="pipe">|</span><a href="forum.php?mod=viewthread&tid=$_G[tid]" class="xg1">{lang thread_mod}</a>
  54. </p>
  55. </div>
  56. <!--{if empty($_GET['page']) || $_GET['page'] < 2}-->
  57. <div class="d">
  58. <table cellpadding="0" cellspacing="0" width="100%">
  59. <tr>
  60. <td>
  61. <!--{subtemplate forum/viewthread_node_body}-->
  62. <!--{if !IS_ROBOT && $post['first'] && !$_G['forum_thread']['archiveid']}-->
  63. <!--{if !empty($lastmod['modaction'])}--><div class="modact xs1"><a href="forum.php?mod=misc&action=viewthreadmod&tid=$_G[tid]" title="{lang thread_mod}" onclick="showWindow('viewthreadmod', this.href)">{lang thread_mod_by}</a></div><!--{/if}-->
  64. <!--{if $post['invisible'] == 0}-->
  65. <div id="p_btn" class="mtw mbm cl xs1">
  66. <!--{hook/viewthread_useraction_prefix}-->
  67. <!--{if helper_access::check_module('share')}-->
  68. <a href="home.php?mod=spacecp&ac=share&type=thread&id=$_G[tid]" id="k_share" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('sharenumber').innerHTML + ' {lang activity_member_unit}{lang thread_share}'"><i><img src="{IMGDIR}/oshr.png" alt="{lang thread_share}" />{lang thread_share}<span id="sharenumber">{$_G['forum_thread']['sharetimes']}</span></i></a>
  69. <!--{/if}-->
  70. <a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" id="k_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('favoritenumber').innerHTML + ' {lang activity_member_unit}{lang thread_favorite}'"><i><img src="{IMGDIR}/fav.gif" alt="{lang thread_favorite}" />{lang thread_favorite}<span id="favoritenumber">{$_G['forum_thread']['favtimes']}</span></i></a>
  71. <!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && $_G['setting']['recommendthread']['status']}-->
  72. <!--{if !empty($_G['setting']['recommendthread']['addtext'])}-->
  73. <a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G[tid]&hash={FORMHASH}" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate({$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_add').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][addtext]'"><i><img src="{IMGDIR}/rec_add.gif" alt="$_G['setting']['recommendthread'][addtext]" />$_G['setting']['recommendthread'][addtext]<span id="recommendv_add">$_G[forum_thread][recommend_add]</span></i></a>
  74. <!--{/if}-->
  75. <!--{if !empty($_G['setting']['recommendthread']['subtracttext'])}-->
  76. <a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G[tid]&hash={FORMHASH}" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate(-{$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_subtract').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][subtracttext]'"><i><img src="{IMGDIR}/rec_subtract.gif" alt="$_G['setting']['recommendthread'][subtracttext]" />$_G['setting']['recommendthread'][subtracttext]<span id="recommendv_subtract">$_G[forum_thread][recommend_sub]</span></i></a>
  77. <!--{/if}-->
  78. <!--{/if}-->
  79. <!--{if $_G['group']['raterange'] && $post['authorid']}-->
  80. <a href="javascript:;" id="ak_rate" onclick="showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]{if $_GET[from]}&from=$_GET[from]{/if}');return false;" title="{echo count($postlist[$post[pid]][totalrate]);} {lang people_score}"><i><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</i></a>
  81. <!--{/if}-->
  82. <!--{if $post['first'] && $_G[uid] && $_G[uid] == $post[authorid]}-->
  83. <a href="misc.php?mod=invite&action=thread&id=$_G[tid]" onclick="showWindow('invite', this.href, 'get', 0);"><i><img src="{IMGDIR}/activitysmall.gif" alt="{lang invite}" />{lang invite}</i></a>
  84. <!--{/if}-->
  85. <!--{hook/viewthread_useraction}-->
  86. </div>
  87. <!--{/if}-->
  88. <!--{/if}-->
  89. </td>
  90. </tr>
  91. </table>
  92. </div>
  93. <!--{/if}-->
  94. <!--{if !empty($aimgs[$post[pid]])}-->
  95. <script type="text/javascript" reload="1">
  96. aimgcount[{$post[pid]}] = [<!--{echo dimplode($aimgs[$post[pid]]);}-->];
  97. attachimggroup($post['pid']);
  98. <!--{if empty($_G['setting']['lazyload'])}-->
  99. <!--{if !$post['imagelistthumb']}-->
  100. attachimgshow($post[pid]);
  101. <!--{else}-->
  102. attachimgshow($post[pid], 1);
  103. <!--{/if}-->
  104. <!--{/if}-->
  105. <!--{if $post['imagelistthumb']}-->
  106. attachimglstshow($post['pid'], <!--{echo intval($_G['setting']['lazyload'])}-->, 0, '{$_G[setting][showexif]}');
  107. <!--{/if}-->
  108. </script>
  109. <!--{/if}-->
  110. </div>
  111. <div class="bm vw pl" id="comment">
  112. <div class="bm_h cl">
  113. <h2>{lang latest_comments}</h2>
  114. </div>
  115. <div class="bm_c">
  116. <!--{loop $postlist $postid $post}-->
  117. <!--{if $postid && !$post['first']}-->
  118. <div id="post_$post[pid]" class="xld xlda mbm">
  119. <!--{subtemplate forum/viewthread_from_node}-->
  120. </div>
  121. <!--{/if}-->
  122. <!--{/loop}-->
  123. <div id="postlistreply" class="xld xlda mbm"><div id="post_new" class="viewthread_table" style="display: none"></div></div>
  124. <!--{if $multipage}-->
  125. <div class="pgs cl">$multipage</div>
  126. <!--{/if}-->
  127. </div>
  128. <!--{if $_G['setting']['fastpost'] && $allowpostreply && !$_G['forum_thread']['archiveid']}-->
  129. <div class="bm_c">
  130. <!--{subtemplate forum/viewthread_fastpost}-->
  131. </div>
  132. <!--{/if}-->
  133. </div>
  134. </div>
  135. <div class="sd">
  136. <!--{if $_G['setting']['visitedforums']}-->
  137. <div class="bm">
  138. <div class="bm_h cl">
  139. <h2>{lang viewed_forums}</h2>
  140. </div>
  141. <div class="bm_c xl xl2 cl">
  142. <ul>
  143. $_G['setting']['visitedforums']
  144. </ul>
  145. </div>
  146. </div>
  147. <!--{/if}-->
  148. <!--{if $oldthreads}-->
  149. <div class="bm">
  150. <div class="bm_h cl">
  151. <h2>{lang viewd_threads}</h2>
  152. </div>
  153. <div class="bm_c xl xl1">
  154. <ul>
  155. <!--{loop $oldthreads $oldtid $oldsubject}-->
  156. <li><a href="forum.php?mod=viewthread&tid=$oldtid&from=portal">$oldsubject</a></li>
  157. <!--{/loop}-->
  158. </ul>
  159. </div>
  160. </div>
  161. <!--{/if}-->
  162. <!--{hook/viewthread_side_bottom}-->
  163. <div class="drag">
  164. <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  165. </div>
  166. </div>
  167. </div>
  168. <!--{if !IS_ROBOT && !empty($_G[setting][lazyload])}-->
  169. <script type="text/javascript">
  170. new lazyload();
  171. </script>
  172. <!--{/if}-->
  173. <div class="wp mtn">
  174. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  175. </div>
  176. <!--{template common/footer}-->