title = $page->title;
$this->params['breadcrumbs'][] = ['label' => Yii::t('page', 'Pages'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
= Html::a(Yii::t('page','Pages'), ['index'], ['class' => 'btn btn-default']) ?>
= Html::a(Yii::t('buttons', 'Edit'), ['update', 'id' => $page->id], ['class' => 'btn btn-primary']) ?>
= Html::a(Yii::t('buttons', 'Delete'), ['delete', 'id' => $page->id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => Yii::t('buttons', 'Are you sure you want to delete this item?'),
'method' => 'post',
],
]) ?>
= DetailView::widget([
'model' => $page,
'attributes' => [
'id',
'title',
'slug',
],
]) ?>
= Yii::$app->formatter->asHtml($page->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/)%',
]) ?>
= DetailView::widget([
'model' => $page,
'attributes' => [
[
'attribute' => 'meta.title',
'label' => Yii::t('main', 'Title'),
],
[
'attribute' => 'meta.description',
'label' => Yii::t('main', 'Description'),
],
[
'attribute' => 'meta.keywords',
'label' => Yii::t('main', 'Keywords'),
],
],
]) ?>