Blame view

src/app/frontend/views/partial/item_group.php 2.92 KB
dce46e80   Alex Savenko   first push project
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
  <div class="one_item float <?= ( ($k+1) % $limit == 0 ? 'last' : '' ) ?>">
      <?php /*
      <div class="new_top">
          <?= ( isset( $i['is_new'] ) && !empty( $i['is_new'] )
          ?
          '<div class="float">
              <img src="/images/new.png" alt="Новинки" width="47" height="14" />
          </div>'
          :
          '').
          ( isset( $i['is_top'] ) && !empty( $i['is_top'] )
          ?
          '<div class="float">
              <img src="/images/top.png" alt="Топ продаж" width="63" height="14" />
          </div>'
          :
          '') ?>
      </div>*/?>
      <div class="one_item_image">
          <a href="<?= $this->seoUrl->setUrl($i['alias']) ?>" title="<?= $i['title'] ?>" style="position:relative;">
              <?php if($i['count_available'] == 0){
                  echo "<div class='not_availiable ".$t->_("lang_name")."'></div>";
              }
              ?>
              <img src="<?= $i['cover'] ?>" alt="<?= $i['title'] ?>" width="126" height="200" />
          </a>
      </div>
      <div class="one_item_title">
          <a href="<?= $this->seoUrl->setUrl($i['alias']) ?>" title="<?= $i['title'] ?>">
a1fb2354   Alex Savenko   vip prices tests
30
              <h3><?= \plugins::getShortText($i['title']) ?></h3>
dce46e80   Alex Savenko   first push project
31
32
33
          </a>
      </div>
      <div class="align_bottom">
3c0a3477   Alex Savenko   add/edit
34
35
          <div class="one_item_price">
              <?= $t->_("price_from") ?>
398c9471   Alex Savenko   price display
36
              <?php
5ff30e4d   Alex Savenko   remove
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  //            //vip
  //            if(isset($users_group_id) &&  $users_group_id == '37') {
  //                $i['price'] = round($i['price']*0.95, 1);
  //            }
  //            // скидка
  //            if (!empty($discount)) {
  //                if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) {
  //                    echo '<span style="text-decoration: line-through;"><span>'.$i['price'].'</span></span> грн<br/>';
  //                    echo '<span>'.round($i['price']*(1-$discount['discount']/100), 1).'</span> грн';
  //                }
  //                else {
  //                    echo '<span>'.$i['price'].'</span> грн';
  //                }
  //            }
  //            else {
  //                echo '<span>'.$i['price'].'</span> грн';
  //            }
3c0a3477   Alex Savenko   add/edit
54
              ?>
5ff30e4d   Alex Savenko   remove
55
              <span><?= $i['price'] ?></span> грн
3c0a3477   Alex Savenko   add/edit
56
          </div>
dce46e80   Alex Savenko   first push project
57
58
59
60
61
62
63
64
65
66
          <div class="one_item_buttons">
              <a href="<?= $this->seoUrl->setUrl($i['alias']) ?>" title="" class="btn grey"><?= $t->_("details") ?></a>
              <a data-group_id="<?= $i['group_id'] ?>" href="javascript:;" title="" class="<?= $i['count_available'] != 0 ? 'btn green buy' : 'not_available grey'?>"><?= $t->_("buy") ?></a>
          </div>
          <div class="one_item_compare">
              <input type="checkbox" id="items_compare_item_<?= $i['id'] ?>" value="<?= $i['type_id'].'-'.$i['catalog'].'-'.$i['id'] ?>" <?= ( !empty($i['checked']) ? 'checked' : '' ) ?> />
              <label for="items_compare_item_<?= $i['id'] ?>"><span></span><?= $t->_("compared_to") ?></label>
          </div>
      </div>
  </div>