28 lines
1.6 KiB
PHP
28 lines
1.6 KiB
PHP
<?php ($date = null); ?><?php ($now = new \DateTime("now")); ?>
|
|
<?php $__currentLoopData = $schedule; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<?php if(($formattedDate = Formatter::fullDate($item['starttime'], 'W d m')) != $date): ?>
|
|
<?php ($date = $formattedDate); ?>
|
|
<?php if($date != null): ?> </table> <?php endif; ?>
|
|
<h2><?php echo e($formattedDate); ?></h2>
|
|
<table class="table table-hover">
|
|
<?php endif; ?>
|
|
<?php ($isCurrent = ($now >= $item['starttime']) && ($now <= $item['endtime'])); ?>
|
|
<?php ($class =( $item['program']->priority < 2 ? 'bg-primary'
|
|
:( $item['program']->nonstop || $item['program']->rerun ? 'text-muted'
|
|
:( $isCurrent ? 'bg-info active text-primary'
|
|
:( ''
|
|
))))); ?>
|
|
<tr <?php if($class): ?> class="<?php echo e($class); ?>" <?php endif; ?>>
|
|
<td class="time"><p><?php echo e($item['starttime']->format('H:i')); ?> – <?php echo e($item['endtime']->format('H:i')); ?> uur</p></td>
|
|
<td class="title">
|
|
<p><a title="<?php echo e($item['program']->name); ?>" href="programma<?php echo e($item['program']->url); ?>"><?php echo e($item['program']->name); ?>
|
|
|
|
<?php if($isCurrent): ?> <span class="bg-primary current-marker">Nu op NH Gooi</span> <?php endif; ?>
|
|
</a><p>
|
|
<p><?php echo e(Formatter::excerpt(strip_tags($item['program']->description), 200)); ?></p>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</table>
|
|
|