2014-05-13 12:40:42 +02:00
|
|
|
<?php
|
2014-06-05 10:11:44 +02:00
|
|
|
/* @var $this MsMainController */
|
2014-06-04 18:06:38 +02:00
|
|
|
/* @var $program Program */
|
2014-06-06 12:02:56 +02:00
|
|
|
/* @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-06 12:02:56 +02:00
|
|
|
|
2014-06-04 18:06:38 +02:00
|
|
|
$this->widget('FullProgPreview',
|
|
|
|
[
|
|
|
|
'caption' => "Program of the Day:",
|
|
|
|
'program' => $program,
|
|
|
|
]);
|
2014-06-05 10:11:44 +02:00
|
|
|
|
2014-06-06 12:02:56 +02:00
|
|
|
$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-06-06 12:02:56 +02:00
|
|
|
?>
|
2014-05-13 18:25:37 +02:00
|
|
|
|
|
|
|
</div>
|