main.php
5.09 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
/**
* @var Category[] $brands_menu
* @var \yii\web\View $this
* @var string $content
*/
use common\modules\product\models\Category;
use frontend\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\Breadcrumbs;
$this->registerMetaTag([
'name' => 'robots',
'content' => 'noindex,nofollow',
]);
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">
<li><a href="<?php echo Url::to(['site/page', 'id' => 2]); ?>">О нас</a></li>
<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>
<li><a href="<?php echo Url::to(['site/page', 'id' => 5]); ?>">Контакты</a></li>
</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">
<div class="inline_dropb">
<?php foreach ($brands as $brand) { ?>
<div class="idp_el"><a href="<?php
echo Url::to([
'category/index',
'id' => $brand->category_id,
])
?>"><?php echo $brand->name; ?></a></div>
<?php } ?>
</div>
<div style="clear:both;"></div>
</div>
</li>
<li><a href="<?php echo Url::to([
'product/index',
'id' => 19,
]); ?>">Обои</a></li>
<li><a href=" <?= Url::to(['catalog/category','category' => 'brendy-tekstilya']) ?>">Текстиль</a></li>
<li><a href="<?php echo Url::to(['site/page', 'id' => 6]); ?>">Карнизы</a></li>
<li><a href="<?php echo Url::to(['site/page', 'id' => 7]); ?>">Напольные покрытия</a></li>
<li><a href="<?php echo Url::to(['site/page', 'id' => 8]); ?>">Contract Concept</a></li>
<li><a href="<?php echo Url::to(['site/page', 'id' => 9]); ?>">Мебель</a></li>
</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>
<li><a href="<?php echo Url::to(['site/page', 'id' => 2]); ?>">О нас</a></li>
<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>
<li><a href="<?php echo Url::to(['site/page', 'id' => 9]); ?>">Контакты</a></li>
</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>
</div>
</div>
</footer>
<?php $this->endBody(); ?>
</body>
</html>
<?php $this->endPage(); ?>