Blame view

frontend/modules/seo/views/sitemaphtml/index.php 2.09 KB
d1f8bd40   Alexey Boroda   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
  <?php
  use yii\helpers\Html;
  
  /**
   *
   * @author FilamentV <vortex.filament@gmail.com>
   * @copyright (c), Thread
   */
  ?>
  <div class="row">
  
      <div class="main col-md-12">
  
          <h1 class="page-title">
              <?= Yii::t('seo', 'SitemapHtml:Title') ?>
          </h1>
  
          <div class="separator-2"></div>
  
          <div class="row">
              <div class="col-md-4">
                  <?php if ($catalog_groups):
                      echo Html::tag('h3', Yii::t('catalog', 'Categories'));
                      echo Html::beginTag('ul', [
                          'class' => 'list'
                      ]);
                      foreach ($catalog_groups as $group):
                          echo Html::tag('li', Html::a('<i class="icon-right-open"></i>' . $group['lang']['title'], $group->getUrl()));
                      endforeach;;
                      echo Html::endTag('ul');
                  endif;
                  ?>
              </div>
              <div class="col-md-4">
                  <?php if ($trademarks):
                      echo Html::tag('h3', Yii::t('catalog', 'Trademarks'));
                      echo Html::beginTag('ul', [
                          'class' => 'list'
                      ]);
                      foreach ($trademarks as $trademark):
                          echo Html::tag('li', Html::a('<i class="icon-right-open"></i>' . $trademark['lang']['title'], $trademark->getUrl()));
                      endforeach;;
                      echo Html::endTag('ul');
                  endif;
                  ?>
              </div>
              <div class="col-md-4">
                  <?php if ($pages):
                      echo Html::tag('h3', Yii::t('page', 'Pages'));
                      echo Html::beginTag('ul', [
                          'class' => 'list'
                      ]);
                      foreach ($pages as $page):
                          echo Html::tag('li', Html::a('<i class="icon-right-open"></i>' . $page['lang']['title'], $page->getUrl()));
                      endforeach;;
                      echo Html::endTag('ul');
                  endif;
                  ?>
              </div>
          </div>
  
      </div>
  
  </div>