Commit 9c740b7190632408e342d2ead1e4eacde52ca521
1 parent
ead29e4e
our objects
Showing
14 changed files
with
84 additions
and
2 deletions
Show diff stats
frontend/controllers/SiteController.php
| @@ -83,6 +83,7 @@ | @@ -83,6 +83,7 @@ | ||
| 83 | public function actionObjects(){return $this->render('objects');} // наши объекты | 83 | public function actionObjects(){return $this->render('objects');} // наши объекты |
| 84 | public function actionGreen(){return $this->render('green');} // зелёный тариф | 84 | public function actionGreen(){return $this->render('green');} // зелёный тариф |
| 85 | public function actionMediaAbout(){return $this->render('media-about');} // СМИ о нас | 85 | public function actionMediaAbout(){return $this->render('media-about');} // СМИ о нас |
| 86 | + public function actionBlog(){return $this->render('blog');} // блог | ||
| 86 | 87 | ||
| 87 | /** | 88 | /** |
| 88 | * Action to view robots.txt file dinamycli | 89 | * Action to view robots.txt file dinamycli |
frontend/views/layouts/main.php
| @@ -433,7 +433,7 @@ _________________________________________________________ --> | @@ -433,7 +433,7 @@ _________________________________________________________ --> | ||
| 433 | <div class="container"> | 433 | <div class="container"> |
| 434 | <div class="row"> | 434 | <div class="row"> |
| 435 | <div class="col-md-7"> | 435 | <div class="col-md-7"> |
| 436 | - <h1><?= $seo->h1 ?></h1> | 436 | + <h1><?= $this->title ?></h1> |
| 437 | </div> | 437 | </div> |
| 438 | <div class="col-md-5"> | 438 | <div class="col-md-5"> |
| 439 | <?= Breadcrumbs::widget( | 439 | <?= Breadcrumbs::widget( |
| 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> | ||
| 0 | \ No newline at end of file | 26 | \ No newline at end of file |
frontend/views/site/individual.php
| @@ -3,11 +3,12 @@ | @@ -3,11 +3,12 @@ | ||
| 3 | /** | 3 | /** |
| 4 | * @var View $this | 4 | * @var View $this |
| 5 | * @var Feedback $contact | 5 | * @var Feedback $contact |
| 6 | + * @var SeoComponent $seo | ||
| 6 | */ | 7 | */ |
| 7 | 8 | ||
| 9 | +use artbox\core\components\SeoComponent; | ||
| 8 | use artbox\core\models\Feedback; | 10 | use artbox\core\models\Feedback; |
| 9 | use common\models\Settings; | 11 | use common\models\Settings; |
| 10 | -use frontend\assets\MapAsset; | ||
| 11 | use yii\helpers\Html; | 12 | use yii\helpers\Html; |
| 12 | use yii\bootstrap\ActiveForm; | 13 | use yii\bootstrap\ActiveForm; |
| 13 | use yii\web\View; | 14 | use yii\web\View; |
frontend/views/site/objects.php
| @@ -20,6 +20,50 @@ $this->params[ 'breadcrumbs' ][] = $this->title; | @@ -20,6 +20,50 @@ $this->params[ 'breadcrumbs' ][] = $this->title; | ||
| 20 | 20 | ||
| 21 | <div id="objects-wr"> | 21 | <div id="objects-wr"> |
| 22 | <div id="content"> | 22 | <div id="content"> |
| 23 | + <div class="container"> | ||
| 23 | 24 | ||
| 25 | + <section> | ||
| 26 | + | ||
| 27 | + <div class="row"> | ||
| 28 | + <div class="col-md-12"> | ||
| 29 | + <!--<div class="heading"> | ||
| 30 | + <h2>наши объекты</h2> | ||
| 31 | + </div>--> | ||
| 32 | + <p class="lead">Туристическое агентство “WhereAreYou” осуществляет нестандартные поездки с 2003 года. Мы занимаемся не просто путешествием, а для каждого лично составляем полноценный план поездки: что лучше посетить, длительность пребывания исходя из ваших средств. Все что требуется от вас — назвать город, страну и бюджет.</p> | ||
| 33 | + </div> | ||
| 34 | + </div> | ||
| 35 | + | ||
| 36 | + <div class="row portfolio"> | ||
| 37 | + <?php | ||
| 38 | + $objects = ['1.jpg','2.jpg','3.jpg','4.jpg','5.jpg','6.jpg','7.jpg','8.jpg',]; | ||
| 39 | + foreach($objects as $object){ | ||
| 40 | + $link = 'img/objects/'.$object; | ||
| 41 | + if(file_exists($link)){?> | ||
| 42 | + | ||
| 43 | + <div class="col-sm-6"> | ||
| 44 | + <div class="box-image"> | ||
| 45 | + <div class="image"> | ||
| 46 | + <img src="/<?=$link?>" alt="" class="img-responsive"> | ||
| 47 | + </div> | ||
| 48 | + <!--<div class="bg"></div>--> | ||
| 49 | + <!--<div class="name"> | ||
| 50 | + <h3><a href="#">Фото в портфолио</a></h3> | ||
| 51 | + </div>--> | ||
| 52 | + <!--<div class="text"> | ||
| 53 | + <p class="buttons"> | ||
| 54 | + <a href="#" class="btn btn-template-transparent-primary">Посмотреть</a> | ||
| 55 | + </p> | ||
| 56 | + </div>--> | ||
| 57 | + </div> | ||
| 58 | + </div> | ||
| 59 | + <?} | ||
| 60 | + } | ||
| 61 | + ?> | ||
| 62 | + </div> | ||
| 63 | + | ||
| 64 | + | ||
| 65 | + </section> | ||
| 66 | + | ||
| 67 | + </div> | ||
| 24 | </div> | 68 | </div> |
| 25 | </div> | 69 | </div> |
| 26 | \ No newline at end of file | 70 | \ No newline at end of file |
frontend/web/css/main.css
| @@ -38,4 +38,15 @@ | @@ -38,4 +38,15 @@ | ||
| 38 | background: #555555; | 38 | background: #555555; |
| 39 | color: #eeeeee; | 39 | color: #eeeeee; |
| 40 | padding: 7px 0 6px; | 40 | padding: 7px 0 6px; |
| 41 | +} | ||
| 42 | +#top .social a { | ||
| 43 | + color: #999999; | ||
| 44 | + display: inline-block; | ||
| 45 | + width: 24px; | ||
| 46 | + height: 16px; | ||
| 47 | + border-radius: 12px; | ||
| 48 | + line-height: 0px; | ||
| 49 | + font-size: 12px; | ||
| 50 | + text-align: center; | ||
| 51 | + vertical-align: bottom; | ||
| 41 | } | 52 | } |
| 42 | \ No newline at end of file | 53 | \ No newline at end of file |
96.1 KB
185 KB
109 KB
137 KB
97.9 KB
141 KB
123 KB
110 KB