Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
1.9 KiB

  1. <script>
  2. function showHideForumlist() {
  3. if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) {
  4. $("li[id^='forum-widget-entry-extended-']").hide();
  5. $("li#forum-widget-collapse").html(window.showMore);
  6. }
  7. else {
  8. $("li[id^='forum-widget-entry-extended-']").show();
  9. $("li#forum-widget-collapse").html(window.showFewer);
  10. }
  11. }
  12. </script>
  13. <div id="forumlist-sidebar-right" class="widget">
  14. <h3 id="forumlist">{{$title}}</h3>
  15. <ul id="forumlist-sidbar-ul" role="menu">
  16. {{foreach $forums as $forum}}
  17. {{if $forum.id <= $visible_forums}}
  18. <li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-{{$forum.id}}" role="menuitem">
  19. <span class="notify badge pull-right"></span>
  20. <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
  21. <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
  22. </a>
  23. <a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
  24. </li>
  25. {{/if}}
  26. {{if $forum.id > $visible_forums}}
  27. <li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-extended-{{$forum.id}}" role="menuitem" style="display: none;">
  28. <span class="notify padge pull-right"></span>
  29. <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
  30. <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
  31. </a>
  32. <a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
  33. </li>
  34. {{/if}}
  35. {{/foreach}}
  36. {{if $total > $visible_forums }}
  37. <li onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="forum-widget-link tool fakelink">{{$showmore}}</li>
  38. {{/if}}
  39. </ul>
  40. </div>