|
@@ 439-443 (lines=5) @@
|
| 436 |
|
if (!empty($day['events'])) |
| 437 |
|
{ |
| 438 |
|
// Sort events by start time (all day events will be listed first) |
| 439 |
|
uasort($day['events'], function($a, $b) { |
| 440 |
|
if ($a['start_timestamp'] == $b['start_timestamp']) |
| 441 |
|
return 0; |
| 442 |
|
return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
| 443 |
|
}); |
| 444 |
|
|
| 445 |
|
echo ' |
| 446 |
|
<div class="smalltext lefttext"> |
|
@@ 621-625 (lines=5) @@
|
| 618 |
|
if (!empty($day['events'])) |
| 619 |
|
{ |
| 620 |
|
// Sort events by start time (all day events will be listed first) |
| 621 |
|
uasort($day['events'], function($a, $b) { |
| 622 |
|
if ($a['start_timestamp'] == $b['start_timestamp']) |
| 623 |
|
return 0; |
| 624 |
|
return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
| 625 |
|
}); |
| 626 |
|
|
| 627 |
|
foreach ($day['events'] as $event) |
| 628 |
|
{ |