Blame view

protected/views/action/view.php 2.72 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
30
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
63
64
65
  <?php
  /**
   * @var $this ActionController
   * @var $content string
   * @var $currentAction Action
   * @var $currentCategory ActionCategory|null
   */
  ?>
  <?php $this->renderPartial('//snippets/headerGallery'); ?>
  
  <div class="wrapper content-wrapper">
      <div class="col-wrapper">
          <div class="col2 aside-no-title">
              <ul class="sidebar-nav">
                  <?php
                  if ($this->action->id == 'index')
                      echo '<li class="active">';
                  else
                      echo '<li>';
                  echo CHtml::link(Yii::t('site', 'Текущие акции'), array('action/index')), '</li>';
                  /*
                  foreach ($this->getActionCategories() as $category) {
                      if (isset($currentCategory) && $currentCategory->id == $category->id) {
                          echo '<li class="active">', CHtml::link($category->i18n->name, array('action/category', 'link' => $category->link));
                          echo '<ul>';
                          foreach ($currentCategory->actions as $item)
                              if (!$item->is_finished) {
                                  if ($item->id == $currentAction->id)
                                      echo '<li class="active">';
                                  else
                                      echo '<li>';
                                  echo CHtml::link($item->i18n->name, array('action/view', 'link' => $item->link, 'category' => $currentCategory->link)), '</li>';
                              }
  
                          echo '</ul>';
                          echo '</li>';
                      } else
                          echo '<li>', CHtml::link($category->i18n->name, array('action/category', 'link' => $category->link)), '</li>';
                  }
                  */
                  if ($this->action->id == 'finished')
                      echo '<li class="active">';
                  else
                      echo '<li>';
                  echo  CHtml::link(Yii::t('site', 'Завершенные акции'), array('action/finished')), '</li>';
                  ?>
              </ul>
          </div>
          <div class="col8">
              <h1><?php echo CHtml::encode($this->pageName)?></h1>
  
              <div class="text-content">
                  <?php echo $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>