Blame view

frontend/modules/news/widgets/LatestNews/views/index.php 657 Bytes
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
  <?php
  
  use yii\bootstrap\Html;
  
  /**
   *
   * @author FilamentV <vortex.filament@gmail.com>
   * @copyright (c), Thread
   */
  ?>
  <div class="block clearfix latest-news-widgets">
      <?= Html::tag('div', Yii::t('news', 'Latest News'), [
          'class' => 'title title-1'
      ]) ?>
  
      <div class="separator-2"></div>
      <?php
      foreach ($articles as $article):
          echo $this->render('parts/item', [
              'model' => $article
          ]);
      endforeach;
      ?>
      <!--
      <div class="text-right space-top">
          <?= Html::a(Yii::t('news', 'More'), ['/news/list/index'], [
              'class' => 'link-dark'
          ]) ?>
      </div>
      -->
  </div>