Blame view

common/modules/product/widgets/views/product_smart.php 2.49 KB
4253cbec   root   first commit
1
  <?php
c93ce871   Administrator   big commti
2
3
4
5
  /**
   * @var $product  common\modules\product\models\Product
   */
  use yii\helpers\Html;
4253cbec   root   first commit
6
7
  use yii\helpers\Url;
  ?>
bff65579   Виталий   test commit
8
  <div class="catalog_item home_slider_it">
c93ce871   Administrator   big commti
9
      <div class="wrapper">
08e62d82   Administrator   big commti
10
11
12
13
14
15
16
          <div class="status_block-wr <?=$class?>">
              <?php
                  if($class == 'top'){
                     print '<div class="staus_hit"></div>';
                  } else if($class == 'new') {
                      print '<div class="staus_new"></div>';
                  } else if($class == 'promo'){
e7d81e91   Administrator   big commti
17
                      print '<div class="status_sale">Акция</div>';
08e62d82   Administrator   big commti
18
19
20
                  }
              ?>
  
10b789ee   Administrator   big commti
21
  
bff65579   Виталий   test commit
22
          </div>
c93ce871   Administrator   big commti
23
24
          <div class="item_container" >
              <input class="prodInfo" type="hidden" value="[]">
2cbb3bdc   Виталий   test commit
25
  
c93ce871   Administrator   big commti
26
27
28
29
30
31
              <div class="img">
                  <a class="btn-product-details" href="<?= Url::to([
                      'catalog/product',
                      'product' => $product->alias
                  ]) ?>">
                      <?= \common\components\artboximage\ArtboxImageHelper::getImage($product->enabledVariants[ 0 ]->imageUrl, 'list', [
2cbb3bdc   Виталий   test commit
32
33
                          'alt'   => $product->fullname . ' ' . $product->category->name,
                          'title' => $product->fullname . ' ' . $product->category->name,
c93ce871   Administrator   big commti
34
35
36
                          'class' => 'selected'
                      ]) ?>
                  </a>
c93ce871   Administrator   big commti
37
              </div>
4253cbec   root   first commit
38
  
2cbb3bdc   Виталий   test commit
39
40
41
42
43
44
45
46
47
              <div class="style short-desc_wr">
                  <div class="style title-name_">
                      <a href="<?= Url::to([
                          'catalog/product',
                          'product' => $product->alias
                      ]) ?>" title="<?= $product->fullname . ' ' . $product->category->name ?>">
                          <p><span><?= $product->fullname ?></span></p>
                          <p><span><?= $product->category->name ?></span></p>
                      </a>
c93ce871   Administrator   big commti
48
  
2cbb3bdc   Виталий   test commit
49
50
51
52
                  </div>
                  <div class="style in_stock_wr">
                      <div class="in_stock_">
                          <span class="yes_stock">есть на складе</span>
10b789ee   Administrator   big commti
53
  
2cbb3bdc   Виталий   test commit
54
55
56
                      </div>
                      <div class="title-sku">
                          <span>Код: <?=$product->variant->sku?></span>
c93ce871   Administrator   big commti
57
                      </div>
c93ce871   Administrator   big commti
58
                  </div>
c93ce871   Administrator   big commti
59
  
2cbb3bdc   Виталий   test commit
60
61
                  <div class="style price-basket-wr">
                      <span class="currency_price"><?= $product->variant->price ?> грн</span>
10b789ee   Administrator   big commti
62
  <!--                    <div class="price-basket"><a class="" href="#"></a></div>-->
c93ce871   Administrator   big commti
63
64
                  </div>
              </div>
2cbb3bdc   Виталий   test commit
65
  
10b789ee   Administrator   big commti
66
  
2cbb3bdc   Виталий   test commit
67
  
c93ce871   Administrator   big commti
68
          </div>
4253cbec   root   first commit
69
70
      </div>
  </div>