diff --git a/common/models/event/Tag.php b/common/models/event/Tag.php index 1c0b7c0..d9e3f75 100755 --- a/common/models/event/Tag.php +++ b/common/models/event/Tag.php @@ -102,7 +102,7 @@ */ public function getLanguages() { - return $this->hasMany(TagLang::className(), [ 'blog_tag_id' => 'id' ]); + return $this->hasMany(TagLang::className(), [ 'event_tag_id' => 'id' ]); } /** diff --git a/console/migrations/m180403_141700_add_page_columns.php b/console/migrations/m180403_141700_add_page_columns.php index cf9801d..d8852e9 100644 --- a/console/migrations/m180403_141700_add_page_columns.php +++ b/console/migrations/m180403_141700_add_page_columns.php @@ -12,8 +12,8 @@ class m180403_141700_add_page_columns extends Migration */ public function safeUp() { - $this->addColumn('page','updated_at', $this->timestamp()); - $this->addColumn('page','created_at', $this->timestamp()); + $this->addColumn('page','updated_at', $this->string()); + $this->addColumn('page','created_at', $this->string()); } /** diff --git a/frontend/assets/GalleryAsset.php b/frontend/assets/GalleryAsset.php new file mode 100644 index 0000000..2671f25 --- /dev/null +++ b/frontend/assets/GalleryAsset.php @@ -0,0 +1,28 @@ + [], ], ], + 'buttonContent' => 'Send', 'scenario' => 'feedback', 'sendEmail' => false, 'formId' => 'feedback-form', 'ajax' => true, 'successCallback' => 'function (data) { + document.getElementById("feedback-form").reset(); $(".close").click(); $(".success_").animate({opacity: 1, top: \'40\'}, 200).addClass("done_"); setTimeout(function(){$(".success_").animate({opacity: 0, top: \'0\'}, 200,function(){ $(this).removeClass("done_"); })}, 4000); + }', ], @@ -126,6 +129,7 @@ 'formId' => 'contact-form', 'scenario' => 'default', 'successCallback' => 'function (data) { + document.getElementById("contact-form").reset(); $(".close").click(); $(".success_").animate({opacity: 1, top: \'40\'}, 200).addClass("done_"); setTimeout(function(){$(".success_").animate({opacity: 0, top: \'0\'}, 200,function(){ diff --git a/frontend/controllers/GalleryController.php b/frontend/controllers/GalleryController.php new file mode 100644 index 0000000..1138495 --- /dev/null +++ b/frontend/controllers/GalleryController.php @@ -0,0 +1,22 @@ +with('language')->where(['status' => true])->orderBy('sort')->all(); + return $this->render('index', [ + 'images' => $images + ]); + } + } \ No newline at end of file diff --git a/frontend/views/event/tag.php b/frontend/views/event/tag.php index 537579d..deec7fd 100755 --- a/frontend/views/event/tag.php +++ b/frontend/views/event/tag.php @@ -18,7 +18,7 @@ $this->params[ 'breadcrumbs' ][] = [ 'label' => \Yii::t('app', 'Events'), - 'url' => [ 'blog/index' ], + 'url' => [ 'event/index' ], ]; $this->params[ 'breadcrumbs' ][] = $seo->title; diff --git a/frontend/views/event/view.php b/frontend/views/event/view.php index 6f49096..2618f3a 100755 --- a/frontend/views/event/view.php +++ b/frontend/views/event/view.php @@ -13,7 +13,7 @@ $this->params[ 'breadcrumbs' ][] = [ 'label' => \Yii::t('app', 'Events'), - 'url' => [ 'blog/index' ], + 'url' => [ 'event/index' ], ]; $this->params[ 'breadcrumbs' ][] = $model->title; diff --git a/frontend/views/gallery/index.php b/frontend/views/gallery/index.php new file mode 100644 index 0000000..0960878 --- /dev/null +++ b/frontend/views/gallery/index.php @@ -0,0 +1,83 @@ +params[ 'breadcrumbs' ][] = \Yii::t('app', 'Gallery'); + GalleryAsset::register($this); + ?> + + + + +
+
+
+
+ +
+
+
+
+ + + diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index 078fc8f..f160ec7 100755 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -24,7 +24,7 @@ _________________________________________________________ -->