Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.17 KB | None | 0 0
  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'], $_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'], $_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='{$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" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><img src='{$this->settings['img_url']}/f_icon.png' /></a>
  45. <else />
  46. <img src='{$this->settings['img_url']}/f_icon_read.png' />
  47. </if>
  48. </td>
  49. <td class='col_c_forum'>
  50.  
  51. <h4>
  52. <if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])">
  53. <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>
  54. </if>
  55. <a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$forum_data['name']}'>{$forum_data['name']}</a>
  56. </h4>
  57.  
  58. <if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
  59. <br />
  60. <ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'>
  61. <foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
  62. <if test="showSubForumsLit:|:$__data[3]"><li class='unread'><else /><li></if>
  63. <a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$__data[1]}'>{$__data[1]}</a><if test="isNotLast:|: empty($__data[4] )">,</if>
  64. </li>
  65. </foreach>
  66. </ol>
  67. </if>
  68.  
  69. <p class='desc __forum_desc ipsType_small'>{$forum_data['description']}</p>
  70. </td>
  71. <td class='col_c_stats ipsType_small'>
  72. <ul>
  73. <li><strong>{$forum_data['topics']}</strong> {$this->lang->words['topics']}</li>
  74. <li><strong>{$forum_data['posts']}</strong> {$this->lang->words['replies']}</li>
  75. </ul>
  76. </td>
  77. <if test="canSeeLastInfo:|:$this->memberData['gbw_view_last_info']">
  78. <td class='col_c_post'>
  79. <if test="hideLastInfo:|:$forum_data['hide_last_info']">
  80. <ul class='last_post ipsType_small'>
  81. <li class='desc lighter'><em>{$this->lang->words['f_protected']}</em></li>
  82. </ul>
  83. <else />
  84. {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'] ) )"}
  85. <ul class='last_post ipsType_small'>
  86. <if test="!$forum_data['last_id']">
  87. <li class='desc lighter'><em>{$this->lang->words['f_none']}</em></li>
  88. <else />
  89. <li>
  90. {$forum_data['last_topic_title']}
  91. </li>
  92. <if test="lastPosterID:|:$forum_data['last_poster_id']">
  93. <li>{$this->lang->words['by']} {parse template="userHoverCard" group="global" params="$forum_data"}</li>
  94. </if>
  95. <if test="hideDateUrl:|:$forum_data['_hide_last_date']">
  96. <li class='desc lighter blend_links'>{parse date="$forum_data['last_post']" format="DATE"}</li>
  97. <else />
  98. <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>
  99. </if>
  100. </if>
  101. </ul>
  102. </if>
  103. </td>
  104. </if>
  105. </tr>
  106. </if>
  107. </foreach>
  108. </table>
  109. </div>
  110. </div>
  111. <br />
  112. </div>
  113. </if>
  114. </foreach>
  115. </if>
  116. </div>
  117. <if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
  118. <div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
  119. <foreach loop="side_blocks:$side_blocks as $block">
  120. {$block}
  121. </foreach>
  122. </div>
  123. <a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="&times;">&nbsp;</a>
  124. </if>
  125. </div>
  126. <script type='text/javascript'>
  127. //<![CDATA[
  128. var markerURL = ipb.vars['base_url'] + "app=forums&module=ajax&section=markasread&i=1"; // Ajax URL so don't use &amp;
  129. var unreadIcon = "<img src='{$this->settings['img_url']}/f_icon_read.png' />";
  130.  
  131. <if test="markercatforums:|:is_array( $cat_data ) AND count( $cat_data )">
  132. <foreach loop="markercategories:$cat_data as $_data">
  133. <if test="markerhasforums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
  134. <foreach loop="markerforums:$_data['forum_data'] as $forum_id => $forum_data">
  135. <if test="markernotredirect:|:!$forum_data['redirect_on']">
  136. <if test="markerhasunread:|:$forum_data['_has_unread']">
  137. ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
  138. </if>
  139. </if>
  140. </foreach>
  141. </if>
  142. </foreach>
  143. </if>
  144. //]]>
  145. </script>
  146. <if test="showTotals:|:$this->settings['show_totals']">
  147. <div id='board_stats'>
  148. <ul class='ipsType_small ipsList_inline'>
  149. <li class='clear'>
  150. <span class='value'>{$stats['info']['total_posts']}</span>
  151. {$this->lang->words['total_posts']}
  152. </li>
  153. <li class='clear'>
  154. <span class='value'>{$stats['info']['mem_count']}</span>
  155. {$this->lang->words['total_members']}
  156. </li>
  157. <li class='clear'>
  158. {IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}
  159. {$this->lang->words['newest_member']}
  160. </li>
  161. <li class='clear' data-tooltip="{$stats['info']['most_time']}">
  162. <span class='value'>{$stats['info']['most_online']}</span>
  163. {$this->lang->words['online_at_once']}
  164. </li>
  165. </ul>
  166. </div>
  167. </if>
  168.  
  169. <div id='board_statistics' class='statistics clearfix'>
  170. <ul id='stat_links' class='ipsList_inline right ipsType_small'>
  171. <if test="statsLinks:|:1==1"> <!-- Hook point -->
  172. <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>
  173. <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>
  174. <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>
  175. <if test="reputationEnabled:|:$this->settings['reputation_enabled']">
  176. <li>
  177. <a href="{parse url="app=members&amp;module=reputation&amp;section=most" base="public" template="most_liked" seotitle="most_liked"}">
  178. <if test="reputationType:|:$this->settings['reputation_point_types'] == 'like'">
  179. {$this->lang->words['most_rep_likes']}
  180. <else />
  181. {$this->lang->words['most_rep_rep']}
  182. </if>
  183. </a>
  184. </li>
  185. </if>
  186. </if>
  187. </ul>
  188.  
  189. <if test="showActive:|:$this->settings['show_active'] && $this->memberData['gbw_view_online_lists']">
  190. <h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</h4>
  191. <p class='statistics_brief desc'>
  192. {parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}
  193. <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"}'>({$this->lang->words['online_link']})</a></if>
  194. </p>
  195. </if>
  196. <if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']">
  197. <br />
  198. <p>
  199. <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>
  200. </p>
  201. </if>
  202. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement