Blame view

src/app/frontend/views/partial/items.php 544 Bytes
1ea3b987   Administrator   maby first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  
  <?php if(!empty($items)): ?>
      <div class="items">
          <?php
          $maxPrice = 0;
          $minPrice = 0;
          ?>
          <?php foreach ($items as $k => $i): ?>
              <?php $this->partial('partial/item_group', ['k' => $k, 'i' => $i, 'limit' => 5]) ?>
              <?php
              if ($i['price'] > $maxPrice) {
                  $maxPrice = $i['price'];
              } elseif ($i['price'] < $maxPrice) {
                  $minPrice = $i['price'];
              }
              ?>
          <?php endforeach; ?>
      </div>
  <?php endif; ?>