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