Blame view

protected/views/tuning/_brandModels.php 809 Bytes
a1684257   Administrator   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
  <?php
  /**
   * @var $this TuningController
   * @var $b TuningBrand
   */
  $models = $b->tuningModels;
  if (count($models) == 0) return;
  ?>
  <div class="catalog-sublist" id="brand-<?php echo $b->id?>-models"
       style="display: none;">
  
      <?php foreach ($models as $model) if(!$model->hidden): ?>
      <a href="<?php echo
      CHtml::encode($this->createUrl('tuning/model', array(
          'brand' => $model->tuningBrand->link,
          'model' => $model->link
      )));
          ?>" class="catalog-sublist-item">
          <span class="catalog-sublist-item-img">
              <?php echo CHtml::image($model->imageBehavior->getFileUrl('small'));?>
          </span>
          <span class="catalog-sublist-item-name">
              <?php echo CHtml::encode($model->i18n->name)?>
          </span>
      </a>
      <?php endif; ?>
  
  </div>