Guest User

Untitled

a guest
Apr 18th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.69 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'], $_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>
  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="$cat_data['id'] = 1"> <php>$groups = array(2);</php> <if test="in_array($this->memberData['member_group_id'], $groups)"> <style type='text/css'> #category_1.category_block { position: relative; } #category_1:after { content: "Pentru a avea acces la aceasta categorie trebuie sa te inregistrezi."; background: url("{style_images_url}/transw80.png") repeat; background: rgba(0,0,0,0.5); position: absolute; top: 0; left: 0; right: 0; bottom: 0; font-size: 30px; line-height: 350px; text-align: center; z-index: 10; cursor: normal; } </style> </if></if>
  30. <if test="forumRedirect:|:$forum_data['redirect_on']">
  31. <tr class='redirect_forum' id='f_{$forum_data['id']}'>
  32. <td class='col_c_icon'>
  33. <if test="$this->settings['customForumIcons']=='yes'">
  34. <php>
  35. $imageURL = "{$this->settings['img_url']}";
  36. $imageFolder = basename($imageURL);
  37. $forumId = $forum_data['id'];
  38. </php>
  39. <if test="is_file( DOC_IPS_ROOT_PATH . '/' . PUBLIC_DIRECTORY . '/style_images/' . $imageFolder . '/forum_images/' . $forumId . '.png' )">
  40. <img src="{style_images_url}/forum_images/{$forum_data['id']}.png" alt="" />
  41. <else />
  42. <img src="{style_images_url}/forum_images/default.png" alt="" />
  43. </if>
  44. <else />
  45. <img src='{$this->settings['img_url']}/f_redirect.png' />
  46. </if>
  47. </td>
  48. <td <if test="$this->settings['removeStatsColumn']=='no'"><if test="canSeeLastInfoRedirect:|:$this->memberData['gbw_view_last_info']">colspan='2'</if></if> class='col_c_forum'>
  49. <h4 class='forum_name'><strong><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags($forum_data['name'])"}'>{$forum_data['name']}</a></strong></h4>
  50. <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>
  51. </td>
  52. <td class='desc'>
  53. <ul class='last_post ipsType_small'>
  54. <li class='desc lighter'><em>{parse format_number="$forum_data['redirect_hits']"} {$this->lang->words['rd_hits']}</em></li>
  55. </ul>
  56. </td>
  57. </tr>
  58. <else />
  59. <tr class='<if test="hasUnreadClass:|:$forum_data['_has_unread']">unread<else />notnew</if>'>
  60. <td class='col_c_icon'>
  61. <if test="hasUnread:|:$forum_data['_has_unread']">
  62. <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'>
  63. <if test="$this->settings['customForumIcons']=='yes'">
  64. <php>
  65. $imageURL = "{$this->settings['img_url']}";
  66. $imageFolder = basename($imageURL);
  67. $forumId = $forum_data['id'];
  68. </php>
  69. <if test="is_file( DOC_IPS_ROOT_PATH . '/' . PUBLIC_DIRECTORY . '/style_images/' . $imageFolder . '/forum_images/' . $forumId . '.png' )">
  70. <img src="{style_images_url}/forum_images/{$forum_data['id']}.png" alt="" />
  71. <else />
  72. <img src="{style_images_url}/forum_images/default.png" alt="" />
  73. </if>
  74. <else />
  75. <img src='{$this->settings['img_url']}/f_icon.png' />
  76. </if>
  77. </a>
  78. <else />
  79. <if test="$this->settings['customForumIcons']=='yes'">
  80. <php>
  81. $imageURL = "{$this->settings['img_url']}";
  82. $imageFolder = basename($imageURL);
  83. $forumId = $forum_data['id'];
  84. </php>
  85. <if test="is_file( DOC_IPS_ROOT_PATH . '/' . PUBLIC_DIRECTORY . '/style_images/' . $imageFolder . '/forum_images/' . $forumId . '.png' )">
  86. <img src="{style_images_url}/forum_images/{$forum_data['id']}.png" alt="" <if test="$this->memberData['member_id']">class='fadedForumIcon'</if> />
  87. <else />
  88. <img src="{style_images_url}/forum_images/default.png" alt="" <if test="$this->memberData['member_id']">class='fadedForumIcon'</if> />
  89. </if>
  90. <else />
  91. <img src='{$this->settings['img_url']}/f_icon_read.png' />
  92. </if>
  93. </if>
  94. </td>
  95. <td class='col_c_forum'>
  96.  
  97. <h4 class='forum_name'>
  98. <if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])">
  99. <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>
  100. </if>
  101. <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($forum_data['name'])"}'>{$forum_data['name']}</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>
  102. </h4>
  103.  
  104. <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>
  105. <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>
  106.  
  107. <if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
  108. <ol class='ipsList_inline ipsType_small subforums2' id='subforums_{$forum_data['id']}'><foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"></ol> <ol class='ipsList_inline ipsType_small subforums3' id='subforums_{$forum_data['id']}'><if test="showSubForumsLit:|:$__data[3]"><li class='unread'><else /><li></if></foreach></ol> <ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'><foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"></ol> <ol class='ipsList_inline ipsType_small subforums1' id='subforums_{$forum_data['id']}'><if test="showSubForumsLit:|:$__data[3]"><li class='unread'><else /><li></if><a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a></li></foreach></ol>
  109. </if>
  110.  
  111. <td style='width: 7%;'><span class='nstatsNumber'><font color=#8b0000>{$forum_data['topics']}</font></span><span class='nstatsText'>{$this->lang->words['topics']}</span></td><td style='width: 7%;'><span class='nstatsNumber'><font color=#8b0000>{$forum_data['posts']}</font></span><span class='nstatsText'>{$this->lang->words['replies']}</span></td></if>
  112. <if test="canSeeLastInfo:|:$this->memberData['gbw_view_last_info']">
  113. <td class='col_c_post'>
  114. <if test="hideLastInfo:|:$forum_data['hide_last_info']">
  115. <ul class='last_post'>
  116. <li class='desc lighter'><em>{$this->lang->words['f_protected']}</em></li>
  117. </ul>
  118.  
  119. <else />
  120. <if test="hideTopicInTitle:|:$forum_data['_hide_last_date']">
  121. {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' => '' )"}
  122. <else />
  123. {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'] ) )"}
  124. </if>
  125. <ul class='last_post ipsType_small'>
  126. <if test="!$forum_data['last_id']">
  127. <li class='desc lighter'><em>{$this->lang->words['f_none']}</em></li>
  128. <else />
  129. <li>
  130. <span class='highlight_unread'>{$forum_data['last_topic_title']}</span>
  131. </li>
  132. <li>
  133. <span class='desc lighter blend_links'>
  134. <if test="hideDateUrl:|:$forum_data['_hide_last_date']">
  135. {parse date="$forum_data['last_post']" format="DATE"}
  136. <else />
  137. <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>
  138. </if></span>
  139. <if test="lastPosterID:|:$forum_data['last_poster_id']">
  140. {$this->lang->words['by']} {parse template="userHoverCard" group="global" params="$forum_data"}
  141. </if>
  142. </li>
  143. </if>
  144.  
  145. </ul>
  146. </if>
  147. </td></if>
  148. </tr>
  149. </if>
  150. </foreach>
  151. </table>
  152. </div>
  153. </div>{parse replacement="box_end"}
  154. <br />
  155. </div>
  156. </if>
  157. </foreach>
  158. </if>
  159. </div>
  160. <if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
  161. <div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
  162. <if test="memberbox:|:$this->memberData['member_id']">
  163.  
  164. <div class='ipsSideBlock clearfix'>
  165. <h3>Welcome, <a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}'> {$this->memberData['members_display_name']}</a></h3>
  166. <div class='_sbcollapsable'>
  167.  
  168. <center class='desc member_title'>
  169. <if test="$this->memberData['title'] != ''">
  170. {$this->memberData['title']}<br />
  171. </if>
  172. <br />
  173. <a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}'>
  174. <img src='{$this->memberData['pp_main_photo']}'></a>
  175. <br /><br />
  176. <center>
  177.  
  178. <span style=' font-size: 14px;'>{$this->memberData['prefix']}{$this->memberData['g_title']}{$this->memberData['suffix']}</span><br /><br />
  179.  
  180. Posts: {$this->memberData['posts']}<br />
  181. Profile views: {$this->memberData['members_profile_views']}<br />
  182. Member No.: {$this->memberData['member_id']}<br>
  183. Joined: {parse date="$this->memberData['joined']" format="joined"}
  184.  
  185. <br /><br />
  186. Your IP: {$_SERVER['REMOTE_ADDR']}
  187. <br /><br />
  188. <div style='background:red; padding: 7px; color: #fff; font-weight: bold'>{$this->memberData['pp_reputation_points']}
  189. </div>
  190. </center>
  191. </div>
  192. </div>
  193.  
  194. </if>
  195. <foreach loop="side_blocks:$side_blocks as $block">
  196. {$block}
  197. </foreach>
  198. </div>
  199. <a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="&times;">&nbsp;</a>
  200. </if>
  201. </div>
  202. <script type='text/javascript'>
  203. //<![CDATA[
  204. var markerURL = ipb.vars['base_url'] + "app=forums&module=ajax&section=markasread&i=1"; // Ajax URL so don't use &amp;
  205. var unreadIcon = "<img src='{$this->settings['img_url']}/f_icon_read.png' />";
  206.  
  207. <if test="markercatforums:|:is_array( $cat_data ) AND count( $cat_data )">
  208. <foreach loop="markercategories:$cat_data as $_data">
  209. <if test="markerhasforums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
  210. <foreach loop="markerforums:$_data['forum_data'] as $forum_id => $forum_data">
  211. <if test="markernotredirect:|:!$forum_data['redirect_on']">
  212. <if test="markerhasunread:|:$forum_data['_has_unread']">
  213. ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
  214. </if>
  215. </if>
  216. </foreach>
  217. </if>
  218. </foreach>
  219. </if>
  220. //]]>
  221. </script>
  222. <if test="showTotals:|:$this->settings['show_totals']">
  223. <div id='board_stats'>
  224. <ul class='ipsType_small ipsList_inline'>
  225. <li class='clear'>
  226. {$this->lang->words['total_posts']}
  227. <span class='value'>{$stats['info']['total_posts']}</span>
  228. </li>
  229. <li class='clear'>
  230. {$this->lang->words['total_members']}
  231. <span class='value'>{$stats['info']['mem_count']}</span>
  232. </li>
  233. <li class='clear'>
  234. {$this->lang->words['newest_member']}
  235. {IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}
  236. </li>
  237. <li class='clear' data-tooltip="{$stats['info']['most_time']}">
  238. {$this->lang->words['online_at_once']}
  239. <span class='value'>{$stats['info']['most_online']}</span>
  240. </li>
  241. </ul>
  242. </div>
  243. </if>
  244. <div id='board_statistics' class='statistics clearfix'>
  245. <h4 class='statistics_head clearfix'><ul id='stat_links' class='ipsList_inline right ipsType_small'>
  246. <if test="statsLinks:|:1==1"> <!-- Hook point -->
  247. <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>
  248. <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>
  249. <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>
  250. <if test="reputationEnabled:|:$this->settings['reputation_enabled']">
  251. <li>
  252. <a href="{parse url="app=members&amp;module=reputation&amp;section=most" base="public" template="most_liked" seotitle="most_liked"}">
  253. <if test="reputationType:|:$this->settings['reputation_point_types'] == 'like'">
  254. {$this->lang->words['most_rep_likes']}
  255. <else />
  256. {$this->lang->words['most_rep_rep']}
  257. </if>
  258. </a>
  259. </li>
  260. </if>
  261. </if>
  262. </ul>
  263. <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>
  264. <if test="$this->settings['show_active']"><p class='statistics_brief desc'>
  265. {parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}
  266. <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>
  267. </p></if>
  268.  
  269. <if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']">
  270. <br />
  271. <p>
  272. <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>
  273. </p>
  274. </if>
  275. </div>
Advertisement
Add Comment
Please, Sign In to add comment