Blame view

frontend/views/layouts/main.php 4.64 KB
4ca21c3e   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
  <?php
  /**
   * @var Category[] $brands_menu
   * @var \yii\web\View $this
   * @var string $content
   */
  
  use common\modules\product\models\Category;
  use frontend\assets\AppAsset;
  use yii\helpers\Html;
  use yii\helpers\Url;
  use yii\widgets\Breadcrumbs;
  
f72eba2b   Alexey Boroda   closing from sear...
14
15
16
17
18
  $this->registerMetaTag([
      'name' => 'robots',
      'content' => 'noindex,nofollow',
  ]);
  
4ca21c3e   Alexey Boroda   first commit
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
  AppAsset::register($this);
  
  $brands = Category::find()
      ->where([
          'parent_id' => 0,
      ])->all();
  ?>
  
  <?php $this->beginPage(); ?>
  <!DOCTYPE HTML>
  <html lang="<?= Yii::$app->language ?>">
  <head>
      <meta charset="<?= Yii::$app->charset ?>">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <?= Html::csrfMetaTags(); ?>
      <title><?= Html::encode($this->title); ?></title>
      <?php $this->head(); ?>
  </head>
  <body>
  <?php $this->beginBody(); ?>
  <nav class="navbar nav1">
      <ul class="nav navbar-nav">
          <li><a href="#">О нас</a></li>
          <li><a href="<?php echo Url::to('/new-collections'); ?>">Новые коллекции</a></li>
          <li><a href="<?php echo Url::to('/article'); ?>">События</a></li>
          <li><a href="<?php echo Url::to('/blog'); ?>">Блог</a></li>
          <li><a href="contacts.html">Контакты</a></li>
      </ul>
  </nav>
  <header>
      <div class="container">
          <a href="<?php echo Url::home(); ?>" class="main"></a>
      </div>
  </header>
  <section class="menu">
      <div class="container">
          <ul>
              <li><a href="#">Бренды</a>
                  <div class="dropd_menu">
2d7ef064   Alexey Boroda   added menu and pr...
59
                      <div class="inline_dropb">
4ca21c3e   Alexey Boroda   first commit
60
                          <?php foreach ($brands as $brand) { ?>
2d7ef064   Alexey Boroda   added menu and pr...
61
62
                          <div class="idp_el"><a href="<?php
                              echo Url::to([
4ca21c3e   Alexey Boroda   first commit
63
64
                                  'category/index',
                                  'id' => $brand->category_id,
2d7ef064   Alexey Boroda   added menu and pr...
65
66
67
                              ])
                              ?>"><?php echo $brand->name; ?></a></div>
                          <?php } ?>
4ca21c3e   Alexey Boroda   first commit
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
                      </div>
                      <div style="clear:both;"></div>
                  </div>
              </li>
              <li><a href="walls.html">Обои</a></li>
              <li><a href="textile.html">Текстиль</a></li>
              <li><a href="eaves.html">Карнизы</a></li>
              <li><a href="floor.html">Напольные покрытия</a></li>
              <li><a href="contract.html">Contract Concept</a></li>
              <li><a href="furniture.html">Мебель</a></li>
          </ul>
      </div>
  </section>
  <div class="container cont">
      <div class="col-md-12">
          <?php
          echo Breadcrumbs::widget([
              'tag' => 'div',
              'options' => [
                  'class' => 'nav_up',
              ],
              'itemTemplate' => '{link} - ',
              'activeItemTemplate' => '<span>{link}</span>',
              'links' => isset( $this->params[ 'breadcrumbs' ] ) ? $this->params[ 'breadcrumbs' ] : [],
          ]);
          ?>
  
  <?= $content ?>
      </div>
  </div>
  <footer>
      <div class="container">
          <div class="col-md-3 fleft">
              <p>© 2006 - 2015 Шоу-рум “BACCARA HOME”</p>
          </div>
          <div class="col-md-3 fcenter col-xs-6">
              <ul>
                  <li><a href="#">О нас</a></li>
                  <li><a href="<?php echo Url::to('/new-collections'); ?>">Новые коллекции</a></li>
                  <li><a href="<?php echo Url::to('/article'); ?>">События</a></li>
                  <li><a href="<?php echo Url::to('/blog'); ?>">Блог</a></li>
                  <li><a href="contacts.html">Контакты</a></li>
              </ul>
          </div>
          <div class="col-md-3">
          </div>
          <div class="col-md-3 fright col-xs-6">
              <div class="socbuts">
                  <ul>
                      <li><a href="https://www.facebook.com/baccaraRoom/?fref=ts" target="_blank"><img src="/images/icon_fb.png"></a></li>
                      <li><a href="https://www.instagram.com/baccarahome/" target="_blank"><img src="/images/icon_inst.png"></a></li>
                      <li><a href="https://www.youtube.com/channel/UCr6GslF0IhlOwr7XlLsQAbw" target="_blank"><img src="/images/icon_yt.png"></a></li>
                      <li><a href="https://www.pinterest.com/baccarahome/?etslf=36773&eq=baccara%20home" target="_blank"><img src="/images/icon_pin.png"></a></li>
                  </ul>
              </div>
              <div class="hours">Часы работы<br/>
                  пн–пт: 10:00 – 19:30<br/>
                  сб: 11:00 – 18:00</div>
          </div>
      </div>
  </footer>
  <?php $this->endBody(); ?>
  </body>
  </html>
  <?php $this->endPage(); ?>