Commit 16c2f26d230a02629ce2faa9ac57901a035e037c
1 parent
ca9345c6
seo for hardcoded pages
Showing
4 changed files
with
2 additions
and
125 deletions
Show diff stats
frontend/controllers/SiteController.php
@@ -154,21 +154,11 @@ | @@ -154,21 +154,11 @@ | ||
154 | return $this->render('legal'); | 154 | return $this->render('legal'); |
155 | } // юридическое | 155 | } // юридическое |
156 | 156 | ||
157 | - public function actionGreen() | ||
158 | - { | ||
159 | - return $this->render('green'); | ||
160 | - } // зелёный тариф | ||
161 | - | ||
162 | public function actionMediaAbout() | 157 | public function actionMediaAbout() |
163 | { | 158 | { |
164 | return $this->render('media-about'); | 159 | return $this->render('media-about'); |
165 | } // СМИ о нас | 160 | } // СМИ о нас |
166 | 161 | ||
167 | - public function actionBlog() | ||
168 | - { | ||
169 | - return $this->render('blog'); | ||
170 | - } // блог | ||
171 | - | ||
172 | /** | 162 | /** |
173 | * Action to view robots.txt file dinamycli | 163 | * Action to view robots.txt file dinamycli |
174 | * | 164 | * |
frontend/views/layouts/main.php
@@ -606,8 +606,8 @@ | @@ -606,8 +606,8 @@ | ||
606 | <h1> | 606 | <h1> |
607 | <?php | 607 | <?php |
608 | if ( | 608 | if ( |
609 | - Yii::$app->controller->id === $default_controller || | ||
610 | - Yii::$app->controller->action->id === $controller->defaultAction || | 609 | + (Yii::$app->controller->id === $default_controller and |
610 | + Yii::$app->controller->action->id === $controller->defaultAction) || | ||
611 | Yii::$app->controller->action->id === 'search' | 611 | Yii::$app->controller->action->id === 'search' |
612 | ){ | 612 | ){ |
613 | echo (isset($this->params['h1'])) ? | 613 | echo (isset($this->params['h1'])) ? |
frontend/views/site/blog.php deleted
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * @var View $this | ||
5 | - * @var Feedback $contact | ||
6 | - */ | ||
7 | - | ||
8 | -use artbox\core\models\Feedback; | ||
9 | -use common\models\Settings; | ||
10 | -use frontend\assets\MapAsset; | ||
11 | -use yii\helpers\Html; | ||
12 | -use yii\bootstrap\ActiveForm; | ||
13 | -use yii\web\View; | ||
14 | - | ||
15 | -$settings = Settings::getInstance(); | ||
16 | - | ||
17 | -$this->title = \Yii::t('app', 'menu-blog'); | ||
18 | -$this->params[ 'breadcrumbs' ][] = $this->title; | ||
19 | -?> | ||
20 | - | ||
21 | -<div id="blog-wr"> | ||
22 | - <div id="content"> | ||
23 | - | ||
24 | - </div> | ||
25 | -</div> | ||
26 | \ No newline at end of file | 0 | \ No newline at end of file |
frontend/views/site/green.php deleted
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * @var View $this | ||
5 | - * @var Feedback $contact | ||
6 | - */ | ||
7 | - | ||
8 | -use artbox\core\models\Feedback; | ||
9 | -use common\models\Settings; | ||
10 | -use frontend\assets\MapAsset; | ||
11 | -use yii\helpers\Html; | ||
12 | -use yii\bootstrap\ActiveForm; | ||
13 | -use yii\web\View; | ||
14 | - | ||
15 | - $settings = Settings::getInstance(); | ||
16 | - | ||
17 | - $this->params['h1'] = \Yii::t('app', 'menu-green'); | ||
18 | - $this->params[ 'breadcrumbs' ][] = $this->params['h1']; | ||
19 | -?> | ||
20 | - | ||
21 | -<div id="green-wr"> | ||
22 | - <div id="content"> | ||
23 | - | ||
24 | - <div class="container"> | ||
25 | - | ||
26 | - <section class="no-mb"> | ||
27 | - <div class="row"> | ||
28 | - <div class="col-md-12"> | ||
29 | - | ||
30 | - <p class="lead"><?= \Yii::t('app', 'green_line1') ?><br /> | ||
31 | - <?= \Yii::t('app', 'green_line2') ?></p> | ||
32 | - </div> | ||
33 | - </div> | ||
34 | - </section> | ||
35 | - | ||
36 | - <section class="no-mb"> | ||
37 | - <div class="row"> | ||
38 | - <div class="col-md-12"> | ||
39 | - <div class="heading"> | ||
40 | - <h3><?= \Yii::t('app', 'green_line3') ?></h3> | ||
41 | - </div> | ||
42 | - </div> | ||
43 | - </div> | ||
44 | - </section> | ||
45 | - <section class="green-carousel"> | ||
46 | - <div class="project owl-carousel"> | ||
47 | - <div class="item"> | ||
48 | - <img src="/img/slt01.jpg" alt="" class="img-responsive text-center"> | ||
49 | - </div> | ||
50 | - <div class="item"> | ||
51 | - <img class="img-responsive text-center" src="/img/slt02.jpg" alt=""> | ||
52 | - </div> | ||
53 | - <div class="item"> | ||
54 | - <img class="img-responsive text-center" src="/img/slt03.jpg" alt=""> | ||
55 | - </div> | ||
56 | - <div class="item"> | ||
57 | - <img class="img-responsive text-center" src="/img/slt04.jpg" alt=""> | ||
58 | - </div> | ||
59 | - </div> | ||
60 | - <div class="box-simple"> | ||
61 | - <a href="#" class="btn button1 icon_phone modaled init-button-consultation" data-title="<?= \Yii::t('app', 'green_get') ?> <?= \Yii::t('app', 'green_get2') ?>" data-toggle="modal" data-target="#feedback-modal"> | ||
62 | - <?= \Yii::t('app', 'green_get') ?> <span><?= \Yii::t('app', 'green_get2') ?></span> | ||
63 | - </a> | ||
64 | - </div> | ||
65 | - <!-- /.project owl-slider --> | ||
66 | - </section> | ||
67 | - | ||
68 | - <section> | ||
69 | - <div class="row portfolio-project"> | ||
70 | - <div class="col-md-12"> | ||
71 | - <p class="lead"><?= \Yii::t('app', 'green_line4') ?></p> | ||
72 | - <div class="heading"> | ||
73 | - <h3><?= \Yii::t('app', 'green_line5') ?></h3> | ||
74 | - </div> | ||
75 | - <ul class="lead"> | ||
76 | - <li><?= \Yii::t('app', 'green_line6') ?></li> | ||
77 | - <li><?= \Yii::t('app', 'green_line7') ?></li> | ||
78 | - <li><?= \Yii::t('app', 'green_line8') ?></li> | ||
79 | - <li><?= \Yii::t('app', 'green_line9') ?></li> | ||
80 | - </ul> | ||
81 | - | ||
82 | - </div> | ||
83 | - </div> | ||
84 | - </section> | ||
85 | - | ||
86 | - </div> | ||
87 | - </div> | ||
88 | -</div> | ||
89 | \ No newline at end of file | 0 | \ No newline at end of file |