4ca21c3e
Alexey Boroda
first commit
|
1
2
3
4
5
|
<?php
/**
* @var Category[] $brands_menu
* @var \yii\web\View $this
* @var string $content
|
b224f0ae
Alexey Boroda
Changes:
|
6
7
|
* @var Page[] $top_menu
* @var Page[] $main_menu
|
4ca21c3e
Alexey Boroda
first commit
|
8
9
|
*/
|
b224f0ae
Alexey Boroda
Changes:
|
10
|
use common\models\Page;
|
4ca21c3e
Alexey Boroda
first commit
|
11
12
13
14
15
16
|
use common\modules\product\models\Category;
use frontend\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\Breadcrumbs;
|
b224f0ae
Alexey Boroda
Changes:
|
17
18
19
20
21
22
23
24
25
26
27
28
|
$top_menu = Page::find()->where([
'in_top_menu' => true,
])->orderBy([
'sort_order' => SORT_ASC,
])->all();
$main_menu = Page::find()->where([
'in_menu' => true,
])->orderBy([
'sort_order' => SORT_ASC,
])->all();
|
f72eba2b
Alexey Boroda
closing from sear...
|
29
30
31
32
33
|
$this->registerMetaTag([
'name' => 'robots',
'content' => 'noindex,nofollow',
]);
|
4ca21c3e
Alexey Boroda
first commit
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
AppAsset::register($this);
$brands = Category::find()
->where([
'parent_id' => 0,
])->all();
?>
<?php $this->beginPage(); ?>
<!DOCTYPE HTML>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?= Html::csrfMetaTags(); ?>
<title><?= Html::encode($this->title); ?></title>
<?php $this->head(); ?>
</head>
<body>
<?php $this->beginBody(); ?>
<nav class="navbar nav1">
<ul class="nav navbar-nav">
|
4ca21c3e
Alexey Boroda
first commit
|
57
58
59
|
<li><a href="<?php echo Url::to('/new-collections'); ?>">Новые коллекции</a></li>
<li><a href="<?php echo Url::to('/article'); ?>">События</a></li>
<li><a href="<?php echo Url::to('/blog'); ?>">Блог</a></li>
|
b224f0ae
Alexey Boroda
Changes:
|
60
61
62
|
<?php foreach ($top_menu as $page) { ?>
<li><a href="<?php echo Url::to(['site/page', 'id' => $page->id]); ?>"><?php echo $page->title; ?></a></li>
<?php } ?>
|
4ca21c3e
Alexey Boroda
first commit
|
63
64
65
66
67
68
69
70
71
72
73
74
|
</ul>
</nav>
<header>
<div class="container">
<a href="<?php echo Url::home(); ?>" class="main"></a>
</div>
</header>
<section class="menu">
<div class="container">
<ul>
<li><a href="#">Бренды</a>
<div class="dropd_menu">
|
2d7ef064
Alexey Boroda
added menu and pr...
|
75
|
<div class="inline_dropb">
|
4ca21c3e
Alexey Boroda
first commit
|
76
|
<?php foreach ($brands as $brand) { ?>
|
2d7ef064
Alexey Boroda
added menu and pr...
|
77
78
|
<div class="idp_el"><a href="<?php
echo Url::to([
|
4ca21c3e
Alexey Boroda
first commit
|
79
80
|
'category/index',
'id' => $brand->category_id,
|
2d7ef064
Alexey Boroda
added menu and pr...
|
81
82
83
|
])
?>"><?php echo $brand->name; ?></a></div>
<?php } ?>
|
4ca21c3e
Alexey Boroda
first commit
|
84
85
86
87
|
</div>
<div style="clear:both;"></div>
</div>
</li>
|
60ea0065
Alexey Boroda
menu update
|
88
|
<li><a href="<?php echo Url::to([
|
55371b6c
Alexey Boroda
-Get all children...
|
89
90
|
'catalog/category',
'category' => 'brendy-oboev',
|
60ea0065
Alexey Boroda
menu update
|
91
|
]); ?>">Обои</a></li>
|
4556b430
Alexey Boroda
Changes:
|
92
|
<li><a href=" <?= Url::to(['catalog/category','category' => 'brendy-tekstilya']) ?>">Текстиль</a></li>
|
b224f0ae
Alexey Boroda
Changes:
|
93
94
95
|
<?php foreach ($main_menu as $page) { ?>
<li><a href="<?php echo Url::to(['site/page', 'id' => $page->id]); ?>"><?php echo $page->title; ?></a></li>
<?php } ?>
|
4ca21c3e
Alexey Boroda
first commit
|
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
</ul>
</div>
</section>
<div class="container cont">
<div class="col-md-12">
<?php
echo Breadcrumbs::widget([
'tag' => 'div',
'options' => [
'class' => 'nav_up',
],
'itemTemplate' => '{link} - ',
'activeItemTemplate' => '<span>{link}</span>',
'links' => isset( $this->params[ 'breadcrumbs' ] ) ? $this->params[ 'breadcrumbs' ] : [],
]);
?>
<?= $content ?>
</div>
</div>
<footer>
<div class="container">
<div class="col-md-3 fleft">
<p>© 2006 - 2015 Шоу-рум “BACCARA HOME”</p>
</div>
<div class="col-md-3 fcenter col-xs-6">
<ul>
|
60ea0065
Alexey Boroda
menu update
|
123
|
<li><a href="<?php echo Url::to(['site/page', 'id' => 2]); ?>">О нас</a></li>
|
4ca21c3e
Alexey Boroda
first commit
|
124
125
126
|
<li><a href="<?php echo Url::to('/new-collections'); ?>">Новые коллекции</a></li>
<li><a href="<?php echo Url::to('/article'); ?>">События</a></li>
<li><a href="<?php echo Url::to('/blog'); ?>">Блог</a></li>
|
60ea0065
Alexey Boroda
menu update
|
127
|
<li><a href="<?php echo Url::to(['site/page', 'id' => 9]); ?>">Контакты</a></li>
|
4ca21c3e
Alexey Boroda
first commit
|
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
</ul>
</div>
<div class="col-md-3">
</div>
<div class="col-md-3 fright col-xs-6">
<div class="socbuts">
<ul>
<li><a href="https://www.facebook.com/baccaraRoom/?fref=ts" target="_blank"><img src="/images/icon_fb.png"></a></li>
<li><a href="https://www.instagram.com/baccarahome/" target="_blank"><img src="/images/icon_inst.png"></a></li>
<li><a href="https://www.youtube.com/channel/UCr6GslF0IhlOwr7XlLsQAbw" target="_blank"><img src="/images/icon_yt.png"></a></li>
<li><a href="https://www.pinterest.com/baccarahome/?etslf=36773&eq=baccara%20home" target="_blank"><img src="/images/icon_pin.png"></a></li>
</ul>
</div>
<div class="hours">Часы работы<br/>
пн–пт: 10:00 – 19:30<br/>
сб: 11:00 – 18:00</div>
|
46c05e6c
Eugeny Galkovskiy
123
|
144
|
<div class="aw_logo">
|
bc5b4bf6
Eugeny Galkovskiy
123
|
145
|
<a href="#" target="_blank">Создание сайтов</a>
|
46c05e6c
Eugeny Galkovskiy
123
|
146
|
</div>
|
4ca21c3e
Alexey Boroda
first commit
|
147
148
149
150
151
152
153
|
</div>
</div>
</footer>
<?php $this->endBody(); ?>
</body>
</html>
<?php $this->endPage(); ?>
|