diff --git a/Module.php b/Module.php
index d3eddb1..1d632c7 100755
--- a/Module.php
+++ b/Module.php
@@ -1,6 +1,6 @@
+
+
diff --git a/views/seo-category/_form_language.php b/views/seo-category/_form_language.php
new file mode 100755
index 0000000..90b620c
--- /dev/null
+++ b/views/seo-category/_form_language.php
@@ -0,0 +1,15 @@
+
+= $form->field($model_lang, '[' . $language->id . ']title')
+ ->textInput([ 'maxlength' => true ]); ?>
\ No newline at end of file
diff --git a/views/seo-category/create.php b/views/seo-category/create.php
new file mode 100755
index 0000000..a177323
--- /dev/null
+++ b/views/seo-category/create.php
@@ -0,0 +1,30 @@
+title = Yii::t('app', 'Create Seo Category');
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => Yii::t('app', 'Seo Categories'),
+ 'url' => [ 'index' ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+ = $this->render('_form', [
+ 'model' => $model,
+ 'modelLangs' => $modelLangs,
+ ]) ?>
+
+
diff --git a/views/seo-category/index.php b/views/seo-category/index.php
new file mode 100755
index 0000000..c98235b
--- /dev/null
+++ b/views/seo-category/index.php
@@ -0,0 +1,58 @@
+title = Yii::t('app', 'Seo Categories');
+ $this->params[ 'breadcrumbs' ][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+
+ = Html::a(Yii::t('app', 'Create Seo Category'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
+
+ = GridView::widget(
+ [
+ 'dataProvider' => $dataProvider,
+ 'filterModel' => $searchModel,
+ 'columns' => [
+ [ 'class' => 'yii\grid\SerialColumn' ],
+ 'id',
+ 'controller',
+ [
+ 'attribute' => 'title',
+ 'value' => 'lang.title',
+ ],
+ 'status',
+ [
+ 'class' => 'yii\grid\ActionColumn',
+ 'template' => '{update} {image} {delete}',
+ 'buttons' => [
+ 'image' => function ($url, $model) {
+ return Html::a(
+ '
',
+ Url::toRoute(
+ [
+ 'seo-dynamic/index',
+ 'seo_category_id' => $model->id,
+ ]
+ ),
+ [
+ 'title' => \Yii::t('app', 'слайды'),
+ ]
+ );
+ },
+ ],
+ ],
+ ],
+ ]
+ ); ?>
+
diff --git a/views/seo-category/update.php b/views/seo-category/update.php
new file mode 100755
index 0000000..f061a68
--- /dev/null
+++ b/views/seo-category/update.php
@@ -0,0 +1,39 @@
+title = Yii::t('app', 'Update {modelClass}: ', [
+ 'modelClass' => 'Seo Category',
+ ]) . $model->lang->title;
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => Yii::t('app', 'Seo Categories'),
+ 'url' => [ 'index' ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => $model->lang->title,
+ 'url' => [
+ 'view',
+ 'id' => $model->id,
+ ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = Yii::t('app', 'Update');
+?>
+
+
+
= Html::encode($this->title) ?>
+
+ = $this->render('_form', [
+ 'model' => $model,
+ 'modelLangs' => $modelLangs,
+ ]) ?>
+
+
diff --git a/views/seo-dynamic/_form.php b/views/seo-dynamic/_form.php
new file mode 100755
index 0000000..85fd5cc
--- /dev/null
+++ b/views/seo-dynamic/_form.php
@@ -0,0 +1,50 @@
+
+
+
diff --git a/views/seo-dynamic/_form_language.php b/views/seo-dynamic/_form_language.php
new file mode 100755
index 0000000..db5b5f7
--- /dev/null
+++ b/views/seo-dynamic/_form_language.php
@@ -0,0 +1,45 @@
+
+= $form->field($model_lang, '[' . $language->id . ']title')
+ ->textInput([ 'maxlength' => true ]); ?>
+= $form->field($model_lang, '[' . $language->id . ']meta_title')
+ ->textInput(); ?>
+= $form->field($model_lang, '[' . $language->id . ']meta_description')
+ ->widget(CKEditor::className(), [
+ 'editorOptions' => ElFinder::ckeditorOptions('elfinder', [
+ 'preset' => 'full',
+ 'inline' => false,
+ 'filebrowserUploadUrl' => Yii::$app->getUrlManager()
+ ->createUrl('file/uploader/images-upload'),
+ ]),
+ ]) ?>
+
+= $form->field($model_lang, '[' . $language->id . ']seo_text')
+ ->widget(CKEditor::className(), [
+ 'editorOptions' => ElFinder::ckeditorOptions('elfinder', [
+ 'preset' => 'full',
+ 'inline' => false,
+ 'filebrowserUploadUrl' => Yii::$app->getUrlManager()
+ ->createUrl('file/uploader/images-upload'),
+ ]),
+ ]) ?>
+= $form->field($model_lang, '[' . $language->id . ']key')
+ ->textInput([ 'maxlength' => true ]) ?>
+= $form->field($model_lang, '[' . $language->id . ']h1')
+ ->textInput([ 'maxlength' => true ]) ?>
+
+= $form->field($model_lang, '[' . $language->id . ']meta')
+ ->textInput([ 'maxlength' => true ]) ?>
\ No newline at end of file
diff --git a/views/seo-dynamic/create.php b/views/seo-dynamic/create.php
new file mode 100755
index 0000000..ea7b633
--- /dev/null
+++ b/views/seo-dynamic/create.php
@@ -0,0 +1,43 @@
+title = Yii::t('app', 'Create Seo Dynamic');
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => Yii::t('app', 'Seo Categories'),
+ 'url' => [ '/seo-category/index' ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => $seo_category->lang->title,
+ 'url' => [
+ 'index',
+ 'seo_category_id' => $seo_category->id,
+ ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+ = $this->render(
+ '_form',
+ [
+ 'model' => $model,
+ 'modelLangs' => $modelLangs,
+ ]
+ ) ?>
+
+
diff --git a/views/seo-dynamic/index.php b/views/seo-dynamic/index.php
new file mode 100755
index 0000000..051eb0a
--- /dev/null
+++ b/views/seo-dynamic/index.php
@@ -0,0 +1,111 @@
+title = Yii::t(
+ 'app',
+ 'Seo Dynamics for {seo_category}',
+ [
+ 'seo_category' => $seo_category->lang->title,
+ ]
+ );
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => \Yii::t('app', 'Seo Categories'),
+ 'url' => [ '/seo-category/index' ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+
+ = Html::a(
+ Yii::t('app', 'Create Seo Dynamic'),
+ Url::toRoute(
+ [
+ 'create',
+ 'seo_category_id' => $seo_category->id,
+ ]
+ ),
+ [ 'class' => 'btn btn-success' ]
+ ) ?>
+
+ = GridView::widget(
+ [
+ 'dataProvider' => $dataProvider,
+ 'filterModel' => $searchModel,
+ 'columns' => [
+ [ 'class' => 'yii\grid\SerialColumn' ],
+ 'id',
+ [
+ 'attribute' => 'title',
+ 'value' => 'lang.title',
+ ],
+ 'action',
+ 'fields',
+ 'param',
+ 'status',
+ [
+ 'class' => 'yii\grid\ActionColumn',
+ 'buttons' => [
+ 'view' => function ($url, $model) {
+ return Html::a(
+ '
',
+ [
+ 'view',
+ 'seo_category_id' => $model->id,
+ 'id' => $model->id,
+ ],
+ [
+ 'title' => \Yii::t('app', 'Просмотр'),
+ ]
+ );
+ },
+ 'update' => function ($url, $model) {
+ return Html::a(
+ '
',
+ [
+ 'update',
+ 'seo_category_id' => $model->seo_category_id,
+ 'id' => $model->id,
+ ],
+ [
+ 'title' => \Yii::t('app', 'Редактировать'),
+ ]
+ );
+ },
+ 'delete' => function ($url, $model) {
+
+ return Html::a(
+ '
',
+ Url::toRoute(
+ [
+ 'delete',
+ 'seo_category_id' => $model->seo_category_id,
+ 'id' => $model->id,
+ ]
+ ),
+ [
+ 'title' => Yii::t('yii', 'Delete'),
+ 'data-confirm' => Yii::t('yii', 'Are you sure to delete this item?'),
+ 'data-method' => 'post',
+ ]
+ );
+
+ },
+ ],
+ ],
+ ],
+ ]
+ ); ?>
+
diff --git a/views/seo-dynamic/update.php b/views/seo-dynamic/update.php
new file mode 100755
index 0000000..4339efc
--- /dev/null
+++ b/views/seo-dynamic/update.php
@@ -0,0 +1,56 @@
+title = Yii::t(
+ 'app',
+ 'Update {modelClass}: ',
+ [
+ 'modelClass' => 'Seo Dynamic',
+ ]
+ ) . $model->lang->title;
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => Yii::t('app', 'Seo Categories'),
+ 'url' => [ '/seo-category/index' ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => $seo_category->lang->title,
+ 'url' => [
+ 'index',
+ 'seo_category_id' => $seo_category->id,
+ ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => $model->lang->title,
+ 'url' => [
+ 'view',
+ 'seo_category_id' => $seo_category->id,
+ 'id' => $model->id,
+ ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = Yii::t('app', 'Update');
+?>
+
+
+
= Html::encode($this->title) ?>
+
+ = $this->render(
+ '_form',
+ [
+ 'model' => $model,
+ 'modelLangs' => $modelLangs,
+ ]
+ ) ?>
+
+
diff --git a/views/seo-dynamic/view.php b/views/seo-dynamic/view.php
new file mode 100755
index 0000000..7801532
--- /dev/null
+++ b/views/seo-dynamic/view.php
@@ -0,0 +1,88 @@
+title = $model->lang->title;
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => Yii::t('app', 'Seo Categories'),
+ 'url' => [ '/seo-category/index' ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => $seo_category->lang->title,
+ 'url' => [
+ 'index',
+ 'seo_category_id' => $seo_category->id,
+ ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+
+ = Html::a(
+ Yii::t('app', 'Update'),
+ [
+ 'update',
+ 'id' => $model->id,
+ 'seo_category_id' => $seo_category->id,
+ ],
+ [ 'class' => 'btn btn-primary' ]
+ ) ?>
+ = Html::a(
+ Yii::t('app', 'Delete'),
+ [
+ 'delete',
+ 'id' => $model->id,
+ 'seo_category_id' => $seo_category->id,
+ ],
+ [
+ 'class' => 'btn btn-danger',
+ 'data' => [
+ 'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
+ 'method' => 'post',
+ ],
+ ]
+ ) ?>
+
+
+ = DetailView::widget(
+ [
+ 'model' => $model,
+ 'attributes' => [
+ 'id',
+ [
+ 'label' => \Yii::t('app', 'Seo Category'),
+ 'value' => Html::a(
+ $seo_category->lang->title,
+ [
+ 'index',
+ 'seo_category_id' => $seo_category->id,
+ ]
+ ),
+ 'format' => 'html',
+ ],
+ 'lang.title',
+ 'action',
+ 'fields',
+ 'param',
+ 'status',
+ 'lang.meta_title',
+ 'lang.h1',
+ 'lang.key',
+ 'lang.meta',
+ 'lang.meta_description',
+ 'lang.seo_text',
+ ],
+ ]
+ ) ?>
+
+
diff --git a/views/seo/_form.php b/views/seo/_form.php
new file mode 100755
index 0000000..a9a3f85
--- /dev/null
+++ b/views/seo/_form.php
@@ -0,0 +1,37 @@
+
+
+
diff --git a/views/seo/_form_language.php b/views/seo/_form_language.php
new file mode 100755
index 0000000..99dd468
--- /dev/null
+++ b/views/seo/_form_language.php
@@ -0,0 +1,43 @@
+
+= $form->field($model_lang, '[' . $language->id . ']title')
+ ->textInput([ 'maxlength' => true ]); ?>
+
+= $form->field($model_lang, '[' . $language->id . ']meta_description')
+ ->widget(CKEditor::className(), [
+ 'editorOptions' => ElFinder::ckeditorOptions('elfinder', [
+ 'preset' => 'full',
+ 'inline' => false,
+ 'filebrowserUploadUrl' => Yii::$app->getUrlManager()
+ ->createUrl('file/uploader/images-upload'),
+ ]),
+ ]) ?>
+
+= $form->field($model_lang, '[' . $language->id . ']seo_text')
+ ->widget(CKEditor::className(), [
+ 'editorOptions' => ElFinder::ckeditorOptions('elfinder', [
+ 'preset' => 'full',
+ 'inline' => false,
+ 'filebrowserUploadUrl' => Yii::$app->getUrlManager()
+ ->createUrl('file/uploader/images-upload'),
+ ]),
+ ]) ?>
+
+= $form->field($model_lang, '[' . $language->id . ']h1')
+ ->textInput([ 'maxlength' => true ]) ?>
+
+= $form->field($model_lang, '[' . $language->id . ']meta')
+ ->textInput([ 'maxlength' => true ]) ?>
\ No newline at end of file
diff --git a/views/seo/create.php b/views/seo/create.php
new file mode 100755
index 0000000..20f8aa8
--- /dev/null
+++ b/views/seo/create.php
@@ -0,0 +1,30 @@
+title = Yii::t('app', 'Create Seo');
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => Yii::t('app', 'Seos'),
+ 'url' => [ 'index' ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+ = $this->render('_form', [
+ 'model' => $model,
+ 'modelLangs' => $modelLangs,
+ ]) ?>
+
+
diff --git a/views/seo/index.php b/views/seo/index.php
new file mode 100755
index 0000000..d88cac6
--- /dev/null
+++ b/views/seo/index.php
@@ -0,0 +1,53 @@
+title = Yii::t('app', 'Seo');
+ $this->params[ 'breadcrumbs' ][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+
+ = Html::a(Yii::t('app', 'Create Seo'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
+
+ = GridView::widget(
+ [
+ 'dataProvider' => $dataProvider,
+ 'filterModel' => $searchModel,
+ 'columns' => [
+ [ 'class' => 'yii\grid\SerialColumn' ],
+ 'id',
+ 'url',
+ [
+ 'attribute' => 'title',
+ 'value' => 'lang.title',
+ ],
+ [
+ 'attribute' => 'meta_description',
+ 'value' => 'lang.meta_description',
+ ],
+ [
+ 'attribute' => 'h1',
+ 'value' => 'lang.h1',
+ ],
+ [
+ 'attribute' => 'meta',
+ 'value' => 'lang.meta',
+ ],
+ [
+ 'attribute' => 'seo_text',
+ 'value' => 'lang.seo_text',
+ ],
+ [ 'class' => 'yii\grid\ActionColumn' ],
+ ],
+ ]
+ ); ?>
+
diff --git a/views/seo/update.php b/views/seo/update.php
new file mode 100755
index 0000000..62d22d4
--- /dev/null
+++ b/views/seo/update.php
@@ -0,0 +1,46 @@
+title = Yii::t(
+ 'app',
+ 'Update {modelClass}: ',
+ [
+ 'modelClass' => 'Seo',
+ ]
+ ) . $model->url;
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => Yii::t('app', 'Seos'),
+ 'url' => [ 'index' ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => $model->url,
+ 'url' => [
+ 'view',
+ 'id' => $model->id,
+ ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = Yii::t('app', 'Update');
+?>
+
+
+
= Html::encode($this->title) ?>
+
+ = $this->render(
+ '_form',
+ [
+ 'model' => $model,
+ 'modelLangs' => $modelLangs,
+ ]
+ ) ?>
+
+
diff --git a/views/seo/view.php b/views/seo/view.php
new file mode 100755
index 0000000..b919c3d
--- /dev/null
+++ b/views/seo/view.php
@@ -0,0 +1,61 @@
+title = $model->url;
+ $this->params[ 'breadcrumbs' ][] = [
+ 'label' => Yii::t('app', 'Seos'),
+ 'url' => [ 'index' ],
+ ];
+ $this->params[ 'breadcrumbs' ][] = $this->title;
+?>
+
+
+
= Html::encode($this->title) ?>
+
+
+ = Html::a(
+ Yii::t('app', 'Update'),
+ [
+ 'update',
+ 'id' => $model->id,
+ ],
+ [ 'class' => 'btn btn-primary' ]
+ ) ?>
+ = Html::a(
+ Yii::t('app', 'Delete'),
+ [
+ 'delete',
+ 'id' => $model->id,
+ ],
+ [
+ 'class' => 'btn btn-danger',
+ 'data' => [
+ 'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
+ 'method' => 'post',
+ ],
+ ]
+ ) ?>
+
+
+ = DetailView::widget(
+ [
+ 'model' => $model,
+ 'attributes' => [
+ 'id',
+ 'url',
+ 'lang.title',
+ 'lang.meta_description',
+ 'lang.h1',
+ 'lang.meta',
+ 'lang.seo_text',
+ ],
+ ]
+ ) ?>
+
+
--
libgit2 0.21.4