2015-11-28 17:52:12 -05:00
|
|
|
<script>
|
|
|
|
|
|
|
|
function showHideForumlist() {
|
|
|
|
if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) {
|
|
|
|
$("li[id^='forum-widget-entry-extended-']").hide();
|
2020-11-30 14:30:57 -05:00
|
|
|
$("li#forum-widget-collapse").html('{{$showmore}}');
|
2015-11-28 17:52:12 -05:00
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$("li[id^='forum-widget-entry-extended-']").show();
|
2020-11-30 14:30:57 -05:00
|
|
|
$("li#forum-widget-collapse").html('{{$showless}}');
|
2015-11-28 17:52:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="forumlist-sidebar" class="widget">
|
|
|
|
<h3 id="forumlist">{{$title}}</h3>
|
|
|
|
|
|
|
|
<ul id="forumlist-sidbar-ul" role="menu">
|
|
|
|
{{foreach $forums as $forum}}
|
|
|
|
{{if $forum.id <= $visible_forums}}
|
|
|
|
<li class="forum-widget-entry forum-{{$forum.cid}} tool {{if $forum.selected}}selected{{/if}}" 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">
|
2015-11-28 17:52:12 -05:00
|
|
|
<img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
|
|
|
|
</a>
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="forum-widget-link" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
|
2015-11-28 17:52:12 -05:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{if $forum.id > $visible_forums}}
|
|
|
|
<li class="forum-widget-entry forum-{{$forum.cid}} tool {{if $forum.selected}}selected{{/if}}" 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">
|
2015-11-28 17:52:12 -05:00
|
|
|
<img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
|
|
|
|
</a>
|
2018-12-13 22:28:12 -05:00
|
|
|
<a class="forum-widget-link" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
|
2015-11-28 17:52:12 -05:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{/foreach}}
|
|
|
|
|
|
|
|
{{if $total > $visible_forums }}
|
|
|
|
<li onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="forum-widget-link fakelink tool">{{$showmore}}</li>
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
</div>
|