2015-11-09 15:56:20 +01:00
|
|
|
<script>
|
|
|
|
|
|
|
|
function showHideForumlist() {
|
2015-11-17 20:57:12 +01:00
|
|
|
if( $("div[id^='forum-widget-entry-extended-']").is(':visible')) {
|
|
|
|
$("div[id^='forum-widget-entry-extended-']").hide();
|
2015-11-09 15:56:20 +01:00
|
|
|
$('#forum-widget-collapse').html(window.showMore);
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
2015-11-17 20:57:12 +01:00
|
|
|
$("div[id^='forum-widget-entry-extended-']").show();
|
2015-11-09 15:56:20 +01:00
|
|
|
$('#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-17 19:56:32 +01:00
|
|
|
<div class="forum-widget-entry" id="forum-widget-entry-{{$forum.id}}" role="menuitem">
|
2015-11-09 15:56:20 +01: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}}
|
2015-11-17 19:56:32 +01:00
|
|
|
<div class="forum-widget-entry" id="forum-widget-entry-extended-{{$forum.id}}" role="menuitem" style="display: none;">
|
2015-11-09 15:56:20 +01: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}}
|
|
|
|
{{/foreach}}
|
|
|
|
|
|
|
|
{{if $total > $visible_forums }}
|
2015-11-17 19:56:32 +01:00
|
|
|
<div id="forum-widget-showmore" class="forum-widget-entry" role="menuitem">
|
|
|
|
<a onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="forum-widget-link">{{$showmore}}</a>
|
|
|
|
</div>
|
2015-11-09 15:56:20 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2015-11-11 23:39:14 +01:00
|
|
|
</div>
|