Advertisement
Guest User

Untitled

a guest
May 28th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.54 KB | None | 0 0
  1. <ul class="action-bar action-bar-top">
  2. <!-- BEGIN switch_user_logged_in -->
  3. <li>
  4. <a href="{U_SEARCH_NEW}">
  5. <i class="material-icons">new_releases</i>&nbsp;{L_SEARCH_NEW}
  6. </a>
  7. </li>
  8. <li>
  9. <a href="{U_SEARCH_SELF}">
  10. <i class="material-icons">account_box</i>&nbsp;{L_SEARCH_SELF}
  11. </a>
  12. </li>
  13. <!-- END switch_user_logged_in -->
  14. <li>
  15. <a href="{U_SEARCH_UNANSWERED}">
  16. <i class="material-icons">chat_bubble_outline</i>&nbsp;{L_SEARCH_UNANSWERED}
  17. </a>
  18. </li>
  19. <!-- BEGIN switch_user_logged_in -->
  20. <li class="rightside">
  21. <a href="{U_MARK_READ}" accesskey="m">
  22. <i class="material-icons">done_all</i>&nbsp;{L_MARK_FORUMS_READ}
  23. </a>
  24. </li>
  25. <!-- END switch_user_logged_in -->
  26. </ul>
  27.  
  28. <!-- BEGIN catrow -->
  29. <!-- BEGIN tablehead -->
  30. <div class="forum {catrow.tablehead.TYPE_TABLE_SECTION}">
  31. <div class="forum-header">
  32. <div class="category-title">
  33. <i class="material-icons">description</i>
  34. <span>{catrow.tablehead.L_FORUM}</span>
  35. </div>
  36. </div>
  37. <!-- END tablehead -->
  38.  
  39. <!-- BEGIN forumrow -->
  40. <div class="forum-section {catrow.forumrow.FOLDER_CLASSNAME} {catrow.forumrow.TYPE_SECTION}">
  41. <div class="forum-icon" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}">
  42. <i class="material-icons">forum</i>
  43. </div>
  44. <div class="forum-content">
  45. <div class="forum-description">
  46. <h3><a href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a></h3>
  47. <p>{catrow.forumrow.FORUM_DESC}</p>
  48. {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
  49. </div>
  50. <div class="forum-statistics">
  51. <span class="forum-statistics-topics">{catrow.forumrow.TOPICS} <span>{L_TOPICS}</span></span>
  52. <span class="forum-statistics-posts">{catrow.forumrow.POSTS} <span>{L_POSTS}</span></span>
  53. </div>
  54. <div class="forum-lastpost">
  55. <div class="avatar-default">
  56. <!-- BEGIN avatar -->
  57. {catrow.forumrow.avatar.LAST_POST_AVATAR}
  58. <!-- END avatar -->
  59. <!-- BEGIN ads -->
  60. <img src="{catrow.forumrow.ads.IMG}" alt="{catrow.forumrow.ads.TITLE}"/>
  61. <!-- END ads -->
  62. </div>
  63. <div class="forum-lastpost-inner">
  64. <!-- BEGIN switch_topic_title -->
  65. <a class="topic-title" href="{catrow.forumrow.U_LATEST_TOPIC}"
  66. title="{catrow.forumrow.LATEST_TOPIC_TITLE}">{catrow.forumrow.LATEST_TOPIC_NAME}</a>
  67. <!-- END switch_topic_title -->
  68. <!-- BEGIN ads -->
  69. <a class="topic-title" href="{catrow.forumrow.ads.LINK}"
  70. title="{catrow.forumrow.ads.TITLE}">{catrow.forumrow.ads.TITLE}</a>
  71. <!-- END ads -->
  72. <span>
  73. <!-- BEGIN ads -->
  74. <span class="forum-lastpost-location">
  75. <i class="material-icons">place</i>{catrow.forumrow.ads.LOCATION}
  76. </span>
  77. <!-- END ads -->
  78. <span class="forum-lastpost-author">
  79. <i class="material-icons">person</i>{catrow.forumrow.USER_LAST_POST}
  80. <!-- BEGIN ads -->
  81. {catrow.forumrow.ads.ALIAS}
  82. <!-- END ads -->
  83. </span>
  84. <span class="forum-lastpost-time">
  85. <i class="material-icons">access_time</i><a
  86. href="{catrow.forumrow.U_LATEST_TOPIC_POST}">{catrow.forumrow.LAST_POST_HOUR}</a>
  87. <!-- BEGIN ads -->
  88. {catrow.forumrow.ads.DATE}
  89. <!-- END ads -->
  90. </span>
  91. </span>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <!-- END forumrow -->
  97.  
  98. <!-- BEGIN tablefoot -->
  99. </div><!-- <div class="forum" /> -->
  100. <!-- END tablefoot -->
  101. <!-- END catrow -->
  102.  
  103. <!-- BEGIN switch_on_index -->
  104. <ul class="action-bar action-bar-bottom">
  105. <li>
  106. <a href="{U_TODAY_ACTIVE}">{L_TODAY_ACTIVE}</a>
  107. </li>
  108. <li>
  109. <a href="{U_TODAY_POSTERS}">{L_TODAY_POSTERS}</a>
  110. </li>
  111. <li class="last">
  112. <a href="{U_OVERALL_POSTERS}">{L_OVERALL_POSTERS}</a>
  113. </li>
  114. <!-- BEGIN switch_delete_cookies -->
  115. <li class="rightside">
  116. <a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" rel="nofollow">
  117. <i class="material-icons">delete</i>&nbsp;{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}
  118. </a>
  119. </li>
  120. <!-- END switch_delete_cookies -->
  121. </ul>
  122. <!-- END switch_on_index -->
  123.  
  124. <script type="text/javascript">
  125. //<![CDATA[
  126. $(document).ready(function () {
  127. var btn_collapse = $('<div/>', {
  128. class: 'forum-hide',
  129. html: '<div class="forum-hide-icon-a"></div><div class="forum-hide-icon-b"></div>',
  130. });
  131.  
  132. var collapsed = [];
  133.  
  134. if (readCookie('collapsed') != null && readCookie('collapsed') != '') {
  135. collapsed = readCookie('collapsed').split(',');
  136. }
  137.  
  138. $(document).on('click', '.forum-hide', function () {
  139. $(this).toggleClass('forum-show');
  140. $(this).parents('.php').toggleClass('forum-hidden');
  141.  
  142. if (readCookie('collapsed') != null && readCookie('collapsed') != '') {
  143. collapsed = readCookie('collapsed').split(',');
  144. }
  145.  
  146. if (!$(this).parents('.php').hasClass('forum-hidden')) {
  147. removeFromArray('' + $(this).parents('.php').data('cindex'), collapsed);
  148.  
  149. createCookie('collapsed', collapsed);
  150. } else {
  151. collapsed.push('' + $(this).parents('.php').data('cindex'));
  152.  
  153. createCookie('collapsed', collapsed);
  154. }
  155. });
  156.  
  157. $('.php').each(function (i) {
  158. $(this).data('cindex', '' + i);
  159.  
  160. $(btn_collapse)
  161. .clone()
  162. .attr('id', 'forum' + i)
  163. .appendTo($(this).find('.forum-header'));
  164.  
  165. if ($.inArray('' + i, collapsed) > -1) {
  166. $(this).find('.forum-hide').toggleClass('forum-show');
  167. $(this).toggleClass('forum-hidden');
  168. }
  169.  
  170. if ($(this).find('.type-classified').length) {
  171. $(this)
  172. .addClass('type-table-classified')
  173. .find('.forum-statistics-header-posts, .forum-statistics-posts').remove();
  174. }
  175. });
  176. });
  177.  
  178. function removeFromArray(item, array) {
  179. var i = array.indexOf(item);
  180.  
  181. if (i > -1) {
  182. array = array.splice(i, 1);
  183. }
  184. }
  185.  
  186. function createCookie(name, value, days) {
  187. var expires;
  188.  
  189. if (days) {
  190. var date = new Date();
  191. date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
  192. expires = "; expires=" + date.toGMTString();
  193. } else {
  194. expires = "";
  195. }
  196. document.cookie = encodeURIComponent(name) + "=" + encodeURIComponent(value) + expires + "; path=/";
  197. }
  198.  
  199. function readCookie(name) {
  200. var nameEQ = encodeURIComponent(name) + "=";
  201. var ca = document.cookie.split(';');
  202. for (var i = 0; i < ca.length; i++) {
  203. var c = ca[i];
  204. while (c.charAt(0) === ' ') c = c.substring(1, c.length);
  205. if (c.indexOf(nameEQ) === 0) return decodeURIComponent(c.substring(nameEQ.length, c.length));
  206. }
  207. return null;
  208. }
  209.  
  210. //]]>
  211. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement