Blame view

frontend/views/discount/discount.php 1.95 KB
b224f0ae   Alexey Boroda   Changes:
1
  <?php
f2acc393   Alexey Boroda   -Seo widget integ...
2
3
4
5
6
7
8
9
10
      /**
       * @var Product[] $products
       * @var View      $this
       */
      use common\modules\product\models\Product;
      use yii\web\View;
      use common\components\artboximage\ArtboxImageHelper;
      use yii\helpers\Url;
      use common\widgets\Seo;
b224f0ae   Alexey Boroda   Changes:
11
  
f2acc393   Alexey Boroda   -Seo widget integ...
12
13
      $this->params[ 'breadcrumbs' ][] = 'Акции';
      $this->params[ 'seo' ][ Seo::TITLE ] = 'Акции';
b224f0ae   Alexey Boroda   Changes:
14
15
16
17
18
19
20
  
  ?>
  
  <div class="col-md-12">
      <div class="title8">Акции</div>
      <div class="actions_cont">
          <?php
f2acc393   Alexey Boroda   -Seo widget integ...
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
              foreach($products as $product) {
                  ?>
                  <div class="col-md-3 action">
                      <a href="<?php echo Url::to([
                          'catalog/product',
                          'product' => $product->alias,
                          'variant' => $product->variant->sku,
                      ]) ?>">
                          <div class="picture"><?php echo ArtboxImageHelper::getImage($product->getImageUrl(), 'category_thumb'); ?></div>
                          <div class="a_down">
                              <div class="price"><?php echo $product->variant->price; ?>
                                  <span></span></div>
                              <div class="titles">
                                  <div class="line1"><?php echo $product->name; ?></div>
                                  <div class="line2"><?php echo $product->category->name; ?></div>
                              </div>
                          </div>
                      </a>
b224f0ae   Alexey Boroda   Changes:
39
                  </div>
f2acc393   Alexey Boroda   -Seo widget integ...
40
              <?php } ?>
b224f0ae   Alexey Boroda   Changes:
41
42
          <div style="clear:both;"></div>
      </div>
f2acc393   Alexey Boroda   -Seo widget integ...
43
      
b224f0ae   Alexey Boroda   Changes:
44
      <div class="down act_d">
f2acc393   Alexey Boroda   -Seo widget integ...
45
          <h1 class="d_title"><?php echo Seo::widget(['row' => Seo::H1]);?></h1>
987739f1   Alexey Boroda   -Simple spoiler
46
          <div class="simple-spoiler just-closed" style="height: 50px">
f2acc393   Alexey Boroda   -Seo widget integ...
47
              <div class="spoiler-inner"><?php echo Seo::widget(['row' => Seo::SEO_TEXT]);?></div>
987739f1   Alexey Boroda   -Simple spoiler
48
49
          </div>
          <div class="just-more">
b224f0ae   Alexey Boroda   Changes:
50
51
52
53
              <a href="#">Узнать больше</a>
          </div>
      </div>
  </div>