bring the posted-date selector widget up to date. There are no longer two different styles.
This commit is contained in:
parent
f5ce16e5bb
commit
b666aca5c3
@ -313,7 +313,7 @@ function widget_archive($arr) {
|
|||||||
$url = z_root() . '/' . $a->cmd;
|
$url = z_root() . '/' . $a->cmd;
|
||||||
|
|
||||||
|
|
||||||
$ret = posted_dates($uid,$wall);
|
$ret = list_post_dates($uid,$wall);
|
||||||
|
|
||||||
if(! count($ret))
|
if(! count($ret))
|
||||||
return '';
|
return '';
|
||||||
|
@ -91,6 +91,10 @@
|
|||||||
|
|
||||||
/* posted date */
|
/* posted date */
|
||||||
|
|
||||||
|
.posted-date-selector-months {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#datebrowse-sidebar select {
|
#datebrowse-sidebar select {
|
||||||
width: 190px;
|
width: 190px;
|
||||||
max-width: 190px;
|
max-width: 190px;
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
<div id="datebrowse-sidebar" class="widget">
|
<div id="datebrowse-sidebar" class="widget">
|
||||||
<h3>{{$title}}</h3>
|
<h3>{{$title}}</h3>
|
||||||
<script>function dateSubmit(dateurl) { window.location.href = dateurl; } </script>
|
<script>function dateSubmit(dateurl) { window.location.href = dateurl; } </script>
|
||||||
{{if $style == 'list'}}
|
|
||||||
<ul id="posted-date-selector">
|
<ul id="posted-date-selector">
|
||||||
{{foreach $dates as $d}}
|
{{foreach $dates as $y => $arr}}
|
||||||
|
<li id="posted-date-selector-year-{{$y}}" class="fakelink" onclick="openClose('posted-date-selector-{{$y}}');">{{$y}}</li>
|
||||||
|
<div id="posted-date-selector-{{$y}}" style="display: none;">
|
||||||
|
<ul class="posted-date-selector-months">
|
||||||
|
{{foreach $arr as $d}}
|
||||||
<li class="posted-date-li"><a href="#" onclick="dateSubmit('{{$url}}?f=&dend={{$d.1}}&dbegin={{$d.2}}'); return false;">{{$d.0}}</a></li>
|
<li class="posted-date-li"><a href="#" onclick="dateSubmit('{{$url}}?f=&dend={{$d.1}}&dbegin={{$d.2}}'); return false;">{{$d.0}}</a></li>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</ul>
|
</ul>
|
||||||
{{else}}
|
</div>
|
||||||
<select id="posted-date-selector" name="posted-date-select" onchange="dateSubmit($(this).val());" size="{{$size}}">
|
{{/foreach}}
|
||||||
{{foreach $dates as $d}}
|
</ul>
|
||||||
<option value="{{$url}}?f=&dend={{$d.1}}&dbegin={{$d.2}}" >{{$d.0}}</option>
|
|
||||||
{{/foreach}}
|
|
||||||
</select>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user