Advertisement
Guest User

forumIndexTemplate

a guest
Apr 12th, 2015
299
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {parse js_module="forums"}
  2. <script type="text/javascript">
  3. //<![CDATA[
  4. //Search Setup
  5. ipb.vars['search_type'] = 'forum';
  6. ipb.vars['search_type_id'] = {$this->request['showforum']};
  7. ipb.templates['topic_rename'] = new Template("<input type='text' id='#{inputid}' value='#{value}' class='input_text' size='50' maxlength='{$this->settings['topic_title_max_len']}' /> <input type='submit' value='{$this->lang->words['rename_topic_update']}' class='input_submit' id='#{submitid}' /> <a href='#' id='#{cancelid}' class='cancel' title='{$this->lang->words['cancel']}'>{$this->lang->words['cancel']}</a>");
  8. var markerURL = ipb.vars['base_url'] + "app=forums&module=ajax&section=markasread&i=1"; // Ajax URL so don't use &amp;
  9. var unreadIcon = "<i class='fa-i-r fa-crosshairs'></i>";
  10.  
  11. ipb.forums.modPerms = [];
  12. <if test="$this->memberData['g_is_supmod']">
  13. ipb.forums.modPerms['approve'] = 1;
  14. ipb.forums.modPerms['delete'] = 1;
  15. ipb.forums.modPerms['hide'] = 1;
  16. ipb.forums.modPerms['unhide'] = 1;
  17. ipb.forums.modPerms['pin'] = 1;
  18. ipb.forums.modPerms['unpin'] = 1;
  19. ipb.forums.modPerms['open'] = 1;
  20. ipb.forums.modPerms['close'] = 1;
  21. ipb.forums.modPerms['move'] = 1;
  22. ipb.forums.modPerms['merge'] = 1;
  23. <else />
  24. <if test="isset( $this->memberData['forumsModeratorData'][ $forum_data['id'] ] )">
  25. ipb.forums.modPerms['approve'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['topic_q']};
  26. ipb.forums.modPerms['delete'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['delete_topic']};
  27. ipb.forums.modPerms['hide'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['bw_mod_soft_delete']};
  28. ipb.forums.modPerms['unhide'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['bw_mod_un_soft_delete']};
  29. ipb.forums.modPerms['pin'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['pin_topic']};
  30. ipb.forums.modPerms['unpin'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['unpin_topic']};
  31. ipb.forums.modPerms['open'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['open_topic']};
  32. ipb.forums.modPerms['close'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['close_topic']};
  33. ipb.forums.modPerms['move'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['move_topic']};
  34. ipb.forums.modPerms['merge'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['split_merge']};
  35. </if>
  36. </if>
  37.  
  38. ipb.templates['topic_moderation'] = new Template("<div id='comment_moderate_box' class='ipsFloatingAction' style='display: none'><span class='desc'>{$this->lang->words['f_comment_action_count']} </span><select id='tactInPopup' class='input_select'></select>&nbsp;&nbsp;<input type='button' class='input_submit' id='submitModAction' value='{$this->lang->words['comments_act_go']}' /></div>");
  39. //]]>
  40. </script>
  41. <if test="watchismember:|:$this->memberData['member_id']">
  42. <if test="hasFollowData:|:$other_data['follow_data']">
  43. {$other_data['follow_data']}
  44. </if>
  45. </if>
  46. <h1 class='ipsType_pagetitle'>{$forum_data['name']}</h1>
  47. <div class='ipsType_pagedesc forum_rules'>
  48. <if test="rules:|:$forum_data['show_rules']">
  49. <if test="rulesinline:|:$forum_data['show_rules'] == 2">
  50. <strong>{$forum_data['rules_title']}</strong>
  51. {$forum_data['rules_text']}
  52. </if>
  53. <if test="ruleslink:|:$forum_data['show_rules'] == 1">
  54. <a href='{parse url="app=forums&amp;module=forums&amp;section=rules&amp;f={$forum_data['id']}" base="public"}' title='{$this->lang->words['view_forum_rules']}'>{$forum_data['rules_title']}</a>
  55. </if>
  56. <else />
  57. {$forum_data['description']}
  58. </if>
  59. </div>
  60. <br />
  61. <if test="hasannouncements:|:is_array( $announce_data ) AND count( $announce_data )">
  62. <table class='ipb_table topic_list hover_rows' summary='{$this->lang->words['forum_topic_list']} "{$forum_data['name']}"' id='announcements'>
  63. <foreach loop="announcements:$announce_data as $aid => $adata">
  64. <tr class='row2 announcement' id='arow_{$adata['announce_id']}'>
  65. <td>
  66. <php>$_seoTitle = $adata['announce_seo_title'] ? $adata['announce_seo_title'] : "%%{$adata['announce_title']}%%";</php>
  67. {parse replacement="t_announcement"}
  68. <h4>
  69. <a href="{parse url="showannouncement={$adata['announce_id']}&amp;f={$forum_data['id']}" seotitle="{$_seoTitle}" template="showannouncement" base="public"}" title='{$this->lang->words['view_announcement']}'>{$adata['announce_title']}</a>
  70. </h4>&nbsp;
  71. <span class='desc'>{$this->lang->words['posted_by']} {parse template="userHoverCard" group="global" params="$adata"}
  72. <if test="announcedates:|:$adata['announce_start'] AND $adata['announce_start'] != '--'">, {$adata['announce_start']}</if>
  73. </span>
  74. </td>
  75. </tr>
  76. </foreach>
  77. </table>
  78. <br />
  79. </if>
  80. <!-- __-SUBFORUMS-__ -->
  81. <if test="hassubforums:|:is_array( $sub_forum_data ) AND count( $sub_forum_data )">
  82. <div class='category_block block_wrap'>
  83. <h3 class='maintitle'>{$this->lang->words['sub_forum_title']}</h3>
  84. <div class='ipsBox table_wrap'>
  85. <div class='ipsBox_container'>
  86. <table class='ipb_table' summary="{$this->lang->words['cat_subforums']} '{$forum_data['name']}'">
  87. <foreach loop="subforums:$sub_forum_data as $_data">
  88. <if test="subforumdata:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
  89. <foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
  90. <if test="forumRedirect:|:$forum_data['redirect_on']">
  91. <tr class='redirect_forum' id='f_{$forum_data['id']}'>
  92. <td class='col_c_icon'>
  93. <img src='{$this->settings['img_url']}/f_redirect.png' />
  94. </td>
  95. <td <if test="canSeeLastInfoRedirect:|:$this->memberData['gbw_view_last_info']">colspan='2'</if> class='col_c_forum'>
  96. <h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$forum_data['name']}'><if test="$forum_data['_name']">{$forum_data['_name']}<else />{$forum_data['name']}</if></a></h4>
  97. <p class='desc'>{$forum_data['description']}</p>
  98. </td>
  99. <td class='desc'>
  100. <ul class='last_post ipsType_small'>
  101. <li class='desc lighter'><em>{parse format_number="$forum_data['redirect_hits']"} {$this->lang->words['rd_hits']}</em></li>
  102. </ul>
  103. </td>
  104. </tr>
  105. <else />
  106. <tr class='<if test="$forum_data['_has_unread']">unread</if>'>
  107. <td class='col_c_icon'>
  108. <if test="$forum_data['_has_unread']">
  109. <a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}&i=1" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">{$forum_data['icon']}<else /><img src='{$this->settings['img_url']}/f_icon.png' /></if></a>
  110. <script type='text/javascript'>
  111. <if test="$this->settings['dp3_fi_mode'] == 'replace'">var unreadIcon = "{$forum_data['icon_read']}";</if>
  112. ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
  113. </script>
  114. <else />
  115. <if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">{$forum_data['icon']}<else /><img src='{$this->settings['img_url']}/f_icon_read.png' /></if>
  116. </if>
  117. </td>
  118. <td class='col_c_forum'>
  119. <h4>
  120. <if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])">
  121. <a href='{parse url="showforum={$forum_data['id']}&amp;modfilter=unapproved" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['view_unapproved']}' class='ipsBadge ipsBadge_orange' data-tooltip="{parse expression="sprintf( $this->lang->words['f_queued'], $forum_data['queued_topics'], $forum_data['queued_posts'])"}" style='vertical-align: top'>{$this->lang->words['f_queued_badge']}</a>
  122. </if>
  123. <a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$forum_data['name']}'><if test="$forum_data['_name']">{$forum_data['_name']}<else />{$forum_data['name']}</if></a>
  124. </h4>
  125.  
  126.  
  127. <p class='desc __forum_desc ipsType_small'>{$forum_data['description']}</p>
  128.  
  129. <span class="forum_stats"><strong>{$this->lang->words['topics']}</strong>:&nbsp;{$forum_data['topics']}&nbsp;&nbsp;<strong>{$this->lang->words['replies']}</strong>:&nbsp;{$forum_data['posts']} </span> <br/>
  130.  
  131.  
  132. <if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
  133.  
  134. <ol class='ipsList_inline ipsType_small subforums2' id='subforums_{$forum_data['id']}'>
  135. <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"></ol>
  136. <ol class='ipsList_inline ipsType_small subforums3' id='subforums_{$forum_data['id']}'>
  137. <if test="showSubForumsLit:|:$__data[3]">
  138. <li class='unread'>
  139. <else />
  140. <li>
  141. </if>
  142. </foreach>
  143. </ol>
  144. <ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'>
  145. <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
  146. </ol>
  147. <ol class='ipsList_inline ipsType_small subforums1' id='subforums_{$forum_data['id']}'>
  148. <if test="showSubForumsLit:|:$__data[3]">
  149. <li class='unread'>
  150. <else />
  151. <li>
  152. </if>
  153. <a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a>
  154. </li>
  155. </foreach>
  156. </ol>
  157. </if>
  158.  
  159.  
  160. </td>
  161.  
  162. <if test="canSeeLastInfoSubs:|:$this->memberData['gbw_view_last_info']">
  163. <td class='col_c_post'>
  164. <div class="right">
  165. <if test="hideTopicInTitle:|:$forum_data['_hide_last_date']">
  166. {parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => '' )"}
  167. <else />
  168. {parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => sprintf( $this->lang->words['bindex_userphoto_alt'], $forum_data['last_title'], $forum_data['members_display_name'] ) )"}
  169. </if>
  170. </div>
  171. <if test="hideLastInfo:|:$forum_data['hide_last_info']">
  172. <ul class='last_post ipsType_small'>
  173. <li class='desc lighter'><em>{$this->lang->words['f_protected']}</em></li>
  174. </ul>
  175. <else />
  176.  
  177. <ul class='last_post ipsType_small'>
  178. <if test="!$forum_data['last_id']">
  179. <li class='desc lighter'><em>{$this->lang->words['f_none']}</em></li>
  180. <else />
  181. <li>{$forum_data['last_topic_title']}</li>
  182. <if test="lastPosterID:|:$forum_data['last_poster_id']">
  183. <li>{$this->lang->words['by_ucfirst']} {parse template="userHoverCard" group="global" params="$forum_data"}</li>
  184. </if>
  185. <if test="hideDateUrl:|:$forum_data['_hide_last_date']">
  186. <li class='desc lighter blend_links'>{parse date="$forum_data['last_post']" format="DATE"}</li>
  187. <else />
  188. <li class='desc lighter blend_links'><a href='{parse url="showtopic={$forum_data['last_id']}&amp;view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="DATE"}</a></li>
  189. </if>
  190. </if>
  191. </ul>
  192. </if>
  193. </td>
  194. </if>
  195. </tr>
  196. </if>
  197. </foreach>
  198. </if>
  199. </foreach>
  200. </table>
  201. </div>
  202. </div>
  203. </div>
  204. <br /><br />
  205. </if>
  206. <if test="showtopics:|:$forum_data['sub_can_post']">
  207. <div class='topic_controls clearfix'>
  208. {$forum_data['SHOW_PAGES']}
  209. <ul class='topic_buttons'>
  210. <if test="usercanpost:|:$forum_data['_user_can_post']">
  211. <li><a href='{parse url="module=post&amp;section=post&amp;do=new_post&amp;f={$forum_data['id']}" base="publicWithApp"}' title='{$this->lang->words['topic_start']}' accesskey='s'>{$this->lang->words['topic_start']}</a></li>
  212. <else />
  213. <li class='disabled'><span><if test="isGuestPostTopicTop:|: ! $this->memberData['member_id']">{$this->lang->words['forum_no_start_topic_guest']}<else />{$this->lang->words['forum_no_start_topic']}</if></span></li>
  214. </if>
  215. <if test="moderationDropdownLink:|:$this->memberData['is_mod'] == 1">
  216. <li class='non_button'>
  217. <a href='#' id='forum_mod_options' class='ipbmenu'>{$this->lang->words['forum_management']}</a>
  218. </li>
  219. </if>
  220. <if test="markRead:|:$this->memberData['member_id'] || $this->settings['topic_marking_guests']">
  221. <li class='non_button'>
  222. <a data-clicklaunch="forumMarkRead" data-fid="{$forum_data['id']}" href='{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=forum&amp;forumid={$forum_data['id']}&amp;returntoforumid={$forum_data['id']}" base="public"}' title='{$this->lang->words['mark_as_read']}'><img src='{$this->settings['img_url']}/icon_check.png' /> &nbsp;{$this->lang->words['mark_as_read']}</a>
  223. </li>
  224. </if>
  225. </ul>
  226.  
  227.  
  228. </div>
  229.  
  230. <if test="moderationDropdownMenu:|:$this->memberData['is_mod'] == 1">
  231. <ul class='ipbmenu_content' id='forum_mod_options_menucontent' style='display: none'>
  232. <li><a href='{parse url="showforum={$forum_data['id']}&amp;modfilter=unapproved" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['mod_unapproved']}'>{$this->lang->words['mod_unapproved']}</a></li>
  233. <li><a href='{parse url="showforum={$forum_data['id']}&amp;modfilter=hidden" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['mod_hidden']}'>{$this->lang->words['mod_hidden']}</a></li>
  234. <if test="$this->memberData['g_is_supmod']">
  235. <li><a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=prune_start&amp;f={$forum_data['id']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['mod_prumemovetopics']}'>{$this->lang->words['mod_prumemovetopics']}</a></li>
  236. </if>
  237. </ul>
  238. </if>
  239. <div class='ipsFilterbar maintitle'>
  240. <if test="topicsismod:|:$this->memberData['is_mod'] == 1">
  241. <span class='right'>
  242. <input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' />
  243. &nbsp;
  244. </span>
  245. </if>
  246.  
  247. <ul class='ipsList_inline ipsType_small'>
  248. <li <if test="ka_last_post:|:$this->request['sort_key'] == 'last_post' and $this->request['sort_by'] == 'Z-A'">class='active'</if>><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key=last_post&amp;sort_by=Z-A" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['sort_recent']}</a></li>
  249. <li <if test="ka_start_date:|:$this->request['sort_key'] == 'start_date' and $this->request['sort_by'] == 'Z-A'">class='active'</if>><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key=start_date&amp;sort_by=Z-A" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['sort_start']}</a></li>
  250. <li <if test="ka_replies:|:$this->request['sort_key'] == 'posts' and $this->request['sort_by'] == 'Z-A'">class='active'</if>><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key=posts&amp;sort_by=Z-A" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['sort_replies']}</a></li>
  251. <li <if test="ka_viewed:|:$this->request['sort_key'] == 'views' and $this->request['sort_by'] == 'Z-A'">class='active'</if>><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key=views&amp;sort_by=Z-A" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['sort_views']}</a></li>
  252. <li <if test="$this->request['sort_by'] == 'A-Z' or !in_array( $this->request['sort_key'], array( 'last_post', 'start_date', 'posts', 'views' ) )">class='active'</if>><a href='#forum_filter_menucontent' id='forum_filter'>{$this->lang->words['sort_custom']} <img src="{$this->settings['img_url']}/useropts_arrow.png" /></a></li>
  253. <if test="answerLink:|:$this->registry->class_forums->answerTopicsEnabled( $forum_data['id'] )">
  254. <li <if test="ka_viewed:|:isset($this->request['answered'])">class='active'</if>><a href="#filter_answered_menucontent" id='filter_answered'>{$this->lang->words['tmenu_answered_link']} <img src="{$this->settings['img_url']}/useropts_arrow.png" /></a></li>
  255. </if>
  256. </ul>
  257. </div>
  258. <if test="answerMenu:|:$this->registry->class_forums->answerTopicsEnabled( $forum_data['id'] )">
  259. <ul id='filter_answered_menucontent' class='ipbmenu_content' style='display: none'>
  260. <li><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key={$this->request['sort_key']}&amp;sort_by={$this->request['sort_by']}&amp;answered=true" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['tmenu_answered']}</a></li>
  261. <li><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key={$this->request['sort_key']}&amp;sort_by={$this->request['sort_by']}&amp;answered=false" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['tmenu_unanswered']}</a></li>
  262. <li><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key={$this->request['sort_key']}&amp;sort_by={$this->request['sort_by']}" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['tmenu_show_all']}</a></li>
  263. </ul>
  264. <script type='text/javascript'>
  265. new ipb.Menu( $('filter_answered'), $('filter_answered_menucontent'), { stopClose: true } );
  266. </script>
  267. </if>
  268. <div id='forum_filter_menucontent' class='ipbmenu_content ipsPad' style='display: none'>
  269. <form id='filter_form' action="{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;changefilters=1" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}" method="post">
  270. <strong>{$this->lang->words['filter_type']}</strong><br />
  271. <select name="topicfilter" id='topic_filter' class='input_select'>{$footer_filter['topic_filter']}</select>
  272. <br /><br />
  273.  
  274. <strong>{$this->lang->words['filter_sort']}</strong><br />
  275. <select name="sort_key" id='sort_by' class='input_select'>{$footer_filter['sort_by']}</select>
  276. <br /><br />
  277.  
  278. <strong>{$this->lang->words['filter_direction']}</strong><br />
  279. <select name="sort_by" id='direction' class='input_select'>{$footer_filter['sort_order']}</select>
  280. <br /><br />
  281.  
  282. <strong>{$this->lang->words['filter_time']}</strong><br />
  283. <select name="prune_day" id='time_frame' class='input_select'>{$footer_filter['sort_prune']}</select>
  284. <br /><br />
  285.  
  286. <input type='checkbox' value='1' name='remember' class='input_check' id='remember_filter' /> <label for='remember_filter'>{$this->lang->words['remember_options']}</label>
  287. <br /><br />
  288.  
  289. <input type="submit" value="{$this->lang->words['sort_submit']}" class="input_submit" />
  290. </form>
  291. </div>
  292. <script type='text/javascript'>
  293. new ipb.Menu( $('forum_filter'), $('forum_filter_menucontent'), { stopClose: true } );
  294. </script>
  295. <div class='ipsBox'>
  296. <div class='ipsBox_container'>
  297. <table class='ipb_table topic_list hover_rows <if test="topicsismod:|:$this->memberData['is_mod'] == 1">is_mod</if>' summary='{$this->lang->words['forum_topic_list']} "{$forum_data['name']}"' id='forum_table'>
  298. <tr class='header hide'>
  299. <th scope='col' class='col_f_icon'>&nbsp;</th>
  300. <th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
  301. <th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>
  302. <th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
  303. <if test="canSeeLastInfoHeader:|:$this->memberData['gbw_view_last_info']"><th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th></if>
  304. <if test="topicsismod:|:$this->memberData['is_mod'] == 1">
  305. <th scope='col' class='col_f_mod short'><input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /></th>
  306. </if>
  307. </tr>
  308. <!-- BEGIN TOPICS -->
  309. <if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">
  310. <foreach loop="topics:$topic_data as $tid => $data">
  311. {parse template="topic" group="forum" params="$data, $forum_data, $other_data, $inforum"}
  312. </foreach>
  313. <else />
  314. <tr>
  315. <if test="notopicsspan:|:$this->memberData['is_mod'] == 1">
  316. <td colspan='6' class='no_messages'>
  317. <else />
  318. <td colspan='5' class='no_messages'>
  319. </if>
  320. {$this->lang->words['no_topics']}
  321. </td>
  322. </tr>
  323. </if>
  324. </table>
  325. <if test="hastopics:|:$other_data['hasMore']">
  326. <div id='more_topics' style='display: none'>
  327. <a href='#' id='forum_load_more'>{$this->lang->words['load_more_topics']}</a>
  328. </div>
  329. <script type='text/javascript'>
  330. ipb.forums.fetchMore = {
  331. 'f': parseInt("{$this->request['showforum']}") ,
  332. 'page': parseInt("{$this->request['page']}"),
  333. 'sort_by': "{$this->request['sort_by']}",
  334. 'sort_key': "{$this->request['sort_key']}",
  335. 'topicfilter': "{$this->request['topicfilter']}",
  336. 'prune_day': "{$this->request['prune_day']}",
  337. 'max_topics': "{$this->settings['display_max_topics']}"
  338. };
  339. </script>
  340. </if>
  341. </div>
  342. </div>
  343.  
  344. <br />
  345. <div class='topic_controls clear'>
  346. {$forum_data['SHOW_PAGES']}
  347. <ul class='topic_buttons'>
  348. <if test="bottomusercanpost:|:$forum_data['_user_can_post']">
  349. <li><a href='{parse url="module=post&amp;section=post&amp;do=new_post&amp;f={$forum_data['id']}" base="publicWithApp"}' title='{$this->lang->words['topic_start']}' rel='nofollow' accesskey='s'>{$this->lang->words['topic_start']}</a></li>
  350. <else />
  351. <li class='disabled'><span><if test="isGuestPostTopic:|: ! $this->memberData['member_id']">{$this->lang->words['forum_no_start_topic_guest']}<else />{$this->lang->words['forum_no_start_topic']}</if></span></li>
  352. </if>
  353. </ul>
  354. </div>
  355. <br class='clear' />
  356. <div id='forum_footer' class='statistics clear clearfix'>
  357. <if test="hasmoderators:|:is_array( $mod_data ) AND count( $mod_data )">
  358. <div id='forum_led_by' class='right ipsType_small'>
  359. <img src='{$this->settings['img_url']}/icon_users.png' /> &nbsp;{$this->lang->words['forum_led_by']}
  360. <foreach loop="moderators:$mod_data as $p => $r">
  361. <a href='{$r[0]}' title='{$this->lang->words['view_profile']}'>{$r[1]}</a><if test="moderatorpopup:|:$r[2]"></if><if test="moderatorscomma:|:$p + 1 != count( $mod_data )">,</if>
  362. </foreach>
  363. </div>
  364. </if>
  365. <if test="showactiveusers:|:is_array( $active_user_data ) AND count( $active_user_data )">
  366. <div id='forum_active_users' class='active_users stats_list'>
  367. <h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['active_users_titlef'], $active_user_data['stats']['total'] )"}</h4>
  368. <p class='statistics_brief'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $active_user_data['stats']['members'], $active_user_data['stats']['guests'], $active_user_data['stats']['anon'] )"}</p>
  369. <br />
  370. <ul class='ipsList_inline'>
  371. <if test="hasactiveusers:|:is_array( $active_user_data['names'] ) AND count( $active_user_data['names'] )">
  372. {parse expression="implode( ', ', $active_user_data['names'] )"}
  373. </if>
  374. </ul>
  375. </div>
  376. </if>
  377. </div>
  378. </if>
  379. <br class='clear' />
  380.  
  381. <div id='delPopUp' style='display:none'>
  382. <h3 class='bar'>{$this->lang->words['dlt_title']}</h3>
  383. <div class='general_box'>
  384. <form action='#{removeUrl}' method='POST'>
  385. <strong>{$this->lang->words['dlt_remove_from_view']}</strong>
  386. <p class='desc'>{$this->lang->words['dlt_remove_from_view_desc']}</p>
  387. <p style='padding:4px 0px 4px 0px'>{$this->lang->words['dlt_reason']} <input type='text' name='deleteReason' id='delPop_reason' value='' style='width:65%' /> <input type='submit' class='input_submit' value='{$this->lang->words['dlt_remove']}' /></p>
  388. </form>
  389. <div style='#{permaDelete}padding-top:5px'>
  390. <strong>{$this->lang->words['dlt_delete_from_topic']}</strong>
  391. <p class='desc'>{$this->lang->words['dlt_delete_from_topic_desc']}</p>
  392. <p style='padding:4px 0px 4px 0px'><input type='button' class='input_submit' onclick="window.location='#{permaUrl}';" value='{$this->lang->words['dlt_delete_now']}' /></p>
  393. </div>
  394. </div>
  395. </div>
  396. <if test="moderationform:|:$this->memberData['is_mod'] == 1">
  397. <form id='modform' class='right' method="post" action="{parse url="" base="public"}">
  398. <input type="hidden" name="app" value="forums" />
  399. <input type="hidden" name="module" value="moderate" />
  400. <input type="hidden" name="section" value="moderate" />
  401. <input type="hidden" name="do" value="topicchoice" />
  402. <input type="hidden" name="st" value="{$this->request['st']}" />
  403. <input type="hidden" name="f" value="{$forum_data['id']}" />
  404. <input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
  405. <input type="hidden" name="modfilter" value="{$this->request['modfilter']}" />
  406. <input type="hidden" value="{$this->request['selectedtids']}" id='selectedtids' name="selectedtids" />
  407. <input type="hidden" name="tact" id="tact" value="" />
  408. </form>
  409. </if>
  410. <select style='display:none' id='multiModOptions'>
  411. <if test="hasMultiModeratorOptions:|:is_array( $multi_mod_data ) AND count( $multi_mod_data )">
  412. <foreach loop="mm:$multi_mod_data as $mm_data">
  413. <option value="t_{$mm_data[0]}">{$mm_data[1]}</option>
  414. </foreach>
  415. </if>
  416. </select>
Advertisement
RAW Paste Data Copied
Advertisement