diff --git a/common/messages/en/app.php b/common/messages/en/app.php index e3b6834..b3a25d4 100644 --- a/common/messages/en/app.php +++ b/common/messages/en/app.php @@ -1,2 +1,11 @@ 'About', + 'menu-individual' => 'For individuals', + 'menu-legal' => 'For legal entities', + 'menu-objects' => 'Objects', + 'menu-green' => 'Green tariff', + 'menu-mediaabout' => 'Media about us', + 'menu-blog' => 'Blog', + 'menu-contacts' => 'Contacts', + ]; \ No newline at end of file diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index 2e64a98..2010a70 100644 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -5,7 +5,7 @@ return [ 'tel:' => 'по тел.', 'menu-about' => 'О нас', 'menu-individual' => 'Для физических лиц', - 'menu-entity' => 'Для юридических лиц', + 'menu-legal' => 'Для юридических лиц', 'menu-objects' => 'Наши объекты', 'menu-green' => 'Зелёный тариф', 'menu-mediaabout' => 'СМИ о нас', diff --git a/common/messages/ua/app.php b/common/messages/ua/app.php index 6c65453..3474aa6 100644 --- a/common/messages/ua/app.php +++ b/common/messages/ua/app.php @@ -1,4 +1,12 @@ '', + 'menu-about' => 'Про нас', + 'menu-individual' => 'Для фізичних осіб', + 'menu-legal' => 'Для юридичних осіб', + 'menu-objects' => 'Наші об\'єкти', + 'menu-green' => 'Зелений тариф', + 'menu-mediaabout' => 'ЗМІ про нас', + 'menu-blog' => 'Блог', + 'menu-contacts' => 'Контакти', ]; \ No newline at end of file diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index af69a76..621879c 100644 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -77,7 +77,13 @@ { return $this->render('about'); } - + + public function actionIndividual(){return $this->render('individual');} // частное лицо + public function actionLegal(){return $this->render('legal');} // юридическое + public function actionObjects(){return $this->render('objects');} // наши объекты + public function actionGreen(){return $this->render('green');} // зелёный тариф + public function actionMediaAbout(){return $this->render('media-about');} // СМИ о нас + /** * Action to view robots.txt file dinamycli * diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 75daa71..2cb3829 100644 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -283,8 +283,8 @@ _________________________________________________________ --> 'url' => [ 'site/individual' ], ]; $items[] = [ - 'label' => \Yii::t('app', 'menu-entity'), - 'url' => [ 'site/entity' ], + 'label' => \Yii::t('app', 'menu-legal'), + 'url' => [ 'site/legal' ], ]; $items[] = [ 'label' => \Yii::t('app', 'menu-objects'), diff --git a/frontend/views/site/contact.php b/frontend/views/site/contact.php index e7a678b..7033d4f 100644 --- a/frontend/views/site/contact.php +++ b/frontend/views/site/contact.php @@ -15,7 +15,7 @@ MapAsset::register($this); $settings = Settings::getInstance(); - $this->title = \Yii::t('app', 'Contact'); + $this->title = \Yii::t('app', 'menu-contacts'); $this->params[ 'breadcrumbs' ][] = $this->title; $js = <<< JS diff --git a/frontend/views/site/green.php b/frontend/views/site/green.php new file mode 100644 index 0000000..d22fc56 --- /dev/null +++ b/frontend/views/site/green.php @@ -0,0 +1,25 @@ +title = \Yii::t('app', 'menu-green'); +$this->params[ 'breadcrumbs' ][] = $this->title; +?> + +