2015-11-09 09:56:20 -05:00
|
|
|
<script>
|
|
|
|
|
|
|
|
function showHideForumlist() {
|
|
|
|
if( $('#forum-widget-entry-extended').is(':visible')) {
|
|
|
|
$('#forum-widget-entry-extended').hide();
|
|
|
|
$('#forum-widget-collapse').html(window.showMore);
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$('#forum-widget-entry-extended').show();
|
|
|
|
$('#forum-widget-collapse').html(window.showFewer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="forumlist-sidebar" class="widget">
|
|
|
|
<h3 id="forumlist">{{$title}}</h3>
|
|
|
|
|
|
|
|
{{foreach $forums as $forum}}
|
|
|
|
{{if $forum.id <= $visible_forums}}
|
2015-11-10 06:53:56 -05:00
|
|
|
<div class="forum-widget-entry" id="forum-widget-entry" role="menuitem">
|
2015-11-09 09:56:20 -05:00
|
|
|
<a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
|
|
|
|
<img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
|
|
|
|
</a>
|
|
|
|
<a class="forum-widget-link" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{if $forum.id > $visible_forums}}
|
|
|
|
<div class="forum-widget-entry" id="forum-widget-entry-extended" role="menuitem" style="display: none;">
|
|
|
|
<a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
|
|
|
|
<img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
|
|
|
|
</a>
|
|
|
|
<a class="forum-widget-link" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/foreach}}
|
|
|
|
|
|
|
|
{{if $total > $visible_forums }}
|
|
|
|
<ul class="forum-widget-ul">
|
|
|
|
<li onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="fakelink tool">{{$showmore}}</li>
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
|
2015-11-11 17:39:14 -05:00
|
|
|
</div>
|