Blame view

frontend/modules/map/views/find/ajax.php 410 Bytes
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  <?php
  use yii\helpers\Html;
  
  if (!empty($items)) {
      $count = 0;
      foreach ($items as $key => $item) {
          if ($key <= $limit) {
              echo Html::tag('li', Html::a($item['lang']['title'], $item->getUrl()));
              $count++;
          }
      }
      if ($count > 0) {
          echo Html::tag('li', Html::a(Yii::t('front', 'All results'), ['/map/find/index', 'condition' => $condition]));
      }
  }