<?php $article = new \app\models\Article($item); ?> <?php if ($article->getField('video')) { ?> <div class="post format-video box"> <div class="video frame"> <iframe width="100%" height="281" src="<?php echo $article->getField('video'); ?> " frameborder="0" allowfullscreen></iframe> </div> <h2 class="title"><a href="<?php echo $article->getLink(); ?> "><?php echo $item['header']; ?> </a></h2> <p><?php echo $item['description']; ?> </p> <div class="details"> <span class="icon-image"><a href="#"><?php echo Yii::$app->formatter->asDate($item['date']); ?>