Advertisement
Guest User

Untitled

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