b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
1
|
<?php
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/**
* @var ActiveDataProvider $dataProvider
* @var View $this
* @var ActiveDataProvider $productsProvider
* @var Category $category
* @var Category[] $stockProgram
* @var Category[] $onOrder
*/
use common\modules\product\models\Category;
use yii\data\ActiveDataProvider;
use yii\helpers\Url;
use yii\web\View;
use yii\widgets\ListView;
use frontend\widgets\FilterWidget;
use common\widgets\Seo;
$this->params[ 'seo' ][ Seo::TITLE ] = $category->first_text;
$this->params[ 'seo' ][ Seo::DESCRIPTION ] = '';
$this->params[ 'breadcrumbs' ][] = $category->first_text;
|
b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
22
23
|
?>
|
b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
24
|
<div class="col-md-12">
|
c14be29f
Eugeny Galkovskiy
123
|
25
|
<div class="catalog_block">
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<div class="col-md-3 filters">
<div class="button1"><a href="<?php
echo Url::to([ '/discount' ]);
?>" class="punkt">Акции / Скидки</a></div>
<div class="filters_block">
<div class="button2">
<a href="#" class="punkt">Складская программа</a>
<div class="spoiler">
<ul>
<?php
foreach($stockProgram as $brand) {
?>
<li><a href="<?php
echo Url::to([
'category/brand',
'id' => $brand->category_id,
]);
?>"><?php echo $brand->name; ?>
<span>/ <?php echo $brand->meta_desc; ?></span></a></li>
<?php } ?>
</ul>
</div>
|
b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
48
|
</div>
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<div class="button2">
<a href="#" class="punkt">Под заказ</a>
<div class="spoiler">
<ul>
<?php
foreach($onOrder as $brand) {
?>
<li><a href="<?php
echo Url::to([
'category/brand',
'id' => $brand->category_id,
]);
?>"><?php echo $brand->name; ?>
<span>/ <?php echo $brand->meta_desc; ?></span></a></li>
<?php } ?>
</ul>
</div>
|
b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
66
|
</div>
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
67
68
69
70
71
72
73
74
75
|
<div class="title">Фильтры</div>
<form method="post" action="/site/sku">
<div><input name="sku" type="text" placeholder="Артикул"></div>
</form>
<?= FilterWidget::widget([
'category' => $category,
'groups' => $groups,
'filter' => $filter,
]) ?>
|
b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
76
|
</div>
|
b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
77
|
</div>
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
78
79
80
81
82
83
84
85
86
87
|
<div class="col-md-9">
<div class="blocks_2">
<?php echo ListView::widget([
'dataProvider' => $productsProvider,
'itemView' => '_product_list',
'layout' => '{items}{pager}',
]) ?>
</div>
|
b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
88
89
|
</div>
</div>
|
b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
90
91
|
</div>
<div class="textile_bottom">
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
92
|
<h1 class="title1 left"><?php echo Seo::widget(['row' => Seo::H1]); ?></h1>
|
987739f1
Alexey Boroda
-Simple spoiler
|
93
|
<div class="simple-spoiler just-closed" style="height: 50px">
|
f2acc393
Alexey Boroda
-Seo widget integ...
|
94
|
<div class="spoiler-inner"><?php echo Seo::widget(['row' => Seo::SEO_TEXT]); ?></div>
|
987739f1
Alexey Boroda
-Simple spoiler
|
95
96
97
98
|
</div>
<div class="just-more">
<a href="#">Узнать больше</a>
</div>
|
b89bd6a3
Alexey Boroda
26.09.16 filters ...
|
99
100
|
</div>
<div style="clear:both;"></div>
|