Advertisement
Guest User

boardIndexTemplate

a guest
Apr 12th, 2015
239
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {parse js_module="board"}
  2. {parse variable="sidebar_enabled" default="$show_side_blocks"}
  3. <if test="boardIndexTop:|:true"></if>
  4. <div id='board_index' class='ipsLayout <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'>
  5. <div id='categories' class='ipsLayout_content clearfix'>
  6. <!-- CATS AND FORUMS -->
  7. <if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">
  8. <foreach loop="categories:$cat_data as $_data">
  9. <if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
  10. <div id='category_{$_data['cat_data']['id']}' class='category_block block_wrap'>
  11. <h3 class='maintitle'>
  12. <a class='toggle right' href='#' title="{parse expression="sprintf( $this->lang->words['toggle_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}">{parse expression="sprintf( $this->lang->words['toggle_cat'], $_data['cat_data']['name'] )"}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a>
  13. </h3>
  14. <div class='ipsBox table_wrap'>
  15. <div class='ipsBox_container'>
  16. <table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_data']['name']}'">
  17. <tr class='header hide'>
  18. <th scope='col' class='col_c_icon'>&nbsp;</th>
  19. <th scope='col' class='col_c_forum'>{$this->lang->words['cat_name']}</th>
  20. <th scope='col' class='col_c_stats stats'>{$this->lang->words['stats']}</th>
  21. <if test="canSeeLastInfoHeader:|:$this->memberData['gbw_view_last_info']"><th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th></if>
  22. </tr>
  23. <!-- / CAT HEADER -->
  24. <foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
  25. <if test="forumRedirect:|:$forum_data['redirect_on']">
  26. <tr class='redirect_forum' id='f_{$forum_data['id']}'>
  27. <td class='col_c_icon'>
  28. <img src='{$this->settings['img_url']}/f_redirect.png' />
  29. </td>
  30. <td <if test="canSeeLastInfoRedirect:|:$this->memberData['gbw_view_last_info']">colspan='2'</if> class='col_c_forum'>
  31. <h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</a></h4>
  32. <p class='desc'>{$forum_data['description']}</p>
  33. </td>
  34. <td class='desc'>
  35. <ul class='last_post ipsType_small'>
  36. <li class='desc lighter'><em>{parse format_number="$forum_data['redirect_hits']"} {$this->lang->words['rd_hits']}</em></li>
  37. </ul>
  38. </td>
  39. </tr>
  40. <else />
  41. <tr class='<if test="hasUnreadClass:|:$forum_data['_has_unread']">unread</if>'>
  42. <td class='col_c_icon'>
  43. <if test="hasUnread:|:$forum_data['_has_unread']">
  44. <a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=forum&amp;forumid={$forum_data['id']}&amp;returntoforumid={$this->request['f']}&amp;i=1&amp;k={$this->member->form_hash}" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'>
  45. <i class='fa-i-r fa-crosshairs' style="color: #fff"></i>
  46. </a>
  47. <else />
  48. <!-- <img src='{$this->settings['img_url']}/f_icon_read.png' />
  49. -->
  50.  
  51. <i class='fa-i-r fa-crosshairs'></i>
  52.  
  53.  
  54. </if>
  55. </td>
  56. <td class='col_c_forum'>
  57.  
  58. <h4>
  59. <if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])">
  60. <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>
  61. </if>
  62. <a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</a>
  63. </h4>
  64.  
  65. <p class='desc __forum_desc ipsType_small'>{$forum_data['description']}</p>
  66. <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/>
  67.  
  68. <if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
  69.  
  70. <ol class='ipsList_inline ipsType_small subforums2' id='subforums_{$forum_data['id']}'>
  71. <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"></ol>
  72. <ol class='ipsList_inline ipsType_small subforums3' id='subforums_{$forum_data['id']}'>
  73. <if test="showSubForumsLit:|:$__data[3]">
  74. <li class='unread'>
  75. <else />
  76. <li>
  77. </if>
  78. </foreach>
  79. </ol>
  80. <ol class='ipsList_inline ipsType_small subforums2' id='subforums_{$forum_data['id']}'>
  81. <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"></ol>
  82. <ol class='ipsList_inline ipsType_small subforums3' id='subforums_{$forum_data['id']}'>
  83. <if test="showSubForumsLit:|:$__data[3]">
  84. <li class='unread'>
  85. <else />
  86. <li>
  87. </if>
  88. </foreach>
  89. </ol>
  90. <ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'>
  91. <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
  92. </ol>
  93. <ol class='ipsList_inline ipsType_small subforums1' id='subforums_{$forum_data['id']}'>
  94. <if test="showSubForumsLit:|:$__data[3]">
  95. <li class='unread'>
  96. <else />
  97. <li>
  98. </if>
  99. <a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a>
  100. </li>
  101. </foreach>
  102. </ol>
  103.  
  104.  
  105. </if>
  106.  
  107.  
  108. </td>
  109.  
  110. <if test="canSeeLastInfo:|:$this->memberData['gbw_view_last_info']">
  111. <td class='col_c_post'>
  112.  
  113. <div class="right">
  114.  
  115. <if test="hideTopicInTitle:|:$forum_data['_hide_last_date']">
  116. {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' => '' )"}
  117. <else />
  118. {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'] ) )"}
  119. </if>
  120. </div>
  121. <if test="hideLastInfo:|:$forum_data['hide_last_info']">
  122. <ul class='last_post ipsType_small'>
  123. <li class='desc lighter'><em>{$this->lang->words['f_protected']}</em></li>
  124. </ul>
  125. <else />
  126.  
  127. <ul class='last_post ipsType_small'>
  128. <if test="!$forum_data['last_id']">
  129. <li class='desc lighter'><em>{$this->lang->words['f_none']}</em></li>
  130. <else />
  131. <li>
  132. {$forum_data['last_topic_title']}
  133. </li>
  134. <if test="lastPosterID:|:$forum_data['last_poster_id']">
  135. <li>{$this->lang->words['by']} {parse template="userHoverCard" group="global" params="$forum_data"}</li>
  136. </if>
  137. <if test="hideDateUrl:|:$forum_data['_hide_last_date']">
  138. <li class='desc lighter blend_links'>{parse date="$forum_data['last_post']" format="DATE"}</li>
  139. <else />
  140. <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>
  141. </if>
  142. </if> </ul>
  143.  
  144. </if>
  145. </td>
  146. </if>
  147. </tr>
  148. </if>
  149. </foreach>
  150. </table>
  151. </div>
  152. </div>
  153. <br />
  154. </div>
  155. </if>
  156. </foreach>
  157. </if>
  158. </div>
  159. <if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
  160. <div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
  161. <foreach loop="side_blocks:$side_blocks as $block">
  162. {$block}
  163. </foreach>
  164. </div>
  165. <a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="&times;">&nbsp;</a>
  166. </if>
  167. </div>
  168. <script type='text/javascript'>
  169. //<![CDATA[
  170. var markerURL = ipb.vars['base_url'] + "app=forums&module=ajax&section=markasread&i=1"; // Ajax URL so don't use &amp;
  171. var unreadIcon = "<i class='fa-i-r fa-crosshairs'></i>";
  172.  
  173. <if test="markercatforums:|:is_array( $cat_data ) AND count( $cat_data )">
  174. <foreach loop="markercategories:$cat_data as $_data">
  175. <if test="markerhasforums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
  176. <foreach loop="markerforums:$_data['forum_data'] as $forum_id => $forum_data">
  177. <if test="markernotredirect:|:!$forum_data['redirect_on']">
  178. <if test="markerhasunread:|:$forum_data['_has_unread']">
  179. ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
  180. </if>
  181. </if>
  182. </foreach>
  183. </if>
  184. </foreach>
  185. </if>
  186. //]]>
  187. </script>
  188. <if test="showTotals:|:$this->settings['show_totals']">
  189. <div id='board_stats'>
  190. <ul class='ipsType_small ipsList_inline'>
  191. <li class='clear'>
  192. <span class='value'>{$stats['info']['total_posts']}</span>
  193. <p style='border: 2px dashed #292a2a; margin-bottom'>{$this->lang->words['total_posts']}</p>
  194. </li>
  195. <li class='clear'>
  196. <span class='value'>{parse format_number="$this->caches['stats']['total_topics']"}</span>
  197. <p style='border: 2px dashed #292a2a; margin-bottom'>Total topics</p>
  198. </li>
  199. <li class='clear'>
  200. <span class='value'>{$stats['info']['mem_count']}</span>
  201. <p style='border: 2px dashed #292a2a; margin-bottom'>{$this->lang->words['total_members']}</p>
  202. </li>
  203. <li class='clear'>
  204. {IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}
  205. <p style='border: 2px dashed #292a2a; margin-bottom'>{$this->lang->words['newest_member']}</p>
  206. </li>
  207. <li class='clear' data-tooltip="{$stats['info']['most_time']}">
  208. <span class='value'>{$stats['info']['most_online']}</span>
  209. <p style='border: 2px dashed #292a2a; margin-bottom'>{$this->lang->words['online_at_once']}</p>
  210. </li>
  211.  
  212. </ul>
  213. </div>
  214. </if>
  215. <div id='board_statistics' class='statistics clearfix'>
  216. <ul id='stat_links' class='ipsList_inline right ipsType_small'>
  217. <if test="statsLinks:|:1==1"> <!-- Hook point -->
  218. <li><a href="{parse url="app=forums&amp;module=extras&amp;section=stats&amp;do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
  219. <li><a href="{parse url="app=forums&amp;module=extras&amp;section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
  220. <li><a href="{parse url="app=members&amp;module=list&amp;max_results=20&amp;sort_key=posts&amp;sort_order=desc&amp;filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
  221. <if test="reputationEnabled:|:$this->settings['reputation_enabled']">
  222. <li>
  223. <a href="{parse url="app=members&amp;module=reputation&amp;section=most" base="public" template="most_liked" seotitle="most_liked"}" title="<if test="reputationTypeTitle:|:$this->settings['reputation_point_types'] == 'like'">{$this->lang->words['most_rep_likes']}<else />{$this->lang->words['most_rep_rep']}</if>">
  224. <if test="reputationType:|:$this->settings['reputation_point_types'] == 'like'">
  225. {$this->lang->words['most_rep_likes']}
  226. <else />
  227. {$this->lang->words['most_rep_rep']}
  228. </if>
  229. </a>
  230. </li>
  231. </if>
  232. </if>
  233. </ul>
  234.  
  235. <if test="showActive:|:$this->settings['show_active'] && $this->memberData['gbw_view_online_lists']">
  236. <h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</h4>
  237. <p class='statistics_brief desc'>
  238. {parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}
  239. <if test="onlineListEnabled:|:$this->settings['allow_online_list']">&nbsp;&nbsp;<a href='{parse url="app=members&amp;module=online&amp;sort_order=desc" base="public"}' title='{$this->lang->words['online_link']}'>({$this->lang->words['online_link']})</a></if>
  240. </p>
  241. </if>
  242. <if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']">
  243. <br />
  244. <p>
  245. <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>
  246. </p>
  247. </if>
  248. </div>
Advertisement
RAW Paste Data Copied
Advertisement