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);
9 $("li[id^='forum-widget-entry-extended-']").show();
10 $("li#forum-widget-collapse").html(window.showFewer);
14 <span id="forumlist-sidebar-inflated" class="widget fakelink" style="display: block;" onclick="openClose('forumlist-sidebar'); openClose('forumlist-sidebar-inflated');">
17 <div id="forumlist-sidebar" class="widget" style="display: none;">
18 <span class="fakelink" onclick="openClose('forumlist-sidebar'); openClose('forumlist-sidebar-inflated');">
19 <h3 id="forumlist">{{$title}}</h3>
21 <ul id="forumlist-sidbar-ul" role="menu">
22 {{foreach $forums as $forum}}
23 {{if $forum.id <= $visible_forums}}
24 <li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-{{$forum.id}}" role="menuitem">
25 <span class="notify badge pull-right"></span>
26 <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
27 <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
29 <a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
33 {{if $forum.id > $visible_forums}}
34 <li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-extended-{{$forum.id}}" role="menuitem" style="display: none;">
35 <span class="notify badge pull-right"></span>
36 <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
37 <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
39 <a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
44 {{if $total > $visible_forums }}
45 <li onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="forum-widget-link fakelink tool">{{$showmore}}</li>