mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-15 16:08:41 +00:00
Fix for spacing
This commit is contained in:
parent
fcc3aa845b
commit
ca77ab69a6
|
|
@ -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