1
0
www.mikescher.com/www/protected/views/msmain/index.php

48 lines
795 B
PHP
Raw Permalink Normal View History

2014-05-13 12:40:42 +02:00
<?php
/* @var $this MsMainController */
2014-06-04 18:06:38 +02:00
/* @var $program Program */
/* @var $logs Log[] */
2014-05-13 12:40:42 +02:00
$this->pageTitle=Yii::app()->name;
2014-05-13 18:25:37 +02:00
$this->breadcrumbs=
[
'Index'
];
2014-05-14 11:15:32 +02:00
$this->selectedNav = 'index';
2014-05-13 12:40:42 +02:00
?>
2014-05-13 18:25:37 +02:00
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
2014-06-04 18:06:38 +02:00
<?php
2014-06-04 18:06:38 +02:00
$this->widget('FullProgPreview',
[
'caption' => "Program of the Day:",
'program' => $program,
]);
$i = 0;
foreach ($logs as $logelem) {
if ($i == 0) {
$this->widget('ExpandedLogHeader',
[
'date' => $logelem->getDateTime(),
'caption' => $logelem->title,
'link' => '',
'content' => $logelem->content,
]);
} else {
echo MsHtml::collapsedHeader($logelem->getDateTime(), $logelem->title, $logelem->getLink());
}
$i++;
}
2014-06-04 18:06:38 +02:00
?>
2014-05-13 18:25:37 +02:00
</div>