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-frame">
15 <span id="forumlist-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('forumlist-sidebar', 'forumlist-sidebar-inflated');">
18 <div id="forumlist-sidebar" class="widget">
19 <span class="fakelink" onclick="openCloseWidget('forumlist-sidebar', 'forumlist-sidebar-inflated');">
20 <h3 id="forumlist">{{$title}}</h3>
22 <ul id="forumlist-sidbar-ul" role="menu">
23 {{foreach $forums as $forum}}
24 {{if $forum.id <= $visible_forums}}
25 <li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-{{$forum.id}}" role="menuitem">
26 <span class="notify badge pull-right"></span>
27 <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
28 <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
30 <a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
34 {{if $forum.id > $visible_forums}}
35 <li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-extended-{{$forum.id}}" role="menuitem" style="display: none;">
36 <span class="notify badge pull-right"></span>
37 <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
38 <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
40 <a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
45 {{if $total > $visible_forums }}
46 <li onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="forum-widget-link fakelink tool">{{$showmore}}</li>
52 initWidget('forumlist-sidebar', 'forumlist-sidebar-inflated');