2015-05-18 19:03:08 -04:00
|
|
|
<script>
|
|
|
|
|
|
|
|
function showHideDates() {
|
2017-10-20 10:12:43 -04:00
|
|
|
if( $('#posted-date-selector-drop').is(':visible')) {
|
|
|
|
$('#posted-date-selector-drop').hide();
|
2017-10-18 16:49:16 -04:00
|
|
|
$('#posted-date-collapse').html(window.showMore);
|
|
|
|
|
2017-10-18 18:52:01 -04:00
|
|
|
} else {
|
2017-10-20 10:12:43 -04:00
|
|
|
$('#posted-date-selector-drop').show();
|
2017-10-18 16:49:16 -04:00
|
|
|
$('#posted-date-collapse').html(window.showFewer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function dateSubmit(dateurl) {
|
|
|
|
window.location.href = dateurl;
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
2015-05-18 19:03:08 -04:00
|
|
|
|
|
|
|
|
2013-04-23 07:47:57 -04:00
|
|
|
<div id="datebrowse-sidebar" class="widget">
|
|
|
|
<h3>{{$title}}</h3>
|
2015-05-18 19:03:08 -04:00
|
|
|
<ul id="posted-date-selector" class="datebrowse-ul">
|
|
|
|
{{foreach $dates as $y => $arr}}
|
2017-10-20 10:12:43 -04:00
|
|
|
|
2015-05-18 19:03:08 -04:00
|
|
|
{{if $y == $cutoff_year}}
|
|
|
|
</ul>
|
2017-10-20 10:12:43 -04:00
|
|
|
<ul id="posted-date-selector-drop" class="datebrowse-ul" style="display: none;">
|
2015-05-18 19:03:08 -04:00
|
|
|
{{/if}}
|
2017-10-20 10:12:43 -04:00
|
|
|
|
2015-05-18 19:03:08 -04:00
|
|
|
<li id="posted-date-selector-year-{{$y}}" class="tool">
|
|
|
|
<a class="datebrowse-link" href="#" onclick="openClose('posted-date-selector-{{$y}}'); return false;">{{$y}}</a>
|
|
|
|
</li>
|
2017-10-19 10:34:08 -04:00
|
|
|
<li id="posted-date-selector-{{$y}}" class="tool posted-date-selector-months" style="display: none;">
|
|
|
|
<ul class="datebrowse-ul">
|
2015-05-18 19:03:08 -04:00
|
|
|
{{foreach $arr as $d}}
|
|
|
|
<li class="tool">
|
2017-10-18 16:49:16 -04:00
|
|
|
<a class="datebrowse-link" href="#" onclick="dateSubmit('{{$url}}/{{$d.1}}/{{$d.2}}'); return false;">{{$d.0}}</a>
|
2015-05-18 19:03:08 -04:00
|
|
|
</li>
|
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
2017-10-19 10:34:08 -04:00
|
|
|
</li>
|
2015-05-18 19:03:08 -04:00
|
|
|
{{/foreach}}
|
2017-10-20 09:59:14 -04:00
|
|
|
</ul>
|
|
|
|
{{if $cutoff}}
|
|
|
|
<ul class="datebrowse-ul">
|
|
|
|
<li onclick="showHideDates(); return false;" id="posted-date-collapse" class="fakelink tool">{{$showmore}}</li>
|
2015-05-18 19:03:08 -04:00
|
|
|
</ul>
|
2017-10-19 10:34:08 -04:00
|
|
|
{{/if}}
|
2015-05-18 19:07:40 -04:00
|
|
|
</div>
|