Remove space from end of line

This commit is contained in:
Dennis Eichhorn 2018-02-03 11:52:30 +01:00
parent 2aae0f0b27
commit 40f2fb1ae7
2 changed files with 5 additions and 5 deletions

View File

@ -18,8 +18,8 @@
<?php $current = $this->calendar->getDate()->getMonthCalendar(0); $isActiveMonth = false;
for ($i = 0; $i < 6; $i++) : ?>
<ul class="days">
<?php for ($j = 0; $j < 7; $j++) :
$isActiveMonth = ((int) $current[$i*7+$j]->format('d') === 1) ? !$isActiveMonth : $isActiveMonth;
<?php for ($j = 0; $j < 7; $j++) :
$isActiveMonth = ((int) $current[$i*7+$j]->format('d') === 1) ? !$isActiveMonth : $isActiveMonth;
?>
<?php if ($isActiveMonth) :?>
<li class="day<?= $this->calendar->hasEventOnDate($current[$i*7+$j]) ? ' has-event' : '';?>">

View File

@ -35,8 +35,8 @@ $calendar = $this->getData('calendar');
<?php $current = $calendar->getDate()->getMonthCalendar(0); $isActiveMonth = false;
for ($i = 0; $i < 6; $i++) : ?>
<ul class="days">
<?php for ($j = 0; $j < 7; $j++) :
$isActiveMonth = ((int) $current[$i*7+$j]->format('d') === 1) ? !$isActiveMonth : $isActiveMonth;
<?php for ($j = 0; $j < 7; $j++) :
$isActiveMonth = ((int) $current[$i*7+$j]->format('d') === 1) ? !$isActiveMonth : $isActiveMonth;
?>
<?php if ($isActiveMonth) :?>
<li class="day">
@ -47,7 +47,7 @@ $calendar = $this->getData('calendar');
<?php endif; ?>
<?php
$events = $calendar->getEventByDate($current[$i*7+$j]);
foreach ($events as $event) : ?>
foreach ($events as $event) : ?>
<div id="event-tag-<?= $this->printHtml($event->getId()); ?>" class="event">
<div class="event-desc"><?= $this->printHtml($event->getName()); ?></div>
<div class="event-time">2:00pm to 5:00pm</div>