Blame view

frontend/views/category/brand.php 1.26 KB
4ca21c3e   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
  <?php
  use common\modules\product\models\Category;
  use yii\data\ActiveDataProvider;
  use yii\web\View;
  use yii\widgets\ListView;
  
  /**
   * @var Category $category
   * @var ActiveDataProvider $dataProvider
   * @var View $this
   */
  $this->title = $category->name;
  $this->params[ 'breadcrumbs' ][] = [
      'label' => $category->parent->name,
      'url' => ['category/index', 'id' => $category->parent->category_id],
  ];
  $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  
  
  <div class="col-md-12 brand">
      <div class="brand_logo">
          <img src="<?php echo $category->getBrandImageUrl(); ?>">
      </div>
      <div class="brand_title1"><?php echo $category->first_text; ?></div>
      <div class="brand_title2"><?php echo $category->second_text; ?></div>
  
      <?php
      echo ListView::widget([
          'dataProvider' => $dataProvider,
          'itemView' => '_brand_item',
          'layout' => '{items}',
      ])
      ?>
  
      <div class="col-md-12 about_brand">
          <div class="title4"><?php echo $category->h1; ?></div>
987739f1   Alexey Boroda   -Simple spoiler
38
39
40
41
42
43
          <div class="simple-spoiler just-closed" style="height: 50px">
              <div class="spoiler-inner"><?php echo $category->seo_text; ?></div>
          </div>
          <div class="just-more">
              <a href="#">Узнать больше</a>
          </div>
4ca21c3e   Alexey Boroda   first commit
44
45
      </div>
  </div>