]> git.mxchange.org Git - friendica.git/blob - view/templates/widget_forumlist.tpl
The widgets in the sidebar are now deflated by standard
[friendica.git] / view / templates / widget_forumlist.tpl
1 <script>
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);
6
7         }
8         else {
9                 $("li[id^='forum-widget-entry-extended-']").show();
10                 $("li#forum-widget-collapse").html(window.showFewer);
11         }
12 }
13 </script>
14 <span id="forumlist-sidebar-inflated" class="widget fakelink" style="display: block;" onclick="openClose('forumlist-sidebar'); openClose('forumlist-sidebar-inflated');">
15         <h3>{{$title}}</h3>
16 </span>
17 <div id="forumlist-sidebar" class="widget" style="display: none;">
18         <span class="fakelink" onclick="openClose('forumlist-sidebar'); openClose('forumlist-sidebar-inflated');">
19                 <h3 id="forumlist">{{$title}}</h3>
20         </span>
21         <ul id="forumlist-sidbar-ul" role="menu">
22                 {{foreach $forums as $forum}}
23                 {{if $forum.id <= $visible_forums}}
24                 <li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-{{$forum.id}}" role="menuitem">
25                         <span class="notify badge pull-right"></span>
26                         <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
27                                 <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
28                         </a>
29                         <a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
30                 </li>
31                 {{/if}}
32         
33                 {{if $forum.id > $visible_forums}}
34                 <li class="forum-widget-entry forum-{{$forum.cid}}" id="forum-widget-entry-extended-{{$forum.id}}" role="menuitem" style="display: none;">
35                         <span class="notify badge pull-right"></span>
36                         <a href="{{$forum.external_url}}" title="{{$forum.link_desc}}" class="label sparkle" target="_blank">
37                                 <img class="forumlist-img" src="{{$forum.micro}}" alt="{{$forum.link_desc}}" />
38                         </a>
39                         <a class="forum-widget-link {{if $forum.selected}}forum-selected{{/if}}" id="forum-widget-link-{{$forum.id}}" href="{{$forum.url}}" >{{$forum.name}}</a>
40                 </li>
41                 {{/if}}
42                 {{/foreach}}
43
44                 {{if $total > $visible_forums }}
45                 <li onclick="showHideForumlist(); return false;" id="forum-widget-collapse" class="forum-widget-link fakelink tool">{{$showmore}}</li>
46                 {{/if}}
47         </ul>
48 </div>