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