2015-11-09 09:56:20 -05:00
|
|
|
<script>
|
|
|
|
function showHideForumlist() {
|
2015-11-24 16:14:26 -05:00
|
|
|
if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) {
|
|
|
|
$("li[id^='forum-widget-entry-extended-']").hide();
|
|
|
|
$("li#forum-widget-collapse").html(window.showMore);
|
2015-11-09 09:56:20 -05:00
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
2015-11-24 16:14:26 -05:00
|
|
|
$("li[id^='forum-widget-entry-extended-']").show();
|
|
|
|
$("li#forum-widget-collapse").html(window.showFewer);
|
2015-11-09 09:56:20 -05:00
|
|
|
}
|
2015-11-24 16:14:26 -05:00
|
|
|
}
|
2015-11-09 09:56:20 -05:00
|
|
|
</script>
|
2020-01-13 17:14:14 -05:00
|
|
|
<span id="forumlist-sidebar-frame">
|
2020-01-11 03:41:14 -05:00
|
|
|
<span id="forumlist-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('forumlist-sidebar', 'forumlist-sidebar-inflated');">
|
2020-01-09 01:53:33 -05:00
|
|
|
<h3>{{$title}}</h3>
|
|
|
|
</span>
|
2020-01-11 03:41:14 -05:00
|
|
|
<div id="forumlist-sidebar" class="widget">
|
|
|
|
<span class="fakelink" onclick="openCloseWidget('forumlist-sidebar', 'forumlist-sidebar-inflated');">
|
2020-01-09 01:53:33 -05:00
|
|
|
<h3 id="forumlist">{{$title}}</h3>
|
|
|
|
</span>
|
2015-11-24 16:14:26 -05:00
|
|
|
<ul id="forumlist-sidbar-ul" role="menu">
|
|
|
|
{{foreach $forums as $forum}}
|
2015-11-09 09:56:20 -05:00
|
|
|
{{if $forum.id <= $visible_forums}}
|
2015-11-24 16:14:26 -05:00
|
|
|
<li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-{{$forum.id}}" role="menuitem">
|
|
|
|
<span class="notify badge pull-right"></span>
|
2020-02-24 20:07:34 -05:00
|
|
|
<a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank" rel="noopener noreferrer">
|
2018-12-13 22:28:12 -05:00
|
|
|
<img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
|
2015-11-09 09:56:20 -05:00
|
|
|
</a>
|
2015-11-28 17:52:12 -05:00
|
|
|
<a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
|
2015-11-24 16:14:26 -05:00
|
|
|
</li>
|
2015-11-09 09:56:20 -05:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{if $forum.id > $visible_forums}}
|
2015-11-24 16:14:26 -05:00
|
|
|
<li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-extended-{{$forum.id}}" role="menuitem" style="display: none;">
|
|
|
|
<span class="notify badge pull-right"></span>
|
2020-02-24 20:07:34 -05:00
|
|
|
<a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank" rel="noopener noreferrer">
|
2018-12-13 22:28:12 -05:00
|
|
|
<img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
|
2015-11-09 09:56:20 -05:00
|
|
|
</a>
|
2015-11-28 17:52:12 -05:00
|
|
|
<a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
|
2015-11-24 16:14:26 -05:00
|
|
|
</li>
|
2015-11-09 09:56:20 -05:00
|
|
|
{{/if}}
|
2015-11-24 16:14:26 -05:00
|
|
|
{{/foreach}}
|
2015-11-09 09:56:20 -05:00
|
|
|
|
2015-11-24 16:14:26 -05:00
|
|
|
{{if $total > $visible_forums }}
|
|
|
|
<li onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="forum-widget-link fakelink tool">{{$showmore}}</li>
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
2015-11-11 17:39:14 -05:00
|
|
|
</div>
|
2020-01-13 17:14:14 -05:00
|
|
|
</span>
|
2020-01-11 03:41:14 -05:00
|
|
|
<script>
|
|
|
|
initWidget('forumlist-sidebar', 'forumlist-sidebar-inflated');
|
|
|
|
</script>
|