Blame view

widgets/views/products_block.php 1019 Bytes
2f25da09   Yarik   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  <?php
      use artweb\artbox\ecommerce\models\Product;
      use yii\web\View;
      
      /**
       * @var Product[] $products
       */
  ?>
  <?php if(!empty( $products )) { ?>
      <div class="_prd_spec-wr">
          <div class="special-products products<?= ( !empty( $class ) ? ' ' . $class : '' ) ?>">
              <span style="text-align: center;
      text-transform: uppercase;
      font-size: 20px;   display: block;
      -webkit-margin-before: 1em;
      -webkit-margin-after: 1em;
      -webkit-margin-start: 0;
      -webkit-margin-end: 0;
      font-weight: bold;"><?= $title ?></span>
              <div id="<?= $class ?>">
                  <?php foreach($products as $product) : ?>
                      <?= $this->render('product_smart', [ 'product' => $product ]); ?>
                  <?php endforeach ?>
              </div>
              <div class="both"></div>
          </div>
      </div>
      <?php $js = "$('#$class').owlCarousel({
  navigation:true,
  navigationText: []
  })
  ";
      $this->registerJs($js, View::POS_READY);
      ?>
  <?php } ?>