mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-04 18:58:41 +00:00
Improve increments
This commit is contained in:
parent
0fdbb88fe2
commit
f549a8614b
|
|
@ -16,9 +16,9 @@
|
|||
<li><?= $this->getHtml('Saturday', 'Calendar'); ?>
|
||||
</ul>
|
||||
<?php $current = $this->calendar->getDate()->getMonthCalendar(0); $isActiveMonth = false;
|
||||
for ($i = 0; $i < 6; $i++) : ?>
|
||||
for ($i = 0; $i < 6; ++$i) : ?>
|
||||
<ul class="days">
|
||||
<?php for ($j = 0; $j < 7; $j++) :
|
||||
<?php for ($j = 0; $j < 7; ++$j) :
|
||||
$isActiveMonth = ((int) $current[$i*7+$j]->format('d') === 1) ? !$isActiveMonth : $isActiveMonth;
|
||||
?>
|
||||
<?php if ($isActiveMonth) :?>
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ $calendar = $this->getData('calendar');
|
|||
<li><?= $this->getHtml('Saturday'); ?>
|
||||
</ul>
|
||||
<?php $current = $calendar->getDate()->getMonthCalendar(0); $isActiveMonth = false;
|
||||
for ($i = 0; $i < 6; $i++) : ?>
|
||||
for ($i = 0; $i < 6; ++$i) : ?>
|
||||
<ul class="days">
|
||||
<?php for ($j = 0; $j < 7; $j++) :
|
||||
<?php for ($j = 0; $j < 7; ++$j) :
|
||||
$isActiveMonth = ((int) $current[$i*7+$j]->format('d') === 1) ? !$isActiveMonth : $isActiveMonth;
|
||||
?>
|
||||
<?php if ($isActiveMonth) :?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user