Solved a display problem with events in week views

This commit is contained in:
Manuel Cillero 2017-07-26 20:10:15 +02:00
parent c079e3fc57
commit 474b46ba16

View file

@ -62,7 +62,7 @@ $index = 0;
<span class="calendar-hour"><?php print date_t('All day', 'datetime')?></span> <span class="calendar-hour"><?php print date_t('All day', 'datetime')?></span>
</td> </td>
<?php endif; ?> <?php endif; ?>
<?php for($j = 0; $j < 6; $j++): ?> <?php for($j = 0; $j < 7; $j++): ?>
<?php $cell = (empty($all_day[$j][$i])) ? NULL : $all_day[$j][$i]; ?> <?php $cell = (empty($all_day[$j][$i])) ? NULL : $all_day[$j][$i]; ?>
<?php if($cell != NULL && $cell['filled'] && $cell['wday'] == $j): ?> <?php if($cell != NULL && $cell['filled'] && $cell['wday'] == $j): ?>
<?php for($k = $colpos; $k < $cell['wday']; $k++) : ?> <?php for($k = $colpos; $k < $cell['wday']; $k++) : ?>
@ -93,7 +93,7 @@ $index = 0;
<?php for ($i = $curpos; $i < $colpos; $i++): ?> <?php for ($i = $curpos; $i < $colpos; $i++): ?>
<td class="calendar-agenda-items single-day"> <td class="calendar-agenda-items single-day">
<div class="calendar"> <div class="calendar">
<div class="inner">&nbsp</div> <div class="inner">&nbsp;</div>
</div> </div>
</td> </td>
<?php endfor; ?> <?php endfor; ?>
@ -113,7 +113,7 @@ $index = 0;
<?php for ($i = $curpos; $i < 7; $i++): ?> <?php for ($i = $curpos; $i < 7; $i++): ?>
<td class="calendar-agenda-items single-day"> <td class="calendar-agenda-items single-day">
<div class="calendar"> <div class="calendar">
<div class="inner">&nbsp</div> <div class="inner">&nbsp;</div>
</div> </div>
</td> </td>
<?php endfor; ?> <?php endfor; ?>