Blame view

frontend/views/site/index.php 3.88 KB
7ba4acc5   Administrator   after marge
1
2
3
4
5
6
7
8
9
10
11
12
13
  <?php
  use frontend\widgets\SliderWidget;
  use yii\helpers\Html;
  use yii\web\View;
  use frontend\widgets\BannerWidget;
  use yii\helpers\Url;
  
  //    $this->title = $text->meta_title;
  //    $this->registerMetaTag (['name' => 'description', 'content' => $text->meta_description]);
  //    $this->registerMetaTag (['name' => 'keywords', 'content' => $text->meta_keywords]);
  $this->registerJsFile (
      Yii::$app->request->baseUrl . '/js/slides.min.jquery.js',
      ['position' => View::POS_HEAD, 'depends' => ['yii\web\JqueryAsset']]);
550eac02   Administrator   second
14
15
16
17
18
  
  ?>
  
  <?php
  
7ba4acc5   Administrator   after marge
19
  echo SliderWidget::widget(["title"=>"HOME_SLIDER"]);
550eac02   Administrator   second
20
  
7ba4acc5   Administrator   after marge
21
  echo BannerWidget::widget(['title' => 'HOME_RIGHT']);
550eac02   Administrator   second
22
  
7ba4acc5   Administrator   after marge
23
  echo '<div id="HOME_UNDER_SLIDER">';
550eac02   Administrator   second
24
  
7ba4acc5   Administrator   after marge
25
26
27
  echo BannerWidget::widget(['title' => 'HOME_UNDER_SLIDER_1']);
  echo BannerWidget::widget(['title' => 'HOME_UNDER_SLIDER_2']);
  echo BannerWidget::widget(['title' => 'HOME_UNDER_SLIDER_3']);
550eac02   Administrator   second
28
  
7ba4acc5   Administrator   after marge
29
  echo '</div>';
550eac02   Administrator   second
30
31
32
33
34
35
36
37
38
39
40
41
42
  ?>
  
  <div class="rubrics">
      <ul>
          <li class="item1"><a href="<?= Url::to (['products/index', 'translit' => 'ryukzaki']) ?>">Рюкзаки</a></li>
          <li class="item2"><a href="<?= Url::to (['products/index', 'translit' => 'sumki']) ?>">сумки</a></li>
          <li class="item3"><a href="<?= Url::to (['products/index', 'translit' => 'chehly']) ?>">чехлы</a></li>
          <li class="item4"><a href="<?= Url::to (['products/index', 'translit' => 'nesessery']) ?>">Несессеры</a></li>
          <li class="item5"><a href="<?= Url::to (['products/index', 'translit' => 'koshelki']) ?>">кошельки</a></li>
      </ul>
      <div class="both"></div>
  </div>
  
7ba4acc5   Administrator   after marge
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
  <?php //TODO вставляем топ товары?>
  <?// if (count ($products_top) > 0): ?>
  <!--    <div class="products">-->
  <!--        <h3>Топ товары</h3>-->
  <!--        <ul>-->
  <!---->
  <!--            --><?// foreach ($products_top as $item): ?>
  <!--                <li class="item">-->
  <!--                    --><?//= $this->render ('/products/_product', ['item' => $item, 'num' => 4]) ?>
  <!--                </li>-->
  <!--            --><?// endforeach; ?>
  <!---->
  <!--        </ul>-->
  <!--        <div class="both"></div>-->
  <!--    </div>-->
  <?// endif; ?>
550eac02   Administrator   second
59
60
61
62
63
  
  
  <div class="products">
      <h3>Скидки</h3>
      <ul>
7ba4acc5   Administrator   after marge
64
65
66
67
68
69
          <?php //TODO вставляем новинки?>
          <!--        --><?// foreach ($products_new as $item): ?>
          <!--            <li class="item">-->
          <!--                --><?//= $this->render ('/products/_product', ['item' => $item, 'num' => 4]) ?>
          <!--            </li>-->
          <!--        --><?// endforeach; ?>
550eac02   Administrator   second
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
      </ul>
      <div class="both"></div>
  </div>
  
  
  <h2 class="why"><span>Почему</span></h2>
  <ul class="why_list">
      <li class="item1">
          <span>Только брендовые товары.</span> Мы не торгуем подделками — только проверенное качество.
      </li>
      <li class="item2">
          <span>Скидки постоянным клиентам.</span> Постоянные клиенты получают гарантированную скидку
          на неакционные товары.
      </li>
      <li class="item3">
          <span>Удобная оплата</span>: наличными курьеру или же банковский перевод.
      </li>
      <li class="item4">
          <span>Квалифицированные менеджеры</span> всегда рады помочь с выбором и консультацией.
      </li>
      <li class="item5">
          <span>100% гарантия возврата.</span> Если товар не подойдет,
          мы вернем деньги.
      </li>
      <li class="item6">
          <span>Отслеживание статуса заказа и доставки.</span>
      </li>
  </ul>
  <div class="both"></div>
  
7ba4acc5   Administrator   after marge
100
  <?=BannerWidget::widget(['title' => 'HOME_CENTER']);?>
550eac02   Administrator   second
101
102
  
  <div class="seo_text">
7ba4acc5   Administrator   after marge
103
      <!--    --><?//= $text->body ?>
550eac02   Administrator   second
104
105
106
107
108
  </div>
  
  
  
          
3f2bc3d0   Administrator   first commit
109