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' => ['post/category', 'id' => $post->category->id]]; $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]) . '
  • '; } $url = Url::to(['post/post', 'id' =>$post->id]); $url_full = Yii::$app->params['frontendHostInfo'] . Url::to(['post/post', 'id' =>$post->id]); $js = <<registerJs($js, $this::POS_READY); ?>
    category->name ?>

    title) ?>

    <?= Html::encode($post->title) ?> 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/)%', ]) ?>
    10, 'view' => 'slider-relative', 'post' => $post, ]) ?> $post, ]) ?>