New upstream version 0.6.27
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
// Get the day names
|
||||
$days = Calendar::days(2);
|
||||
@@ -12,8 +12,8 @@ $qs = $_GET;
|
||||
unset($qs['day']);
|
||||
|
||||
// Previous and next month query URIs
|
||||
$prev = Router::$current_uri.'?'.http_build_query(array_merge($qs, array('month' => date('n', $prev), 'year' => date('Y', $prev))));
|
||||
$next = Router::$current_uri.'?'.http_build_query(array_merge($qs, array('month' => date('n', $next), 'year' => date('Y', $next))));
|
||||
$prev = Router::$current_uri . '?' . http_build_query(array_merge($qs, array('month' => date('n', $prev), 'year' => date('Y', $prev))));
|
||||
$next = Router::$current_uri . '?' . http_build_query(array_merge($qs, array('month' => date('n', $next), 'year' => date('Y', $next))));
|
||||
|
||||
?>
|
||||
<table class="calendar">
|
||||
@@ -23,30 +23,26 @@ $next = Router::$current_uri.'?'.http_build_query(array_merge($qs, array('month'
|
||||
<td class="next"><?php echo html::anchor($next, '»') ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php foreach ($days as $day): ?>
|
||||
<?php foreach ($days as $day) : ?>
|
||||
<th><?php echo $day ?></th>
|
||||
<?php endforeach ?>
|
||||
</tr>
|
||||
<?php foreach ($weeks as $week): ?>
|
||||
<?php foreach ($weeks as $week) : ?>
|
||||
<tr>
|
||||
<?php foreach ($week as $day):
|
||||
<?php foreach ($week as $day) :
|
||||
list ($number, $current, $data) = $day;
|
||||
|
||||
list ($number, $current, $data) = $day;
|
||||
if (is_array($data)) {
|
||||
$classes = $data['classes'];
|
||||
$output = empty($data['output']) ? '' : '<ul class="output"><li>' . implode('</li><li>', $data['output']) . '</li></ul>';
|
||||
} else {
|
||||
$classes = array();
|
||||
$output = '';
|
||||
}
|
||||
|
||||
if (is_array($data))
|
||||
{
|
||||
$classes = $data['classes'];
|
||||
$output = empty($data['output']) ? '' : '<ul class="output"><li>'.implode('</li><li>', $data['output']).'</li></ul>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$classes = array();
|
||||
$output = '';
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
<td class="<?php echo implode(' ', $classes) ?>"><span class="day"><?php echo $day[0] ?></span><?php echo $output ?></td>
|
||||
<?php endforeach ?>
|
||||
<?php endforeach ?>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user