translation->title; $this->title = $title; $this->params['breadcrumbs'][] = ['label' => Yii::t('blog', 'Posts'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $title; $css = <<registerCss($css); ?>

'btn btn-default']) ?> isActive()): ?> $post->id], ['class' => 'btn btn-primary', 'data-method' => 'post']) ?> $post->id], ['class' => 'btn btn-success', 'data-method' => 'post']) ?> $post->id], ['class' => 'btn btn-primary']) ?> $post->id], [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => Yii::t('buttons', 'Are you sure you want to delete this item?'), 'method' => 'post', ], ]) ?>

$post, 'attributes' => [ 'id', [ 'attribute' => 'status', 'value' => BlogPostHelper::statusLabel($post->status), 'format' => 'raw', ], [ 'attribute' => 'category_id', 'value' => $post->category->translation->name, //ArrayHelper::getValue($post, 'category.name'), ], [ 'label' => Yii::t('post', 'Tags'), 'format' => 'raw', 'value' => ' ' . implode(' ', ArrayHelper::getColumn($post->tags, 'name')), ], 'slug' ], ]) ?>
params['translatedLanguages'] as $language => $language_name) { $items[] = [ 'label' => $language_name, 'content' => $this->render('_view_tab', [ 'post' => $post, 'language' => $language, ]), ]; } ?> image): ?>
getThumbFileUrl('image', 'thumb_gallery_view'), [ 'class' => 'thumbnail', 'width' => 300, ]) ?>
image && $post->video): ?>
video), [ 'width' => 300, 'class' => 'thumbnail', ]) ?>
video): ?>
$post->video, 'style' => '', ]) ?>
  • revision_id): ?> revision_at) ?> → get('frontendUrlManager')->createAbsoluteUrl(['/blog/post/preview', 'id' => $item->id])), [ 'style' => 'font-size:11px;', 'target' => '_blank', ]) ?> | $item->id], [ 'style' => 'font-size:11px; color: red', 'data' => [ 'confirm' => Yii::t('blog', 'Are you sure you want to restore this history item?'), 'method' => 'post', ], ]) ?>
$post->id], [ 'class' => 'btn btn-danger btn-sm pull-right', 'data' => [ 'confirm' => Yii::t('blog', 'Are you sure you want to remove this history?'), 'method' => 'post', ], ]) ?>