title = $post->getSeoTitle(); $this->registerMetaTag(['name' =>'description', 'content' => $post->meta->description]); $this->registerMetaTag(['name' =>'keywords', 'content' => $post->meta->keywords]); $this->params['breadcrumbs'][] = ['label' => $type->plural, 'url' => ['post/index', 'tid' => $type->id]]; $this->params['breadcrumbs'][] = ['label' => $post->category->name, 'url' => ['category', 'slug' => $post->category->slug]]; $this->params['breadcrumbs'][] = $post->title; $this->params['active_category'] = $post->category; $tagLinks = []; foreach ($post->tags as $tag) { $tagLinks[] = Html::a(Html::encode($tag->name), ['tag', 'slug' => $tag->slug]); } ?>

title) ?>

formatter->asDatetime($post->published_at); ?>

image): ?>

formatter->asHtml($post->content, [ 'Attr.AllowedRel' => array('nofollow'), 'HTML.SafeObject' => true, 'Output.FlashCompat' => true, 'HTML.SafeIframe' => true, 'URI.SafeIframeRegexp'=>'%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)%', ]) ?>

Tags:

$post, ]) ?>