commit
5386180c0b
|
@ -472,6 +472,8 @@ class Widget
|
|||
// Set the start and end date to the beginning of the month
|
||||
$cutoffday = $dthen;
|
||||
$thisday = substr($dnow, 4);
|
||||
$nextday = date('Y-m-d', strtotime($dnow . ' + 1 day'));
|
||||
$nextday = substr($nextday, 4);
|
||||
$dnow = substr($dnow, 0, 8) . '01';
|
||||
$dthen = substr($dthen, 0, 8) . '01';
|
||||
|
||||
|
@ -517,6 +519,7 @@ class Widget
|
|||
'$showmore' => DI::l10n()->t('show more'),
|
||||
'$onthisdate' => DI::l10n()->t('On this date'),
|
||||
'$thisday' => $thisday,
|
||||
'$nextday' => $nextday,
|
||||
'$cutoffday' => $cutoffday
|
||||
]);
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ function showHideDates() {
|
|||
<ul class="datebrowse-ul">
|
||||
{{if $y|cat:$thisday >= $cutoffday}}
|
||||
<li class="tool">
|
||||
<a class="datebrowse-link" href="{{$url}}/{{$y|cat:$thisday}}/{{$y|cat:$thisday}}">{{$onthisdate}}</a>
|
||||
<a class="datebrowse-link" href="{{$url}}/{{$y|cat:$nextday}}/{{$y|cat:$thisday}}">{{$onthisdate}}</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{foreach $arr as $d}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user