Fix for spacing

This commit is contained in:
Dennis Eichhorn 2017-10-27 18:17:21 +02:00
parent fcc3aa845b
commit ca77ab69a6
2 changed files with 4 additions and 4 deletions

View File

@ -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) :?>

View File

@ -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) :?>