Blame view

protected/views/service/category.php 2.69 KB
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
29
  <?php
  /**
   * @var $this ServiceController
   * @var $contacts Contact[]
   * @var $currentCategory ServiceCategory
   */
  ?>
  <?php $this->renderPartial('//snippets/headerGallery'); ?>
  <!-- header end-->
  <div class="wrapper content-wrapper">
      <div class="col-wrapper">
          <div class="col2">
              <p class="section-title"><?php echo Yii::t('site', 'Для вашего авто');?></p>
              <ul class="sidebar-nav">
                  <?php
                  foreach ($this->getServiceCategories() as $category) {
                      if ($category->id == $currentCategory->id) {
                          echo '<li class="active">', CHtml::link($category->i18n->name, array('service/category', 'category' => $category->link));
                          echo '<ul>';
                          foreach ($category->services as $service)
                              if (!$service->hidden) {
                                  echo '<li>', CHtml::link($service->i18n->name, array('service/view', 'category' => $category->link, 'link' => $service->link)), '</li>';
                              }
                          echo '</ul>';
                          echo '</li>';
                      } else {
                          echo '<li>', CHtml::link($category->i18n->name, array('service/category', 'category' => $category->link)), '</li>';
                      }
                  }
1d497eea   Administrator   ашкые
30
                  echo '<li>', CHtml::link('Расчет стоимости ТО', '/stoFilter'), '</li>';
a1684257   Administrator   first commit
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
                  ?>
              </ul>
              <p class="section-title"><?php echo Yii::t('site', 'Сервис-центры')?></p>
              <ul class="sidebar-nav">
                  <?php
                  foreach ($this->getServiceCenters() as $center) {
                      echo '<li>', CHtml::link($center->i18n->name, array('service/center', 'center' => $center->link)), '</li>';
                  }
                  ?>
              </ul>
          </div>
          <div class="col8">
              <ul class="crumbs">
                  <li><?php echo CHtml::link(Yii::t('site', 'Сервис'), array('service/index'));?></li>
              </ul>
              <h1><?php echo $this->pageName?></h1>
  
              <div class="text-content">
                  <?php echo $currentCategory->i18n->content;?>
              </div>
          </div>
  
          <div class="col2">
              <p class="section-title"><?php echo Yii::t('site','Есть вопросы?');?></p>
  
              <div class="text-content">
                  <?php echo Yii::t('site','Обращайтесь к вашему персональному консультанту по сервису!');?>
              </div>
              <?php $this->renderPartial('//snippets/sidebarContacts');?>
          </div>
      </div>
  </div>