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

37 lines
623 B
PHP
Raw Normal View History

2014-07-11 19:29:19 +02:00
<?php
/* @var $this BlogPostController */
2014-07-12 16:42:24 +02:00
/* @var $blogposts BlogPost[] */
2014-07-11 19:29:19 +02:00
?>
<?php
$this->pageTitle = 'Blog - ' . Yii::app()->name;
$this->breadcrumbs = array(
'Blog' => array('/blog'),
);
$this->selectedNav = 'blog';
?>
2014-07-12 16:42:24 +02:00
<div class="container">
2014-07-11 19:29:19 +02:00
2014-07-12 16:42:24 +02:00
<?php echo MsHtml::pageHeader("Blog", "My personal programming blog"); ?>
<?php
$i = 0;
foreach($blogposts as $blogpost) {
$i++;
$this->widget('BlogLink',
[
'date' => new DateTime($blogpost->Date),
'caption' => $blogpost->Title,
'link' => $blogpost->getLink(),
2014-09-13 17:37:47 +02:00
'stroked' => !($blogpost->Enabled && $blogpost->Visible),
2014-07-12 16:42:24 +02:00
]);
}
?>
</div>