The widgets in the sidebar are now deflated by standard

This commit is contained in:
Michael 2020-01-09 06:53:33 +00:00
parent 592762be27
commit 4c2d1aff03
4 changed files with 27 additions and 14 deletions

View File

@ -1,6 +1,10 @@
<span id="{{$type}}-sidebar-inflated" class="widget fakelink" style="display: block;" onclick="openClose('{{$type}}-sidebar'); openClose('{{$type}}-sidebar-inflated');">
<div id="{{$type}}-sidebar" class="widget">
<h3>{{$title}}</h3> <h3>{{$title}}</h3>
</span>
<div id="{{$type}}-sidebar" class="widget" style="display: none;">
<span class="fakelink" onclick="openClose('{{$type}}-sidebar'); openClose('{{$type}}-sidebar-inflated');">
<h3>{{$title}}</h3>
</span>
<div id="{{$type}}-desc">{{$desc nofilter}}</div> <div id="{{$type}}-desc">{{$desc nofilter}}</div>
<ul role="menu" class="{{$type}}-ul"> <ul role="menu" class="{{$type}}-ul">
<li role="menuitem" {{if !$selected}}class="selected"{{/if}}><a href="{{$base}}" class="{{$type}}-link{{if !$selected}} {{$type}}-selected{{/if}} {{$type}}-all">{{$all_label}}</a></li> <li role="menuitem" {{if !$selected}}class="selected"{{/if}}><a href="{{$base}}" class="{{$type}}-link{{if !$selected}} {{$type}}-selected{{/if}} {{$type}}-all">{{$all_label}}</a></li>

View File

@ -1,6 +1,10 @@
<span id="saved-search-list-inflated" class="widget fakelink" style="display: block;" onclick="openClose('saved-search-list'); openClose('saved-search-list-inflated');">
<div class="widget" id="saved-search-list"> <h3>{{$title}}</h3>
<h3 id="search">{{$title}}</h3> </span>
<div class="widget" id="saved-search-list" style="display: none;">
<span class="fakelink" onclick="openClose('saved-search-list'); openClose('saved-search-list-inflated');">
<h3 id="search">{{$title}}</h3>
</span>
{{$searchbox nofilter}} {{$searchbox nofilter}}
<ul role="menu" id="saved-search-ul"> <ul role="menu" id="saved-search-ul">

View File

@ -1,5 +1,4 @@
<script> <script>
function showHideForumlist() { function showHideForumlist() {
if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) { if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) {
$("li[id^='forum-widget-entry-extended-']").hide(); $("li[id^='forum-widget-entry-extended-']").hide();
@ -12,10 +11,13 @@ function showHideForumlist() {
} }
} }
</script> </script>
<span id="forumlist-sidebar-inflated" class="widget fakelink" style="display: block;" onclick="openClose('forumlist-sidebar'); openClose('forumlist-sidebar-inflated');">
<div id="forumlist-sidebar" class="widget"> <h3>{{$title}}</h3>
<h3 id="forumlist">{{$title}}</h3> </span>
<div id="forumlist-sidebar" class="widget" style="display: none;">
<span class="fakelink" onclick="openClose('forumlist-sidebar'); openClose('forumlist-sidebar-inflated');">
<h3 id="forumlist">{{$title}}</h3>
</span>
<ul id="forumlist-sidbar-ul" role="menu"> <ul id="forumlist-sidbar-ul" role="menu">
{{foreach $forums as $forum}} {{foreach $forums as $forum}}
{{if $forum.id <= $visible_forums}} {{if $forum.id <= $visible_forums}}

View File

@ -1,8 +1,11 @@
{{if $saved}} {{if $saved}}
<div class="widget" id="saved-search-list"> <span id="saved-search-list-inflated" class="widget fakelink" style="display: block;" onclick="openClose('saved-search-list'); openClose('saved-search-list-inflated');">
<h3 id="search">{{$title}}</h3> <h3>{{$title}}</h3>
</span>
<div class="widget" id="saved-search-list" style="display: none;">
<span class="fakelink" onclick="openClose('saved-search-list'); openClose('saved-search-list-inflated');">
<h3 id="search">{{$title}}</h3>
</span>
<ul role="menu" id="saved-search-ul"> <ul role="menu" id="saved-search-ul">
{{foreach $saved as $search}} {{foreach $saved as $search}}
<li role="menuitem" class="saved-search-li clear"> <li role="menuitem" class="saved-search-li clear">