Commit 2cbb3bdcccf02743b6774a3b02529b1339c8257c
1 parent
d3f82b89
test commit
Showing
36 changed files
with
2281 additions
and
1548 deletions
Show diff stats
backend/controllers/ArticlesController.php
... | ... | @@ -81,7 +81,18 @@ class ArticlesController extends Controller |
81 | 81 | |
82 | 82 | if ($model->load(Yii::$app->request->post())) { |
83 | 83 | |
84 | - $model->save(); | |
84 | + if ( ($image = UploadedFile::getInstance($model, 'image')) ) { | |
85 | + $model->image = $image->name; | |
86 | + } | |
87 | + | |
88 | + $imgDir = Yii::getAlias('@storage/articles/'); | |
89 | + | |
90 | + if(!is_dir($imgDir)) { | |
91 | + mkdir($imgDir, 0755, true); | |
92 | + } | |
93 | + if ($model->save() && $image) { | |
94 | + $image->saveAs(Yii::getAlias('@storage/articles/' . $image->name)); | |
95 | + } | |
85 | 96 | |
86 | 97 | return $this->redirect(['view', 'id' => $model->id]); |
87 | 98 | } else { |
... | ... | @@ -102,7 +113,18 @@ class ArticlesController extends Controller |
102 | 113 | $model = $this->findModel($id); |
103 | 114 | |
104 | 115 | if ($model->load(Yii::$app->request->post())) { |
105 | - $model->save(); | |
116 | + if ( ($image = UploadedFile::getInstance($model, 'image')) ) { | |
117 | + $model->image = $image->name; | |
118 | + } | |
119 | + | |
120 | + $imgDir = Yii::getAlias('@storage/articles/'); | |
121 | + | |
122 | + if(!is_dir($imgDir)) { | |
123 | + mkdir($imgDir, 0755, true); | |
124 | + } | |
125 | + if ($model->save() && $image) { | |
126 | + $image->saveAs(Yii::getAlias('@storage/articles/' . $image->name)); | |
127 | + } | |
106 | 128 | |
107 | 129 | return $this->redirect(['view', 'id' => $model->id]); |
108 | 130 | } else { | ... | ... |
backend/controllers/SliderImageController.php
... | ... | @@ -85,7 +85,19 @@ class SliderImageController extends Controller |
85 | 85 | |
86 | 86 | if ($model->load(Yii::$app->request->post())) { |
87 | 87 | $model->slider_id = $slider_id; |
88 | - $model->save(); | |
88 | + if ( ($image = UploadedFile::getInstance($model, 'image')) ) { | |
89 | + $model->image = $image->name; | |
90 | + } | |
91 | + if ($model->save() && $image) { | |
92 | + | |
93 | + $imgDir = Yii::getAlias('@storage/slider/'); | |
94 | + | |
95 | + if(!is_dir($imgDir)) { | |
96 | + mkdir($imgDir, 0755, true); | |
97 | + } | |
98 | + | |
99 | + $image->saveAs(Yii::getAlias('@storage/slider/' . $image->name)); | |
100 | + } | |
89 | 101 | return $this->redirect(['view', 'slider_id'=>$slider_id, 'id' => $model->slider_image_id]); |
90 | 102 | } else { |
91 | 103 | |
... | ... | @@ -114,7 +126,23 @@ class SliderImageController extends Controller |
114 | 126 | |
115 | 127 | |
116 | 128 | |
117 | - $model->save(); | |
129 | + if ( ($image = UploadedFile::getInstance($model, 'image')) ) { | |
130 | + $model->image = $image->name; | |
131 | + } | |
132 | + | |
133 | + if(!$model->image){ | |
134 | + $model->image = $model->getOldAttribute('image'); | |
135 | + } | |
136 | + | |
137 | + if ($model->save() && $image) { | |
138 | + $imgDir = Yii::getAlias('@storage/slider/'); | |
139 | + | |
140 | + if(!is_dir($imgDir)) { | |
141 | + mkdir($imgDir, 0755, true); | |
142 | + } | |
143 | + | |
144 | + $image->saveAs(Yii::getAlias('@storage/slider/' . $image->name)); | |
145 | + } | |
118 | 146 | return $this->redirect(['view', 'slider_id'=>$slider_id, 'id' => $model->slider_image_id]); |
119 | 147 | } else { |
120 | 148 | ... | ... |
backend/views/banner/_form.php
... | ... | @@ -12,10 +12,7 @@ use yii\widgets\ActiveForm; |
12 | 12 | |
13 | 13 | <div class="banner-form"> |
14 | 14 | |
15 | - <?php $form = ActiveForm::begin([ | |
16 | - 'enableClientValidation' => false, | |
17 | - 'options' => ['enctype' => 'multipart/form-data'] | |
18 | - ]); ?> | |
15 | + <?php $form = ActiveForm::begin(); ?> | |
19 | 16 | |
20 | 17 | |
21 | 18 | <?= $form->field($model, 'alt')->textInput(['maxlength' => true]) ?> |
... | ... | @@ -34,24 +31,27 @@ use yii\widgets\ActiveForm; |
34 | 31 | ] |
35 | 32 | ])) ?> |
36 | 33 | |
34 | + <?= $form->field($model, 'width')->textInput(['maxlength' => true]) ?> | |
37 | 35 | |
38 | - <div id="image_widget_block"> | |
36 | + <?= $form->field($model, 'height')->textInput(['maxlength' => true]) ?> | |
37 | + | |
38 | + <p id="save_image_widget_settings" class = "btn btn-primary" >Применить настройки</p> | |
39 | 39 | |
40 | - <?= $form->field($model, 'image')->widget(\kartik\file\FileInput::classname(), [ | |
41 | - 'language' => 'ru', | |
42 | - 'options' => [ | |
43 | - 'accept' => 'image/*', | |
44 | - 'multiple' => false, | |
45 | - ], | |
46 | - 'pluginOptions' => [ | |
47 | - 'allowedFileExtensions' => ['jpg', 'gif', 'png'], | |
48 | - 'initialPreview' => !empty($model->imageUrl) ? \common\components\artboximage\ArtboxImageHelper::getImage($model->imageUrl, 'list') : '', | |
49 | - 'overwriteInitial' => true, | |
50 | - 'showRemove' => false, | |
51 | - 'showUpload' => false, | |
52 | - 'previewFileType' => 'image', | |
53 | - ], | |
54 | - ]); ?> | |
40 | + <div id="image_widget_block"> | |
41 | + <?php if(!empty($model->image)){ | |
42 | + echo ImageUploader::widget([ | |
43 | + 'model'=> $model, | |
44 | + 'field'=>'image', | |
45 | + 'size' => [ | |
46 | + [ | |
47 | + 'width'=>$model->width, | |
48 | + 'height'=>$model->height, | |
49 | + ], | |
50 | + ], | |
51 | + 'gallery' =>$model->image, | |
52 | + 'name' => "Загрузить баннер" | |
53 | + ]); | |
54 | + }?> | |
55 | 55 | </div> |
56 | 56 | |
57 | 57 | <div class="form-group"> | ... | ... |
backend/views/bg/_form.php
... | ... | @@ -10,30 +10,13 @@ use yii\widgets\ActiveForm; |
10 | 10 | |
11 | 11 | <div class="bg-form"> |
12 | 12 | |
13 | - <?php $form = ActiveForm::begin([ | |
14 | - 'enableClientValidation' => false, | |
15 | - 'options' => ['enctype' => 'multipart/form-data'] | |
16 | - ]); ?> | |
13 | + <?php $form = ActiveForm::begin(); ?> | |
17 | 14 | |
18 | 15 | <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?> |
19 | 16 | |
20 | 17 | <?= $form->field($model, 'url')->textInput(['maxlength' => true]) ?> |
21 | 18 | |
22 | - <?= $form->field($model, 'image')->widget(\kartik\file\FileInput::classname(), [ | |
23 | - 'language' => 'ru', | |
24 | - 'options' => [ | |
25 | - 'accept' => 'image/*', | |
26 | - 'multiple' => false, | |
27 | - ], | |
28 | - 'pluginOptions' => [ | |
29 | - 'allowedFileExtensions' => ['jpg', 'gif', 'png'], | |
30 | - 'initialPreview' => !empty($model->imageUrl) ? \common\components\artboximage\ArtboxImageHelper::getImage($model->imageUrl, 'list') : '', | |
31 | - 'overwriteInitial' => true, | |
32 | - 'showRemove' => false, | |
33 | - 'showUpload' => false, | |
34 | - 'previewFileType' => 'image', | |
35 | - ], | |
36 | - ]); ?> | |
19 | + <?= $form->field($model, 'image')->textInput(['maxlength' => true]) ?> | |
37 | 20 | |
38 | 21 | <div class="form-group"> |
39 | 22 | <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | ... | ... |
backend/views/brand/_form.php
... | ... | @@ -43,8 +43,6 @@ use yii\widgets\ActiveForm; |
43 | 43 | |
44 | 44 | <?= $form->field($model, 'seo_text')->textarea(['rows' => 6]) ?> |
45 | 45 | |
46 | - <?= $form->field($model, 'in_menu')->checkbox()?> | |
47 | - | |
48 | 46 | <div class="form-group"> |
49 | 47 | <?= Html::submitButton($model->isNewRecord ? Yii::t('product', 'Create') : Yii::t('product', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
50 | 48 | <?php if ($model->isNewRecord) :?> | ... | ... |
backend/views/brand/index.php
1 | 1 | <?php |
2 | 2 | |
3 | -use common\components\artboximage\ArtboxImageHelper; | |
4 | 3 | use yii\helpers\Html; |
5 | 4 | use yii\grid\GridView; |
6 | 5 | |
... | ... | @@ -28,10 +27,10 @@ $this->params['breadcrumbs'][] = $this->title; |
28 | 27 | 'name', |
29 | 28 | 'alias', |
30 | 29 | [ |
31 | - 'attribute' => 'image', | |
32 | - 'format' => 'image', | |
30 | + 'attribute' => 'title', | |
31 | + 'format' => 'html', | |
33 | 32 | 'value' => function($data) { |
34 | - return ArtboxImageHelper::getImageSrc($data->imageUrl, 'brand_item'); | |
33 | + return Html::img($data->imageUrl, ['width'=>'100']); | |
35 | 34 | }, |
36 | 35 | ], |
37 | 36 | ... | ... |
backend/views/customer/_form.php
... | ... | @@ -12,10 +12,11 @@ use yii\widgets\ActiveForm; |
12 | 12 | |
13 | 13 | <?php $form = ActiveForm::begin(); ?> |
14 | 14 | |
15 | + <?= $form->field($model, 'id')->textInput() ?> | |
15 | 16 | |
16 | 17 | <?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?> |
17 | 18 | |
18 | - | |
19 | + <?= $form->field($model, 'password')->passwordInput(['maxlength' => true]) ?> | |
19 | 20 | |
20 | 21 | <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> |
21 | 22 | |
... | ... | @@ -25,6 +26,8 @@ use yii\widgets\ActiveForm; |
25 | 26 | |
26 | 27 | <?= $form->field($model, 'date_time')->textInput() ?> |
27 | 28 | |
29 | + <?= $form->field($model, 'sex')->textInput(['maxlength' => true]) ?> | |
30 | + | |
28 | 31 | <?= $form->field($model, 'birth_day')->textInput() ?> |
29 | 32 | |
30 | 33 | <?= $form->field($model, 'birth_month')->textInput() ?> | ... | ... |
backend/views/customer/index.php
backend/views/slider-image/_form.php
... | ... | @@ -16,7 +16,6 @@ use yii\widgets\ActiveForm; |
16 | 16 | |
17 | 17 | <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?> |
18 | 18 | |
19 | - | |
20 | 19 | <?= $form->field($model, 'image')->widget(\kartik\file\FileInput::classname(), [ |
21 | 20 | 'model' => $model, |
22 | 21 | 'attribute' => 'image', | ... | ... |
common/behaviors/SaveImgBehavior.php deleted
1 | -<?php | |
2 | - | |
3 | -namespace common\behaviors; | |
4 | - | |
5 | -use common\modules\comment\models\CommentModel; | |
6 | -use yii\base\Behavior; | |
7 | -use yii\db\ActiveRecord; | |
8 | -use yii\web\UploadedFile; | |
9 | -/** | |
10 | - * Class RatingBehavior | |
11 | - * @property CommentModel $owner | |
12 | - * @package common\behaviors | |
13 | - */ | |
14 | -class SaveImgBehavior extends Behavior | |
15 | -{ | |
16 | - | |
17 | - | |
18 | - public $directory; | |
19 | - | |
20 | - public function events() | |
21 | - { | |
22 | - return [ | |
23 | - ActiveRecord::EVENT_BEFORE_UPDATE => 'beforeUpdate', | |
24 | - ActiveRecord::EVENT_BEFORE_INSERT => 'beforeInsert', | |
25 | - ]; | |
26 | - } | |
27 | - | |
28 | - public function beforeUpdate($event) | |
29 | - { | |
30 | - | |
31 | - | |
32 | - if ( ($image = UploadedFile::getInstance($this->owner, 'image')) ) { | |
33 | - $this->owner->image = $image->name; | |
34 | - } | |
35 | - | |
36 | - if(!$this->owner->image){ | |
37 | - $this->owner->image = $this->owner->getOldAttribute('image'); | |
38 | - } | |
39 | - | |
40 | - | |
41 | - if ($image) { | |
42 | - $imgDir = \Yii::getAlias('@storage/'.$this->directory.'/'); | |
43 | - | |
44 | - if(!is_dir($imgDir)) { | |
45 | - mkdir($imgDir, 0755, true); | |
46 | - } | |
47 | - | |
48 | - $image->saveAs(\Yii::getAlias('@storage/'.$this->directory.'/' . $image->name)); | |
49 | - } | |
50 | - } | |
51 | - | |
52 | - | |
53 | - public function beforeInsert($event) | |
54 | - { | |
55 | - | |
56 | - | |
57 | - if ( ($image = UploadedFile::getInstance($this->owner, 'image')) ) { | |
58 | - $this->owner->image = $image->name; | |
59 | - } | |
60 | - | |
61 | - | |
62 | - | |
63 | - if ($image) { | |
64 | - $imgDir = \Yii::getAlias('@storage/'.$this->directory.'/'); | |
65 | - | |
66 | - if(!is_dir($imgDir)) { | |
67 | - mkdir($imgDir, 0755, true); | |
68 | - } | |
69 | - | |
70 | - $image->saveAs(\Yii::getAlias('@storage/'.$this->directory.'/' . $image->name)); | |
71 | - } | |
72 | - } | |
73 | - | |
74 | - | |
75 | - | |
76 | - public function getImageFile() { | |
77 | - return empty($this->owner->image) ? null : '/storage/'.$this->directory.'/'. $this->owner->image; | |
78 | - } | |
79 | - | |
80 | - public function getImageUrl() { | |
81 | - return empty($this->owner->image) ? null : '/storage/'.$this->directory.'/'. $this->owner->image; | |
82 | - } | |
83 | -} | |
84 | 0 | \ No newline at end of file |
common/config/main.php
... | ... | @@ -97,8 +97,8 @@ return [ |
97 | 97 | ], |
98 | 98 | 'slider' => [ |
99 | 99 | 'resize' => [ |
100 | - 'width' => 1400, | |
101 | - 'height' => 600, | |
100 | + 'width' => 1920, | |
101 | + 'height' => 420, | |
102 | 102 | 'master' => null |
103 | 103 | ], |
104 | 104 | ], |
... | ... | @@ -118,11 +118,15 @@ return [ |
118 | 118 | ], |
119 | 119 | 'brand_item' => [ |
120 | 120 | 'resize' => [ |
121 | - 'width' => 125, | |
122 | - 'height' => 54, | |
121 | + 'width' => 150, | |
122 | + 'height' => 150, | |
123 | + 'master' => null | |
124 | + ], | |
125 | + 'crop' => [ | |
126 | + 'width' => 150, | |
127 | + 'height' => 150, | |
123 | 128 | 'master' => null |
124 | 129 | ], |
125 | - | |
126 | 130 | ], |
127 | 131 | 'mainmenu' => [ |
128 | 132 | 'resize' => [ | ... | ... |
common/models/Articles.php
... | ... | @@ -3,7 +3,6 @@ |
3 | 3 | namespace common\models; |
4 | 4 | |
5 | 5 | use common\behaviors\RatingBehavior; |
6 | -use common\behaviors\SaveImgBehavior; | |
7 | 6 | use common\modules\comment\models\CommentModel; |
8 | 7 | use Yii; |
9 | 8 | |
... | ... | @@ -34,18 +33,12 @@ class Articles extends \yii\db\ActiveRecord |
34 | 33 | return 'articles'; |
35 | 34 | } |
36 | 35 | |
37 | - | |
38 | - | |
39 | 36 | /** |
40 | 37 | * @inheritdoc |
41 | 38 | */ |
42 | 39 | public function behaviors() |
43 | 40 | { |
44 | 41 | return [ |
45 | - [ | |
46 | - 'class' => SaveImgBehavior::className(), | |
47 | - 'directory' => 'articles' | |
48 | - ], | |
49 | 42 | 'slug' => [ |
50 | 43 | 'class' => 'common\behaviors\Slug', |
51 | 44 | 'in_attribute' => 'title', |
... | ... | @@ -91,6 +84,15 @@ class Articles extends \yii\db\ActiveRecord |
91 | 84 | ]; |
92 | 85 | } |
93 | 86 | |
87 | + public function getImageFile() { | |
88 | + return empty($this->image) ? null : Yii::getAlias('@imagesDir/articles/'. $this->image); | |
89 | + } | |
90 | + | |
91 | + public function getImageUrl() | |
92 | + { | |
93 | + return empty($this->image) ? null : Yii::getAlias('@imagesUrl/articles/' . $this->image); | |
94 | + } | |
95 | + | |
94 | 96 | public function recalculateRating() { |
95 | 97 | /** |
96 | 98 | * @var ArticleToRating $averageRating | ... | ... |
common/models/Banner.php
... | ... | @@ -2,7 +2,6 @@ |
2 | 2 | |
3 | 3 | namespace common\models; |
4 | 4 | |
5 | -use common\behaviors\SaveImgBehavior; | |
6 | 5 | use Yii; |
7 | 6 | |
8 | 7 | /** |
... | ... | @@ -27,21 +26,6 @@ class Banner extends \yii\db\ActiveRecord |
27 | 26 | return 'banner'; |
28 | 27 | } |
29 | 28 | |
30 | - | |
31 | - | |
32 | - /** | |
33 | - * @inheritdoc | |
34 | - */ | |
35 | - public function behaviors() | |
36 | - { | |
37 | - return [ | |
38 | - [ | |
39 | - 'class' => SaveImgBehavior::className(), | |
40 | - 'directory' => 'banner' | |
41 | - ], | |
42 | - ]; | |
43 | - } | |
44 | - | |
45 | 29 | /** |
46 | 30 | * @inheritdoc |
47 | 31 | */ | ... | ... |
common/models/Basket.php
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 | parent::__construct($config); |
21 | 21 | } |
22 | 22 | |
23 | - public function add(int $product_variant_id, int $count) | |
23 | + public function add( $product_variant_id, $count) | |
24 | 24 | { |
25 | 25 | $data = $this->getData(); |
26 | 26 | if(array_key_exists($product_variant_id, $data)) { |
... | ... | @@ -38,7 +38,7 @@ |
38 | 38 | $this->setData($data); |
39 | 39 | } |
40 | 40 | |
41 | - public function set(int $product_variant_id, int $count) | |
41 | + public function set( $product_variant_id, $count) | |
42 | 42 | { |
43 | 43 | $data = $this->getData(); |
44 | 44 | if(array_key_exists($product_variant_id, $data)) { |
... | ... | @@ -56,12 +56,12 @@ |
56 | 56 | $this->setData($data); |
57 | 57 | } |
58 | 58 | |
59 | - public function getData(): array | |
59 | + public function getData() | |
60 | 60 | { |
61 | 61 | return $this->session->get('basket'); |
62 | 62 | } |
63 | 63 | |
64 | - public function getItem(int $product_variant_id) { | |
64 | + public function getItem( $product_variant_id) { | |
65 | 65 | $data = $this->getData(); |
66 | 66 | if(!empty($data[$product_variant_id])) { |
67 | 67 | return $data[$product_variant_id]; |
... | ... | @@ -75,7 +75,7 @@ |
75 | 75 | $this->session->set('basket', $data); |
76 | 76 | } |
77 | 77 | |
78 | - public function getSum(): float | |
78 | + public function getSum() | |
79 | 79 | { |
80 | 80 | $data = $this->getData(); |
81 | 81 | $sum = 0; |
... | ... | @@ -85,12 +85,12 @@ |
85 | 85 | return $sum; |
86 | 86 | } |
87 | 87 | |
88 | - public function getCount(): int { | |
88 | + public function getCount() { | |
89 | 89 | $data = $this->getData(); |
90 | 90 | return count($data); |
91 | 91 | } |
92 | 92 | |
93 | - public function findModel(int $product_variant_id): ProductVariant | |
93 | + public function findModel( $product_variant_id) | |
94 | 94 | { |
95 | 95 | $model = ProductVariant::find() |
96 | 96 | ->where([ 'product_variant_id' => $product_variant_id ]) | ... | ... |
common/models/Bg.php
... | ... | @@ -2,8 +2,6 @@ |
2 | 2 | |
3 | 3 | namespace common\models; |
4 | 4 | |
5 | -use common\behaviors\SaveImgBehavior; | |
6 | - | |
7 | 5 | class Bg extends \yii\db\ActiveRecord |
8 | 6 | { |
9 | 7 | public $old_image; |
... | ... | @@ -12,20 +10,7 @@ class Bg extends \yii\db\ActiveRecord |
12 | 10 | { |
13 | 11 | return 'bg'; |
14 | 12 | } |
15 | - | |
16 | - /** | |
17 | - * @inheritdoc | |
18 | - */ | |
19 | - public function behaviors() | |
20 | - { | |
21 | - return [ | |
22 | - [ | |
23 | - 'class' => SaveImgBehavior::className(), | |
24 | - 'directory' => 'bg' | |
25 | - ], | |
26 | - ]; | |
27 | - } | |
28 | - | |
13 | + | |
29 | 14 | public function rules() |
30 | 15 | { |
31 | 16 | return [ | ... | ... |
common/models/Customer.php
... | ... | @@ -88,6 +88,30 @@ class Customer extends User implements \yii\web\IdentityInterface |
88 | 88 | /** |
89 | 89 | * @return \yii\db\ActiveQuery |
90 | 90 | */ |
91 | + public function getArtboxComments() | |
92 | + { | |
93 | + return $this->hasMany(ArtboxComment::className(), ['user_id' => 'id']); | |
94 | + } | |
95 | + | |
96 | + /** | |
97 | + * @return \yii\db\ActiveQuery | |
98 | + */ | |
99 | + public function getArtboxCommentRatings() | |
100 | + { | |
101 | + return $this->hasMany(ArtboxCommentRating::className(), ['user_id' => 'id']); | |
102 | + } | |
103 | + | |
104 | + /** | |
105 | + * @return \yii\db\ActiveQuery | |
106 | + */ | |
107 | + public function getArtboxLikes() | |
108 | + { | |
109 | + return $this->hasMany(ArtboxLike::className(), ['user_id' => 'id']); | |
110 | + } | |
111 | + | |
112 | + /** | |
113 | + * @return \yii\db\ActiveQuery | |
114 | + */ | |
91 | 115 | public function getShares() |
92 | 116 | { |
93 | 117 | return $this->hasMany(Share::className(), ['user_id' => 'id']); | ... | ... |
common/models/CustomerSearch.php
... | ... | @@ -18,12 +18,8 @@ class CustomerSearch extends Customer |
18 | 18 | public function rules() |
19 | 19 | { |
20 | 20 | return [ |
21 | - [['date_time'], 'safe'], | |
22 | - [['birth_day', 'birth_month', 'birth_year', 'group_id', 'status', 'created_at', 'updated_at'], 'integer'], | |
23 | - [['body'], 'string'], | |
24 | - [['status'],'default', 'value' => '10'], | |
25 | - [['username', 'name', 'surname', 'phone', 'email', 'password_reset_token','username', 'password_hash'], 'string', 'max' => 255], | |
26 | - [['gender', 'auth_key'], 'string', 'max' => 32], | |
21 | + [['id', 'birth_day', 'birth_month', 'birth_year', 'group_id'], 'integer'], | |
22 | + [['username', 'password', 'name', 'surname', 'phone', 'date_time', 'sex', 'body'], 'safe'], | |
27 | 23 | ]; |
28 | 24 | } |
29 | 25 | |
... | ... | @@ -72,9 +68,11 @@ class CustomerSearch extends Customer |
72 | 68 | ]); |
73 | 69 | |
74 | 70 | $query->andFilterWhere(['like', 'username', $this->username]) |
71 | + ->andFilterWhere(['like', 'password', $this->password]) | |
75 | 72 | ->andFilterWhere(['like', 'name', $this->name]) |
76 | 73 | ->andFilterWhere(['like', 'surname', $this->surname]) |
77 | 74 | ->andFilterWhere(['like', 'phone', $this->phone]) |
75 | + ->andFilterWhere(['like', 'sex', $this->sex]) | |
78 | 76 | ->andFilterWhere(['like', 'body', $this->body]); |
79 | 77 | |
80 | 78 | return $dataProvider; | ... | ... |
common/models/SliderImage.php
... | ... | @@ -2,7 +2,6 @@ |
2 | 2 | |
3 | 3 | namespace common\models; |
4 | 4 | |
5 | -use common\behaviors\SaveImgBehavior; | |
6 | 5 | use Yii; |
7 | 6 | |
8 | 7 | /** |
... | ... | @@ -21,23 +20,6 @@ use Yii; |
21 | 20 | */ |
22 | 21 | class SliderImage extends \yii\db\ActiveRecord |
23 | 22 | { |
24 | - | |
25 | - | |
26 | - | |
27 | - /** | |
28 | - * @inheritdoc | |
29 | - */ | |
30 | - public function behaviors() | |
31 | - { | |
32 | - return [ | |
33 | - [ | |
34 | - 'class' => SaveImgBehavior::className(), | |
35 | - 'directory' => 'slider' | |
36 | - ] | |
37 | - ]; | |
38 | - } | |
39 | - | |
40 | - | |
41 | 23 | /** |
42 | 24 | * @inheritdoc |
43 | 25 | */ |
... | ... | @@ -75,8 +57,6 @@ class SliderImage extends \yii\db\ActiveRecord |
75 | 57 | ]; |
76 | 58 | } |
77 | 59 | |
78 | - | |
79 | - | |
80 | 60 | /** |
81 | 61 | * @return \yii\db\ActiveQuery |
82 | 62 | */ |
... | ... | @@ -85,6 +65,12 @@ class SliderImage extends \yii\db\ActiveRecord |
85 | 65 | return $this->hasOne(Slider::className(), ['slider_id' => 'slider_id']); |
86 | 66 | } |
87 | 67 | |
68 | + public function getImageFile() { | |
69 | + return empty($this->image) ? null : '/storage/slider/'. $this->image; | |
70 | + } | |
88 | 71 | |
72 | + public function getImageUrl() { | |
73 | + return empty($this->image) ? null : '/storage/slider/'. $this->image; | |
74 | + } | |
89 | 75 | |
90 | 76 | } | ... | ... |
common/modules/comment/widgets/CommentWidget.php
... | ... | @@ -270,7 +270,7 @@ |
270 | 270 | * @return CommentInterface Comment model |
271 | 271 | * @throws InvalidConfigException If object not instance of \yii\base\Model |
272 | 272 | */ |
273 | - protected function createModel(string $className, array $config = [ ]): CommentInterface | |
273 | + protected function createModel( $className, $config = [ ]) | |
274 | 274 | { |
275 | 275 | $options = array_merge($config, [ 'class' => $className ]); |
276 | 276 | $object = Yii::createObject($options); |
... | ... | @@ -289,7 +289,7 @@ |
289 | 289 | * @return CommentInterface Comment model |
290 | 290 | * @throws InvalidConfigException If object not instance of \yii\base\Model |
291 | 291 | */ |
292 | - protected function createRating(string $className, array $config = [ ]): RatingModel | |
292 | + protected function createRating( $className, $config = [ ]) | |
293 | 293 | { |
294 | 294 | $options = array_merge($config, [ 'class' => $className ]); |
295 | 295 | $object = Yii::createObject($options); |
... | ... | @@ -340,7 +340,7 @@ |
340 | 340 | /** |
341 | 341 | * @return string |
342 | 342 | */ |
343 | - protected function renderWidget(): string | |
343 | + protected function renderWidget() | |
344 | 344 | { |
345 | 345 | $layout = $this->layout; |
346 | 346 | $parts = $this->parts; | ... | ... |
common/modules/product/models/Brand.php
... | ... | @@ -60,7 +60,6 @@ class Brand extends \yii\db\ActiveRecord |
60 | 60 | return [ |
61 | 61 | [['name'], 'string'], |
62 | 62 | [['brand_name_id'], 'integer'], |
63 | - [['in_menu'], 'boolean'], | |
64 | 63 | [['meta_desc', 'seo_text'], 'string'], |
65 | 64 | [['alias', 'name'], 'string', 'max' => 250], |
66 | 65 | [['meta_title', 'image'], 'string', 'max' => 255], |
... | ... | @@ -86,7 +85,6 @@ class Brand extends \yii\db\ActiveRecord |
86 | 85 | 'meta_desc' => Yii::t('product', 'Meta Desc'), |
87 | 86 | 'meta_robots' => Yii::t('product', 'Meta Robots'), |
88 | 87 | 'seo_text' => Yii::t('product', 'Seo Text'), |
89 | - 'in_menu' => Yii::t('product', 'Выводить в меню'), | |
90 | 88 | ]; |
91 | 89 | } |
92 | 90 | ... | ... |
common/modules/product/widgets/views/product_smart.php
... | ... | @@ -9,84 +9,61 @@ use yii\helpers\Url; |
9 | 9 | <div class="wrapper"> |
10 | 10 | <div class="item_container" > |
11 | 11 | <input class="prodInfo" type="hidden" value="[]"> |
12 | - <div class="title"> | |
13 | - <?= Html::a( $product->name, Url::to(['catalog/product', 'product' => $product->alias]), ['class'=>'btn-product-details'] )?> | |
14 | - </div> | |
12 | + | |
15 | 13 | <div class="img"> |
16 | 14 | <a class="btn-product-details" href="<?= Url::to([ |
17 | 15 | 'catalog/product', |
18 | 16 | 'product' => $product->alias |
19 | 17 | ]) ?>"> |
20 | 18 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($product->enabledVariants[ 0 ]->imageUrl, 'list', [ |
21 | - 'alt' => $product->category->name . ' ' . $product->fullname, | |
22 | - 'title' => $product->category->name . ' ' . $product->fullname, | |
19 | + 'alt' => $product->fullname . ' ' . $product->category->name, | |
20 | + 'title' => $product->fullname . ' ' . $product->category->name, | |
23 | 21 | 'class' => 'selected' |
24 | 22 | ]) ?> |
25 | 23 | </a> |
26 | - <div class="info_icons"> | |
27 | - <a href="#" class="btn buy_button" data-toggle="modal" data-target="#buyForm" data-id="<?=$product->variant->product_variant_id; ?>" lang="145">Купить</a> | |
28 | - <ul class="ul wishlike_block hidden"> | |
29 | - <li class="compare hidden"> | |
30 | - <a onclick="add2compare(); return false;" class="compare compare_text_link_3631483" href="#">К сравнению</a> | |
31 | - <span class="icon"></span> | |
32 | - </li> | |
33 | - <li class="like hidden"> | |
34 | - <a class="like like_text_link_3631483" href="#">В избранное</a><span class="icon"></span> | |
35 | - </li> | |
36 | - </ul> | |
37 | - </div> | |
38 | 24 | </div> |
39 | - <div class="price"> | |
40 | - <div class="dlexfduinxipi"> | |
41 | - Цена: | |
42 | - <span class="main"> | |
43 | - <?= $product->variant->price ?> | |
44 | - <span class="currency">грн</span> | |
45 | - </span> | |
46 | - </div> | |
47 | - </div> | |
48 | - <div class="additional_info params"> | |
49 | - <div class="block_title">Особенности</div> | |
50 | - <div class="descr"> | |
51 | - <div class="info"> | |
52 | - <ul class="sv"> | |
53 | - | |
54 | - <li><span>Бренд:</span> <?= $product->brand->name ?></li> | |
55 | - | |
56 | - <?php foreach($product->getActiveProperties($product->category->category_id) as $group): ?> | |
57 | - <li><span><?= $group->name ?> <?php foreach($group->_options as $option) : ?> </span><?= $option->ValueRenderHTML ?><?php endforeach ?></li> | |
58 | - <?php endforeach; ?> | |
59 | 25 | |
26 | + <div class="style short-desc_wr"> | |
27 | + <div class="style title-name_"> | |
28 | + <a href="<?= Url::to([ | |
29 | + 'catalog/product', | |
30 | + 'product' => $product->alias | |
31 | + ]) ?>" title="<?= $product->fullname . ' ' . $product->category->name ?>"> | |
32 | + <p><span><?= $product->fullname ?></span></p> | |
33 | + <p><span><?= $product->category->name ?></span></p> | |
34 | + </a> | |
60 | 35 | |
61 | - </ul> | |
36 | + </div> | |
37 | + <div class="style in_stock_wr"> | |
38 | + <div class="in_stock_"> | |
39 | + <span class="yes_stock">есть на складе</span> | |
40 | + <!--если нет в наличии выводить блок тот что ниже--> | |
41 | +<!-- <span class="no_stock">нет на складе</span>--> | |
42 | + </div> | |
43 | + <div class="title-sku"> | |
44 | + <span>Код: <?=$product->variant->sku?></span> | |
62 | 45 | </div> |
63 | - <div class="clearfix"></div> | |
64 | 46 | </div> |
65 | - <div class="price" style="display: none;"> | |
66 | - <div class="dlexfduinxipi"> | |
67 | - Цена: | |
68 | - <span class="main"> | |
69 | - <?php | |
70 | - | |
71 | - echo '<div class="cost-block" itemprop="offers" itemscope itemtype="http://schema.org/Offer">'; | |
72 | - | |
73 | - // есть скидка | |
74 | - echo '<p class="cost">'; | |
75 | - if($product->enabledVariants[ 0 ]->price_old != 0 && $product->enabledVariants[ 0 ]->price_old != $product->enabledVariants[ 0 ]->price) { | |
76 | - echo '<strike><span id=\'old_cost\' itemprop="price">' . $product->enabledVariants[0]->price_old . '</span> грн.</strike> '; | |
77 | - echo $product->enabledVariants[0]->price . ' <span>грн.</span></p>'; | |
78 | - } else { | |
79 | - echo '<span itemprop="price">'.$product->enabledVariants[0]->price . ' </span><span>грн.</span></p>'; | |
80 | - } | |
81 | - echo '<meta itemprop="priceCurrency" content = "UAH">'; | |
82 | - echo '</div>'; | |
83 | 47 | |
84 | - ?> | |
85 | - </span> | |
86 | - </div> | |
48 | + <div class="style price-basket-wr"> | |
49 | + <span class="currency_price"><?= $product->variant->price ?> грн</span> | |
50 | + <div class="price-basket"><a class="" href="#"></a></div> | |
87 | 51 | </div> |
88 | 52 | </div> |
89 | - <div class="opacity_bg"></div> | |
53 | + | |
54 | + <!-- <div class="info_icons">--> | |
55 | + <!-- <a href="#" class="btn buy_button" data-toggle="modal" data-target="#buyForm" data-id="--><?//=$product->variant->product_variant_id; ?><!--" lang="145">Купить</a>--> | |
56 | + <!-- <ul class="ul wishlike_block hidden">--> | |
57 | + <!-- <li class="compare hidden">--> | |
58 | + <!-- <a onclick="add2compare(); return false;" class="compare compare_text_link_3631483" href="#">К сравнению</a>--> | |
59 | + <!-- <span class="icon"></span>--> | |
60 | + <!-- </li>--> | |
61 | + <!-- <li class="like hidden">--> | |
62 | + <!-- <a class="like like_text_link_3631483" href="#">В избранное</a><span class="icon"></span>--> | |
63 | + <!-- </li>--> | |
64 | + <!-- </ul>--> | |
65 | + <!-- </div>--> | |
66 | + | |
90 | 67 | </div> |
91 | 68 | </div> |
92 | 69 | </div> |
93 | 70 | \ No newline at end of file | ... | ... |
common/modules/product/widgets/views/products_block.php
... | ... | @@ -4,28 +4,40 @@ use yii\web\View; |
4 | 4 | <?php if(!empty($products)) :?> |
5 | 5 | <div class="_prd_spec-wr"> |
6 | 6 | <div class="special-products products<?= (!empty($class) ? ' '. $class : '')?>"> |
7 | - <span style="text-align: center; | |
8 | - text-transform: uppercase; | |
9 | - font-size: 20px; display: block; | |
10 | - -webkit-margin-before: 1em; | |
11 | - -webkit-margin-after: 1em; | |
12 | - -webkit-margin-start: 0px; | |
13 | - -webkit-margin-end: 0px; | |
14 | - font-weight: bold;"><?= $title?></span> | |
15 | - <div id="<?=$class?>"> | |
16 | - <?php foreach($products as $product) :?> | |
17 | - <?= $this->render('product_smart', ['product' => $product]);?> | |
18 | - <?php endforeach?> | |
7 | + | |
8 | + <div class="row home-popular-wr"> | |
9 | + <ul class="home-popular col-md-11"> | |
10 | + <li class="active"><a href="#">Новинки</a></li> | |
11 | + <li><a href="#">Хит продаж</a></li> | |
12 | + <li><a href="#">Акции</a></li> | |
13 | + </ul> | |
14 | + </div> | |
15 | +<!-- <span style="">--><?//= $title?><!--</span>--> | |
16 | + <div class="row home-popular-slider"> | |
17 | + <div id="<?=$class?>" class=""> | |
18 | + <?php foreach($products as $product) :?> | |
19 | + <?= $this->render('product_smart', ['product' => $product]);?> | |
20 | + <?php endforeach?> | |
21 | + </div> | |
19 | 22 | </div> |
20 | - <div class="both"></div> | |
23 | + | |
21 | 24 | </div> |
22 | 25 | </div> |
23 | 26 | <?php $js = "$('#$class').owlCarousel({ |
24 | 27 | navigation:true, |
25 | -navigationText: [] | |
28 | +navigationText: [], | |
29 | +responsiveClass: true, | |
30 | + loop:true, | |
31 | + items:4, | |
32 | + mouseDrag:false, | |
33 | + responsiveClass: true, | |
34 | + navSpeed:200, | |
35 | + | |
26 | 36 | }) |
27 | - | |
28 | 37 | "; |
38 | + | |
39 | + | |
29 | 40 | $this->registerJs($js, View::POS_READY); |
30 | 41 | ?> |
31 | -<?php endif?> | |
32 | 42 | \ No newline at end of file |
43 | +<?php endif?> | |
44 | + | ... | ... |
composer.json
frontend/assets/AppAsset.php
frontend/controllers/CatalogController.php
... | ... | @@ -164,19 +164,19 @@ class CatalogController extends \yii\web\Controller |
164 | 164 | ]); |
165 | 165 | } |
166 | 166 | |
167 | -// public function actionBrands() | |
168 | -// { | |
169 | -// $dataProvider = new ActiveDataProvider([ | |
170 | -// 'query' => Brand::find()->orderBy('name'), | |
171 | -// 'pagination' => [ | |
172 | -// 'pageSize' => -1, | |
173 | -// ] | |
174 | -// ]); | |
175 | -// | |
176 | -// return $this->render('brands', [ | |
177 | -// 'dataProvider' => $dataProvider, | |
178 | -// ]); | |
179 | -// } | |
167 | + public function actionBrands() | |
168 | + { | |
169 | + $dataProvider = new ActiveDataProvider([ | |
170 | + 'query' => Brand::find()->orderBy('name'), | |
171 | + 'pagination' => [ | |
172 | + 'pageSize' => -1, | |
173 | + ] | |
174 | + ]); | |
175 | + | |
176 | + return $this->render('brands', [ | |
177 | + 'dataProvider' => $dataProvider, | |
178 | + ]); | |
179 | + } | |
180 | 180 | |
181 | 181 | public function actionBrand($brand) |
182 | 182 | { | ... | ... |
frontend/views/catalog/brand.php deleted
1 | -<?php | |
2 | -/** | |
3 | - * @var $productProvider \yii\data\ActiveDataProvider | |
4 | - * @var View $this | |
5 | - */ | |
6 | -use frontend\widgets\FilterWidget; | |
7 | -use frontend\widgets\Seo; | |
8 | -use yii\helpers\Url; | |
9 | -use yii\web\View; | |
10 | -use yii\widgets\ListView; | |
11 | -$this->params['seo']['title'] = !empty($category->meta_title) ? $category->meta_title : ''; | |
12 | - | |
13 | -$this->params['seo']['fields']['meta-title'] = $category->meta_title; | |
14 | -$this->params['seo']['h1'] = !empty($category->h1) ? $category->h1 : $category->name; | |
15 | -$this->params['seo']['seo_text'] = $category->seo_text; | |
16 | -$this->params['seo']['description'] = $category->meta_desc; | |
17 | -$this->params['seo']['meta'] = $category->meta_robots; | |
18 | -$this->params['seo']['category_name'] = $category->name; | |
19 | - | |
20 | -$this->params['breadcrumbs'][] = $category->name; | |
21 | -?> | |
22 | -<!-- Табы для слайдера --> | |
23 | -<div class="bigSlidertabs fixed" style="position:fixed;"> | |
24 | - <div class="block-100"> | |
25 | - <div class="tab1"> | |
26 | - <a href="actionlist.htm"> | |
27 | - <div class="tab_bg_1"></div> | |
28 | - <p>В данный момент у нас проходит <a href="actionlist.htm">25 акций</p></a> | |
29 | - </a> | |
30 | - </div> | |
31 | - <!-- | |
32 | - <div class="tab2" style="display: none;"> | |
33 | - <div class="tab_bg_2"></div> | |
34 | - <p>Поступило на продажу <a href="#">10 новинок</a></p> | |
35 | - </div> | |
36 | - --> | |
37 | - </div> | |
38 | -</div> | |
39 | -<div class="container"> | |
40 | - <div class="block-25" style="position: relative;"> | |
41 | - | |
42 | - | |
43 | - | |
44 | - <div class="columnLeftInfo"> | |
45 | - <!-- del_columnLeftInfo --> | |
46 | - | |
47 | - | |
48 | - | |
49 | - | |
50 | - | |
51 | - <a href="http://ventolux.ua/"><img src="http://www.linija-svitla.ua/res/custom/images/banner/ventolux1.jpg"></a><br><br> | |
52 | - | |
53 | - | |
54 | - <table border="0" cellspacing="0" cellpadding="0" class="boxGen articleBox"> | |
55 | - <tr class="bxhead"> | |
56 | - <th class="bxhl"></th> | |
57 | - <th class="bxhc"><div class="h3"> | |
58 | - <a href="view-articles/">Статьи</a> | |
59 | - </div></th> | |
60 | - | |
61 | - <th class="bxhr"></th> | |
62 | - </tr> | |
63 | - | |
64 | - <tr class="bxdelim"> | |
65 | - <td></td> | |
66 | - <td></td> | |
67 | - <td></td> | |
68 | - </tr> | |
69 | - <tr class="bxmiddle"> | |
70 | - <td class="bxl"></td> | |
71 | - <td class="bxc"> <div width="100%" class="articlesBox"><!-- cats_table--> | |
72 | - <div width="100%"> | |
73 | - <div class="articleItem"> | |
74 | - <span class="image"> | |
75 | - </span> | |
76 | - <span align="left" class="title"> | |
77 | - <a href="liniya-sveta-predstavila-trendovye-modeli-na-interior-mebel-85.htm" > | |
78 | - Линия света представила трендовые модели на Interior Mebel | |
79 | - </a> | |
80 | - </span> | |
81 | - | |
82 | - <div align="left" class="desc"> | |
83 | - <p>В Киеве прошла выставка Interior Mebel, которая уже традиционно собирает лучшие образцы дизайна интерьера. На... | |
84 | - <a href="liniya-sveta-predstavila-trendovye-modeli-na-interior-mebel-85.htm" > | |
85 | - подробнее | |
86 | - </a> | |
87 | - </div> | |
88 | - | |
89 | - </div> | |
90 | - | |
91 | - | |
92 | - <div class="articleItem"> | |
93 | - <span class="image"> | |
94 | - </span> | |
95 | - <span align="left" class="title"> | |
96 | - <a href="svetodiodnoe-osveschenie-light-topps-svetodiodnye-lampochki-lampy-colon-kupit-dlya-doma-ceny-v-ukraine-84.htm" > | |
97 | - Светодиодное освещение Light Topps | Светодиодные... | |
98 | - </a> | |
99 | - </span> | |
100 | - | |
101 | - <div align="left" class="desc"> | |
102 | - О светодиодных лампах и светильниках, в которых используются светодиодные модули, написано немало и наверняка уже... | |
103 | - <a href="svetodiodnoe-osveschenie-light-topps-svetodiodnye-lampochki-lampy-colon-kupit-dlya-doma-ceny-v-ukraine-84.htm" > | |
104 | - подробнее | |
105 | - </a> | |
106 | - </div> | |
107 | - | |
108 | - </div> | |
109 | - | |
110 | - | |
111 | - <div class="articleItem"> | |
112 | - <span class="image"> | |
113 | - </span> | |
114 | - <span align="left" class="title"> | |
115 | - <a href="lyustry-potolochnye-novye-vozmojnosti-upravleniya-svetom-82.htm" > | |
116 | - Люстры потолочные. Новые возможности управления светом | |
117 | - </a> | |
118 | - </span> | |
119 | - | |
120 | - <div align="left" class="desc"> | |
121 | - Люстры потолочные оснащенные пультом дистанционного управления, позволяют включать/выключать, а также регулировать... | |
122 | - <a href="lyustry-potolochnye-novye-vozmojnosti-upravleniya-svetom-82.htm" > | |
123 | - подробнее | |
124 | - </a> | |
125 | - </div> | |
126 | - | |
127 | - </div> | |
128 | - | |
129 | - | |
130 | - | |
131 | - | |
132 | - | |
133 | - | |
134 | - | |
135 | - | |
136 | - | |
137 | - | |
138 | - <div style="clear: left;"></div> | |
139 | - | |
140 | - | |
141 | - </div> | |
142 | - | |
143 | - | |
144 | - </td> | |
145 | - <td class="bxr"></td> | |
146 | - </tr> | |
147 | - <tr class="bxbottom"> | |
148 | - <td class="bxbl"></td> | |
149 | - <td class="bxbc"></td> | |
150 | - <td class="bxbr"></td> | |
151 | - </tr> | |
152 | - </table> | |
153 | - | |
154 | - <div class="clearfix"></div> | |
155 | - | |
156 | - | |
157 | - <!-- del_columnLeftInfo_end --> | |
158 | - </div> | |
159 | - | |
160 | - | |
161 | - <br /> | |
162 | - | |
163 | - | |
164 | - | |
165 | - </div> | |
166 | - <div class="block-75" itemscope itemtype="http://schema.org/Product"> | |
167 | - | |
168 | - | |
169 | - | |
170 | - | |
171 | - <script> | |
172 | - | |
173 | - | |
174 | - </script> | |
175 | - | |
176 | - | |
177 | - | |
178 | - <h1 class="title"><?= Seo::widget([ 'row'=>'h1'])?></h1> | |
179 | - | |
180 | - | |
181 | - <div class="list_filters_links"> | |
182 | - <div class="sort_block"> | |
183 | - <span>Сортировка:</span> | |
184 | - <?= \yii\widgets\LinkSorter::widget([ | |
185 | - 'sort' => $productProvider->sort, | |
186 | - 'attributes' => [ | |
187 | - 'price', | |
188 | - ] | |
189 | - ]); | |
190 | - ?> | |
191 | - </div> | |
192 | - <div class="clearfix"></div> | |
193 | - </div> | |
194 | - | |
195 | - | |
196 | - | |
197 | - <div class="clearfix"></div> | |
198 | - | |
199 | - | |
200 | - <div class="catalog_product_list view_table"> | |
201 | - | |
202 | - | |
203 | - <?= ListView::widget([ | |
204 | - 'dataProvider' => $productProvider, | |
205 | - 'itemView' => function ($model, $key, $index, $widget) use($category) { | |
206 | - return $this->render('_product_item',[ | |
207 | - 'model' => $model, | |
208 | - 'category' => $category | |
209 | - ]); | |
210 | - }, | |
211 | - 'layout' => "{items}<div class=\"clearfix\"></div>{pager}", | |
212 | - ]) | |
213 | - | |
214 | - ?> | |
215 | - | |
216 | - | |
217 | - | |
218 | - | |
219 | - <div class="clearfix"></div> | |
220 | - </div> | |
221 | - | |
222 | - <br> | |
223 | - | |
224 | - | |
225 | - | |
226 | - | |
227 | - | |
228 | - | |
229 | - | |
230 | - <div class="clearfix"></div> | |
231 | - | |
232 | - | |
233 | - | |
234 | - | |
235 | - <div class="clearfix"></div> | |
236 | - | |
237 | - | |
238 | - </div> | |
239 | -</div> | |
240 | - | |
241 | - |
frontend/views/catalog/products.php
... | ... | @@ -36,104 +36,324 @@ use yii\helpers\Url; |
36 | 36 | --> |
37 | 37 | </div> |
38 | 38 | </div> |
39 | - <div class="container"> | |
40 | - <div class="block-25" style="position: relative;"> | |
41 | - <?= FilterWidget::widget([ | |
42 | - 'category'=>$category, | |
43 | - 'groups'=> $groups, | |
44 | - 'filter'=> $filter, | |
45 | - 'brands' => $brands | |
46 | - ])?> | |
47 | 39 | |
48 | - <div class="clearfix"></div> | |
49 | 40 | |
50 | 41 | |
51 | 42 | |
52 | 43 | |
53 | - <div class="columnLeftInfo"> | |
54 | - <!-- del_columnLeftInfo --> | |
55 | 44 | |
56 | 45 | |
46 | + | |
47 | + | |
48 | + | |
49 | + | |
50 | + | |
51 | + | |
52 | + | |
53 | + | |
54 | + | |
55 | + | |
56 | + | |
57 | + | |
58 | + | |
59 | + | |
60 | + | |
61 | + | |
62 | + | |
63 | + | |
64 | + <div class="container"> | |
65 | + <div class="block-25" style="position: relative;"> | |
66 | + <?= FilterWidget::widget([ | |
67 | + 'category'=>$category, | |
68 | + 'groups'=> $groups, | |
69 | + 'filter'=> $filter, | |
70 | + 'brands' => $brands | |
71 | + ])?> | |
72 | + | |
57 | 73 | <div class="clearfix"></div> |
58 | 74 | |
59 | 75 | |
60 | - <!-- del_columnLeftInfo_end --> | |
61 | - </div> | |
62 | 76 | |
63 | 77 | |
64 | - <br /> | |
78 | + <div class="columnLeftInfo"> | |
79 | + <!-- del_columnLeftInfo --> | |
65 | 80 | |
66 | 81 | |
67 | 82 | |
68 | - </div> | |
69 | - <div class="block-75" itemscope itemtype="http://schema.org/Product"> | |
70 | 83 | |
71 | 84 | |
85 | + <a href="http://ventolux.ua/"><img src="http://www.linija-svitla.ua/res/custom/images/banner/ventolux1.jpg"></a><br><br> | |
72 | 86 | |
73 | 87 | |
74 | - <script> | |
88 | + <table border="0" cellspacing="0" cellpadding="0" class="boxGen articleBox"> | |
89 | + <tr class="bxhead"> | |
90 | + <th class="bxhl"></th> | |
91 | + <th class="bxhc"><div class="h3"> | |
92 | + <a href="view-articles/">Статьи</a> | |
93 | + </div></th> | |
75 | 94 | |
95 | + <th class="bxhr"></th> | |
96 | + </tr> | |
76 | 97 | |
77 | - </script> | |
98 | + <tr class="bxdelim"> | |
99 | + <td></td> | |
100 | + <td></td> | |
101 | + <td></td> | |
102 | + </tr> | |
103 | + <tr class="bxmiddle"> | |
104 | + <td class="bxl"></td> | |
105 | + <td class="bxc"> <div width="100%" class="articlesBox"><!-- cats_table--> | |
106 | + <div width="100%"> | |
107 | + <div class="articleItem"> | |
108 | + <span class="image"> | |
109 | + </span> | |
110 | + <span align="left" class="title"> | |
111 | + <a href="liniya-sveta-predstavila-trendovye-modeli-na-interior-mebel-85.htm" > | |
112 | + Линия света представила трендовые модели на Interior Mebel | |
113 | + </a> | |
114 | + </span> | |
78 | 115 | |
116 | + <div align="left" class="desc"> | |
117 | + <p>В Киеве прошла выставка Interior Mebel, которая уже традиционно собирает лучшие образцы дизайна интерьера. На... | |
118 | + <a href="liniya-sveta-predstavila-trendovye-modeli-na-interior-mebel-85.htm" > | |
119 | + подробнее | |
120 | + </a> | |
121 | + </div> | |
79 | 122 | |
123 | + </div> | |
80 | 124 | |
81 | - <h1 class="title"><?= Seo::widget([ 'row'=>'h1'])?></h1> | |
82 | 125 | |
126 | + <div class="articleItem"> | |
127 | + <span class="image"> | |
128 | + </span> | |
129 | + <span align="left" class="title"> | |
130 | + <a href="svetodiodnoe-osveschenie-light-topps-svetodiodnye-lampochki-lampy-colon-kupit-dlya-doma-ceny-v-ukraine-84.htm" > | |
131 | + Светодиодное освещение Light Topps | Светодиодные... | |
132 | + </a> | |
133 | + </span> | |
83 | 134 | |
84 | - <div class="list_filters_links"> | |
85 | - <div class="sort_block"> | |
86 | - <span>Сортировка:</span> | |
87 | - <?= \yii\widgets\LinkSorter::widget([ | |
88 | - 'sort' => $productProvider->sort, | |
89 | - 'attributes' => [ | |
90 | - 'price', | |
91 | - ] | |
92 | - ]); | |
93 | - ?> | |
135 | + <div align="left" class="desc"> | |
136 | + О светодиодных лампах и светильниках, в которых используются светодиодные модули, написано немало и наверняка уже... | |
137 | + <a href="svetodiodnoe-osveschenie-light-topps-svetodiodnye-lampochki-lampy-colon-kupit-dlya-doma-ceny-v-ukraine-84.htm" > | |
138 | + подробнее | |
139 | + </a> | |
140 | + </div> | |
141 | + | |
142 | + </div> | |
143 | + | |
144 | + | |
145 | + <div class="articleItem"> | |
146 | + <span class="image"> | |
147 | + </span> | |
148 | + <span align="left" class="title"> | |
149 | + <a href="lyustry-potolochnye-novye-vozmojnosti-upravleniya-svetom-82.htm" > | |
150 | + Люстры потолочные. Новые возможности управления светом | |
151 | + </a> | |
152 | + </span> | |
153 | + | |
154 | + <div align="left" class="desc"> | |
155 | + Люстры потолочные оснащенные пультом дистанционного управления, позволяют включать/выключать, а также регулировать... | |
156 | + <a href="lyustry-potolochnye-novye-vozmojnosti-upravleniya-svetom-82.htm" > | |
157 | + подробнее | |
158 | + </a> | |
159 | + </div> | |
160 | + | |
161 | + </div> | |
162 | + | |
163 | + | |
164 | + | |
165 | + | |
166 | + | |
167 | + | |
168 | + | |
169 | + | |
170 | + | |
171 | + | |
172 | + <div style="clear: left;"></div> | |
173 | + | |
174 | + | |
175 | + </div> | |
176 | + | |
177 | + | |
178 | + </td> | |
179 | + <td class="bxr"></td> | |
180 | + </tr> | |
181 | + <tr class="bxbottom"> | |
182 | + <td class="bxbl"></td> | |
183 | + <td class="bxbc"></td> | |
184 | + <td class="bxbr"></td> | |
185 | + </tr> | |
186 | + </table> | |
187 | + | |
188 | + <div class="clearfix"></div> | |
189 | + | |
190 | + | |
191 | + <!-- del_columnLeftInfo_end --> | |
94 | 192 | </div> |
95 | - <div class="clearfix"></div> | |
193 | + | |
194 | + | |
195 | + <br /> | |
196 | + | |
197 | + | |
198 | + | |
96 | 199 | </div> |
200 | + <div class="block-75" itemscope itemtype="http://schema.org/Product"> | |
97 | 201 | |
98 | 202 | |
99 | 203 | |
100 | 204 | |
205 | + <script> | |
101 | 206 | |
102 | - <div class="catalog_product_list view_table"> | |
103 | 207 | |
208 | + </script> | |
104 | 209 | |
105 | - <?= ListView::widget([ | |
106 | - 'dataProvider' => $productProvider, | |
107 | - 'itemView' => function ($model, $key, $index, $widget) use($category) { | |
108 | - return $this->render('_product_item',[ | |
109 | - 'model' => $model, | |
110 | - 'category' => $category | |
111 | - ]); | |
112 | - }, | |
113 | - 'layout' => "{items}<div class=\"clearfix\"></div>{pager}", | |
114 | - ]) | |
115 | 210 | |
116 | - ?> | |
117 | 211 | |
212 | + <h1 class="title"><?= Seo::widget([ 'row'=>'h1'])?></h1> | |
213 | + | |
214 | + | |
215 | + <div class="list_filters_links"> | |
216 | + <ul class="ul pagination"> | |
217 | + <li>Товаров на странице:</li> | |
218 | + <select name="items_per_page" class="s" style="text-align:center;width:54px;" onChange="window.location='http://www.linija-svitla.ua/lyustry-2.htm?ipp='+this.value+'';" style="margin-right: -2px;"> | |
219 | + <option label="9" value="9">9</option> | |
220 | + <option label="18" value="18">18</option> | |
221 | + <option label="36" value="36" selected="selected">36</option> | |
222 | + <option label="99" value="99">99</option> | |
223 | + | |
224 | + </select> | |
225 | + </ul> | |
226 | + <ul class="view_type"> | |
227 | + <li class="view_text">Вид списка</li> | |
228 | + <li class="view_list" onclick="return false;" title="список"><span></span></li> | |
229 | + <li class="view_table selected" onclick="return false;" title="таблица"><span></span></li> | |
230 | + <li class="view_mini_table" onclick="return false;" title="миниатюрная таблица"><span></span></li> | |
231 | + </ul> | |
232 | + <div class="sort_block"> | |
233 | + <span>Сортировка:</span> | |
234 | + <?= \yii\widgets\LinkSorter::widget([ | |
235 | + 'sort' => $productProvider->sort, | |
236 | + 'attributes' => [ | |
237 | + 'price', | |
238 | + ] | |
239 | + ]); | |
240 | + ?> | |
241 | + </div> | |
242 | + <div class="clearfix"></div> | |
243 | + </div> | |
118 | 244 | |
119 | 245 | |
120 | 246 | |
121 | 247 | <div class="clearfix"></div> |
122 | - </div> | |
123 | 248 | |
124 | - <br> | |
125 | 249 | |
126 | 250 | |
127 | 251 | |
128 | 252 | |
129 | 253 | |
130 | 254 | |
255 | + <script language="JavaScript"> | |
256 | + $(document).ready(function(){ | |
257 | + $('.toolbar-list').click(function(event) { | |
258 | + //alert(1); | |
259 | + $('.toolbar-list').addClass('selected'); | |
260 | + $('.toolbar-grid').removeClass('selected'); | |
261 | + $('#centrit .prodBox').addClass('list'); | |
262 | + JsHttpRequest.query( | |
263 | + 'hr_gate.php?test=500&r='+Math.random(), | |
264 | + { | |
265 | + 'sp': "prod_list_style" | |
266 | + ,'style': 1 | |
267 | + }, | |
268 | + function(result, errors) { }, | |
269 | + true //disable caching | |
270 | + ); | |
271 | + }); | |
272 | + $('.toolbar-grid').click(function(event) { | |
273 | + $('.toolbar-grid').addClass('selected'); | |
274 | + $('.toolbar-list').removeClass('selected'); | |
275 | + $('#centrit .prodBox').removeClass('list'); | |
276 | + JsHttpRequest.query( | |
277 | + 'hr_gate.php?test=500&r='+Math.random(), | |
278 | + { | |
279 | + 'sp': "prod_list_style" | |
280 | + ,'style': 2 | |
281 | + }, | |
282 | + function(result, errors) { }, | |
283 | + true //disable caching | |
284 | + ); | |
285 | + | |
286 | + }); | |
287 | + | |
288 | + }); | |
289 | + </script> | |
290 | + | |
291 | + | |
292 | + | |
293 | + | |
294 | + <div class="catalog_product_list view_table"> | |
295 | + | |
296 | + | |
297 | + <?= ListView::widget([ | |
298 | + 'dataProvider' => $productProvider, | |
299 | + 'itemView' => function ($model, $key, $index, $widget) use($category) { | |
300 | + return $this->render('_product_item',[ | |
301 | + 'model' => $model, | |
302 | + 'category' => $category | |
303 | + ]); | |
304 | + }, | |
305 | + 'layout' => "{items}<div class=\"clearfix\"></div>{pager}", | |
306 | + ]) | |
307 | + | |
308 | + ?> | |
309 | + | |
310 | + | |
311 | + | |
312 | + | |
313 | + <div class="clearfix"></div> | |
314 | + </div> | |
315 | + | |
316 | + <br> | |
317 | + | |
318 | + | |
319 | + | |
320 | + | |
321 | + | |
131 | 322 | |
132 | - <div class="clearfix"></div> | |
133 | 323 | |
324 | + <div class="clearfix"></div> | |
325 | + | |
326 | + | |
327 | + | |
328 | + | |
329 | + <div class="clearfix"></div> | |
134 | 330 | |
331 | + <h2>Магазин люстр в Киеве: изделия на любой вкус!</h2> | |
332 | + <p>Любой интерьер будет смотреться незавершенным, если не выбраны подходящие люстры, светильники (Киев). Посетив салон люстр в Киеве можно подобрать действительно интересные осветительные приборы, внося новые черты в интерьер, расставляя правильные акценты, подчеркивая неповторимость дизайна. А благодаря нашему сайту «Линия света» вы сможете купить люстру в интернете, без труда подбирая подходящую модель и экономя свои средства.</p> | |
333 | + <h2>Приобрести люстры через интернет-магазин: что предлагается</h2> | |
334 | + <p>Если вы присматриваете, где можно купить люстру в Украине – заходите на наш сайт, у нас имеется огромный выбор разнообразной продукции. Через наш реализующий люстры в Киеве интернет-магазин можно подобрать любые модели – от популярной классики до ультрасовременных подвесов. При этом купить люстру в интернет-магазине представится возможность по весьма приятным расценкам. Если же вас интересует, как купить люстры, цены которых будут максимально невысокими – присмотритесь к предложениям в разделе «распродажа» на сайте. Вообще же наш демонстрирующий разнообразные люстры каталог (цены различные), включает такие типы продукции, как:</p> | |
335 | + <ul> | |
336 | + <li>Классические, подвесные. Продажа люстр этой разновидности ведется наиболее активно – они всегда в моде, хорошо смотрятся во всех интерьерах, отличаются практичностью. На такие люстры в Киеве цена может быть самой различной – но она всегда будет оптимальна качественности и внешней привлекательности присмотренного изделия.</li> | |
337 | + <li>Более креативные люстры – это разнообразные потолочные светильники. Эти качественные люстры и светильники могут иметь различные дизайны, быть разных размеров. Параметры такой люстры интернет-магазин может подобрать в соответствии с индивидуальными размерами помещения, его дизайном.</li> | |
338 | + </ul> | |
339 | + <p>Также вы всегда сможете заказать люстру в интернет-магазине «Linija-svitla» в том стиле, который наиболее подойдет под ваши требования. Наш магазин люстр может предложить изделия в винтажном стиле (достаточно модном сегодня), классические модели, а также ультрасовременные авангардные люстры и товары, относящиеся к стилю хай-тек. На все предлагаемые люстры цена в Украине – одна из наиболее доступных.</p> | |
340 | + <h2>Люстры он-лайн на сайте «Linija-svitla»: преимущества покупок</h2> | |
341 | + <p>Планируя купить люстру через интернет – оцените все преимущества сотрудничества с нашим сайтом:</p> | |
342 | + <ul> | |
343 | + <li>Наш каталог люстр включает большое количество разнообразных товаров. Поэтому с нами купить люстры в интернете можно быстро и без потери времени.</li> | |
344 | + <li>У нас можно качественные и красивые люстры купить от надежных производителей. Через наш ресурс, возможно купить люстру в Киеве от бренда Massive – изделия этого производителя красивы, добротно сделаны, отличаются стильным видом и долговечностью. Учитывайте, планируя купить люстру - цены на товары от Massive будут несколько выше, нежели на подделки, которые может предложить отечественный рынок, но эта стоимость оправдывается качественностью электроприборов (на которых, как известно, экономить нельзя).</li> | |
345 | + <li>Самая демократичная на такой предмет, как люстра, цена. Если вы решили купить люстру, магазин «Линия Света» всегда предоставит возможность приобрести действительно качественный товар по минимальным расценкам.</li> | |
346 | + </ul> | |
347 | + <h2>Где купить люстру в Киеве?</h2> | |
348 | + <p>Вопрос, «где можно купить люстры в Украине» решен – это можно сделать на сайте «Linija-svitla». Если вам требуется хорошие люстры купить - интернет-магазин в Украине «Линия света» может предложить большой перечень интересных разновидностей товаров данной категории. Задаваясь вопросом «сколько стоит люстра» учитывайте, что осветительные приборы во многом будут отображать ваш статус. А это значит, что как приобретение, так и подключение люстры стоимость не может иметь слишком низкую. Выбирать следует в первую очередь качественную работу, а потом уже доступные расценки. И помочь найти нужный товар смогут наши магазины люстр в Киеве. Для тех же, кто предпочитает делать интернет-заказы существует доставка по городам всей Украины, таким как: Днепропетровск, Харьков, Одесса, Запорожье, Киев, Херсон, Мариуполь, Полтава, Кривой Рог, Винница, Сумы, Черкассы, Николаев, Кременчуг, Хмельницкий, Чернигов, Житомир и др. При этом, цена на все реализуемые изделия вас наверняка сможет обрадовать.</p> | |
349 | + | |
350 | + | |
351 | + </div> | |
135 | 352 | </div> |
136 | - </div> | |
137 | 353 | |
354 | + <div class="container"> | |
355 | + <p> | |
356 | + Люстры - одна из основных специализаций нашего каталога светильников в разделе люстры. Эти товары предоставлены у нас по самым лучшим ценам: Люстры Массив 41017/32/10, Люстры Массив 40851/33/10, Люстры Есео 40523/17/13, Люстры Массив 40865/11/10. Рекомендуем вам не сомневаться и позвонить нашему консультанту. Он поможет подобрать красивые люстры именно для вас. </p> | |
357 | + </div> | |
138 | 358 | |
139 | 359 | ... | ... |
frontend/views/layouts/cabinet.php
... | ... | @@ -5,27 +5,29 @@ use yii\helpers\Url; |
5 | 5 | |
6 | 6 | $this->beginContent('@app/views/layouts/main.php'); |
7 | 7 | ?> |
8 | -<h1 class="cabinet_main_title"><?= Yii::t('app', 'personal_data'); ?></h1> | |
8 | +<div class="container"> | |
9 | + <h1 class="cabinet_main_title"><?= Yii::t('app', 'personal_data'); ?></h1> | |
9 | 10 | |
10 | -<div class="cabinet_wrap"> | |
11 | - <div class="cabinet_menu"> | |
12 | - <div class="block_01"> | |
13 | - <div class="cab_01"><?= Html::a(Yii::t('app','personal_data'), Url::toRoute('cabinet/index'))?></div> | |
14 | - <div class="cab_01"><?= Html::a(Yii::t('app','my_orders'), Url::toRoute('cabinet/my-orders'))?></div> | |
15 | - <div class="cab_01"><?= Html::a(Yii::t('app','bookmarks'), Url::toRoute('cabinet/bookmarks'))?></div> | |
16 | - </div> | |
17 | - <div class="block_04"> | |
18 | - <div class="link"> | |
11 | + <div class="cabinet_wrap"> | |
12 | + <div class="cabinet_menu"> | |
13 | + <div class="block_01"> | |
14 | + <div class="cab_01"><?= Html::a(Yii::t('app','personal_data'), Url::toRoute('cabinet/index'))?></div> | |
15 | + <div class="cab_01"><?= Html::a(Yii::t('app','my_orders'), Url::toRoute('cabinet/my-orders'))?></div> | |
16 | + <div class="cab_01"><?= Html::a(Yii::t('app','bookmarks'), Url::toRoute('cabinet/bookmarks'))?></div> | |
17 | + </div> | |
18 | + <div class="block_04"> | |
19 | + <div class="link"> | |
19 | 20 | <span class="dotted"> |
20 | 21 | <?= Html::a(Yii::t('app','edit_personal_data'), Url::toRoute('cabinet/update'))?> |
21 | 22 | </span> |
23 | + </div> | |
24 | + <div class="link"><?= Html::a(Yii::t('app','exit'), Url::toRoute('site/logout'))?></div> | |
22 | 25 | </div> |
23 | - <div class="link"><?= Html::a(Yii::t('app','exit'), Url::toRoute('site/logout'))?></div> | |
24 | 26 | </div> |
25 | - </div> | |
26 | 27 | |
27 | - <div class="customer_content"> | |
28 | - <?= $content ?> | |
28 | + <div class="customer_content"> | |
29 | + <?= $content ?> | |
30 | + </div> | |
29 | 31 | </div> |
30 | 32 | </div> |
31 | 33 | <?php $this->endContent() ?> |
32 | 34 | \ No newline at end of file | ... | ... |
frontend/views/partial/main-menu.php renamed to frontend/views/layouts/main-menu.php
100755 → 100644
... | ... | @@ -11,39 +11,76 @@ $models = Category::find()->all(); |
11 | 11 | <div id="mainmenu"> |
12 | 12 | <div class="container"> |
13 | 13 | <ul id="menu-bar"> |
14 | + <li class="new_catalog"> | |
15 | + <a class="new_cat_link" href="#" >каталог</a> | |
16 | + <div class="hide-cat-menu"> | |
17 | + <table cellpadding="0" cellspacing="0" border="0"> | |
18 | + <tr> | |
19 | + <td class="col-md-4 col-lg-4 main-cat_ no-padding-left no-padding-right"> | |
20 | + <ul class=""> | |
21 | + <?php | |
22 | + foreach($models as $model):?> | |
23 | + <li> | |
24 | + <a href="<?= Url::to(['catalog/category','category' => $model['alias']]) ?>"> | |
25 | + <?= $model->name?> | |
26 | + </a> | |
27 | + </li> | |
28 | + <?php endforeach; ?> | |
29 | + </ul> | |
30 | + </td> | |
31 | + <td class="hide-cat-sub sub-cat_ col-md-8 col-lg-8"> | |
32 | + <?php | |
33 | + foreach($models as $model):?> | |
34 | + <ul class="row"> | |
35 | + <?php foreach($model->getTaxGroupsForMenu() as $group): ?> | |
36 | + <li class="list_cat_sub col-md-3 col-lg-3"> | |
37 | + <a href="<?= Url::to(['catalog/category','category' => $model['alias'],'filters' => [$group['alias'] => [$group['option_alias']]]]) ?>"> | |
38 | + <div> | |
39 | + <table cellpadding="0" cellspacing="0" border="0"> | |
40 | + <tr> | |
41 | + <td> | |
42 | + <?= Html::img(ArtboxImageHelper::getImageSrc(Yii::getAlias('@imagesUrl/tax_option/'. $group['image']), 'option_menu'))?> | |
43 | + </td> | |
44 | + </tr> | |
45 | + </table> | |
46 | + <span><?=$group['value']?></span> | |
47 | + </div> | |
48 | + </a> | |
49 | + </li> | |
50 | + <?php endforeach;?> | |
51 | + </ul> | |
52 | + <?php endforeach; ?> | |
53 | + </td> | |
54 | + </tr> | |
55 | + </table> | |
56 | + </div> | |
57 | + </li> | |
14 | 58 | |
15 | 59 | |
16 | - <?php foreach($models as $model):?> | |
17 | - <li> | |
18 | - | |
60 | + | |
19 | 61 | |
20 | - <a href="<?= Url::to(['catalog/category','category' => $model['alias']]) ?>"> | |
21 | - <?= $model->name?> | |
22 | - <div class="main_menu_divider"></div> | |
23 | - <div class="main_menu_down_arrow"></div> | |
24 | - </a> | |
62 | + <li> | |
63 | + <?php | |
64 | + echo Html::a('Акции', Url::to('/event')) | |
65 | + ?> | |
66 | + </li> | |
25 | 67 | |
68 | + <li> | |
69 | + <?php | |
70 | + echo Html::a('Дисконтная программа', Url::to('/discount')) | |
71 | + ?> | |
72 | + </li> | |
26 | 73 | |
27 | - <ul> | |
74 | + <li> | |
75 | + <?php | |
76 | + echo Html::a('Статьи', Url::to('/articles/index')) | |
77 | + ?> | |
78 | + </li> | |
28 | 79 | |
29 | - <?php foreach($model->getTaxGroupsForMenu() as $group): ?> | |
30 | - <li> | |
31 | 80 | |
32 | - <a href="<?= Url::to(['catalog/category','category' => $model['alias'],'filters' => [$group['alias'] => [$group['option_alias']]]]) ?>"> | |
33 | - <div class="option_image_block"> | |
34 | - <?= Html::img(ArtboxImageHelper::getImageSrc(Yii::getAlias('@imagesUrl/tax_option/'. $group['image']), 'option_menu'))?> | |
35 | - </div> | |
36 | - <div class="clearfix"></div> | |
37 | - <span class="menu-bar-cat-name"><?=$group['value']?></span> | |
38 | - </a> | |
39 | - </li> | |
40 | - <?php endforeach;?> | |
41 | 81 | |
42 | 82 | |
43 | - </ul> | |
44 | 83 | |
45 | - </li> | |
46 | - <?php endforeach; ?> | |
47 | 84 | |
48 | 85 | |
49 | 86 | ... | ... |
frontend/views/layouts/main.php
... | ... | @@ -21,6 +21,13 @@ AppAsset::register($this); |
21 | 21 | <link type="image/ico" href="http://www.linija-svitla.ua/images/icon.ico" rel="SHORTCUT ICON" /> |
22 | 22 | <link rel="icon" href="http://www.linija-svitla.ua/images/icon.ico" type="image/x-icon" /> |
23 | 23 | |
24 | + <script language="JavaScript" type="text/JavaScript" src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script><meta name="google-site-verification" content="m60Ax2153voy05Xdtit_bnBVjuZG-fv0Zu14jLjb4Tk" /> | |
25 | + | |
26 | + | |
27 | + | |
28 | + <script language="javascript"> | |
29 | + var ga_exist = false; | |
30 | + </script> | |
24 | 31 | |
25 | 32 | |
26 | 33 | |
... | ... | @@ -56,62 +63,37 @@ AppAsset::register($this); |
56 | 63 | <div id="top-nav-wrapper"> |
57 | 64 | <div id="top-nav"> |
58 | 65 | <div class="container"> |
59 | - <div class="phones"> | |
60 | - <div itemscope itemtype="http://schema.org/LocalBusiness" class="call_block_header"> | |
61 | - <div class="call_block_header_title"> | |
62 | - <a itemprop="address" itemscope itemtype="http://schema.org/PostalAddress" class="city-phone-header"><span itemprop="addressLocality">Киев</span></a></a> <!--<span class="arr"> </span>--> | |
63 | - </div> | |
64 | - <div class="city_blocks_header"> | |
65 | - <div class="city_block_kiev_header"> | |
66 | - <div class="phone-select-header"> | |
67 | - <span class="select-left-mts"><i></i></span> | |
68 | - <span class="select-right"><i></i></span> | |
69 | - </div> | |
70 | - <div class="dropdown-popup-header popup-phone-operators-header" style="display: none;"> | |
71 | - <p class="mts" style="display: none;"><span>МТС</span></p> | |
72 | - <p class="kstar"><span>Киевстар</span></p> | |
73 | - <p class="landline"><span>По городу</span></p> | |
74 | - </div> | |
75 | - <div class="phones-header"> | |
76 | - <div class="phone mts"><span>(095)</span> 282 8508</div> | |
77 | - <div class="phone kstar hide-operator"><span>(068)</span> 77 66 067</div> | |
78 | - <div class="phone landline hide-operator"><span>(044)</span> 33 992 33</div> | |
79 | - </div> | |
80 | - <div class="clearfix"></div> | |
66 | + <div class="col-md-9 col-lg-10"> | |
67 | + <ul class="top-menu pull-left"> | |
68 | + <li class="sale_catalog"> | |
69 | + <a href="#" class="new_cat_link" >Распродажа</a> | |
70 | + <div> | |
71 | + <ul> | |
72 | + <li><a href="#">Скидка -50%</a></li> | |
73 | + <li><a href="#">Скидка -60%</a></li> | |
74 | + <li><a href="#">Скидка -30%</a></li> | |
75 | + <li><a href="#">Скидка -40%</a></li> | |
76 | + </ul> | |
81 | 77 | </div> |
82 | - </div> | |
83 | - <div class="clearfix"></div> | |
84 | - </div> | |
78 | + </li> | |
79 | + <li><?php echo Html::a('Магазины', Url::to('site/contacts'))?></li> | |
80 | + <li><?php echo Html::a('Скидки', Url::to('site/contacts'))?></li> | |
81 | + <li><?php echo Html::a('Гарантии', Url::to('site/contacts'))?></li> | |
82 | + <li><?php echo Html::a('Оплата', Url::to('site/contacts'))?></li> | |
83 | + <li><?php echo Html::a('Доставка', Url::to('site/contacts'))?></li> | |
84 | + <li><?php echo Html::a('Контакты', Url::to('site/contacts'))?></li> | |
85 | + </ul> | |
85 | 86 | </div> |
86 | - <?php | |
87 | - $items = [ | |
88 | - ['label' => 'Статьи', 'url' => '/articles/index'], | |
89 | - ['label' => 'Магазины', 'url' => 'site/contacts'], | |
90 | - ['label' => 'Скидки', 'url' => 'site/contacts'], | |
91 | - ['label' => 'Гарантии', 'url' => 'site/contacts'], | |
92 | - ['label' => 'Оплата', 'url' => 'site/contacts'], | |
93 | - ['label' => 'Доставка', 'url' => 'site/contacts'], | |
94 | - ['label' => 'Контакты', 'url' => 'site/contacts'], | |
95 | - ]; | |
96 | - | |
97 | - if(Yii::$app->user->isGuest){ | |
98 | - $items[] = ['label' => 'Личный кабинет', 'url' => '#','options' =>['data-toggle' => 'modal', 'data-target' => '#myAccount']]; | |
99 | - } else{ | |
100 | - $items[] = ['label' =>Yii::$app->user->identity->username, 'url' =>Url::toRoute(['cabinet/index'])]; | |
101 | - } | |
102 | - echo Nav::widget([ | |
103 | - 'options' => ['class' => 'top-menu pull-left'], | |
104 | - 'items' => $items | |
105 | - ])?> | |
106 | - | |
107 | - | |
108 | - | |
109 | - <div id="top-cart" class="pull-right"> | |
110 | - <button class="btn btn-cart ">Корзина <i></i></button> | |
111 | - <div id="top-cart-content"> | |
112 | - <p class="empty-cart">Корзина пуста</p> | |
113 | - </div> | |
87 | + <div class="col-md-3 col-lg-2"> | |
88 | + <?php | |
89 | + if(Yii::$app->user->isGuest){ | |
90 | + echo Html::a('<span>Личный кабинет</span>', Url::to('#'),['data-toggle' => 'modal', 'data-target' => '#myAccount', 'class' => 'cabinet_link_']); | |
91 | + } else{ | |
92 | + echo Html::a('<span>'.Yii::$app->user->identity->username.'</span>', Url::toRoute(['cabinet/index']),['class' => 'cabinet_link_']); | |
93 | + } | |
94 | + ?> | |
114 | 95 | </div> |
96 | + | |
115 | 97 | <div class="clearfix"></div> |
116 | 98 | </div> |
117 | 99 | </div> |
... | ... | @@ -119,27 +101,69 @@ AppAsset::register($this); |
119 | 101 | <div class="clearfix"></div> |
120 | 102 | <header> |
121 | 103 | <div class="container"> |
122 | - <div class="block-33"> | |
123 | - <a id="logo" href="/"> | |
124 | - <img class="img-responsive" src="/images/logo.png" title="Линия Света" /> | |
125 | - </a> | |
126 | - </div> | |
127 | - <div class="block-66"> | |
128 | - <div id="header_search"> | |
129 | - <!--<p><span class="popular_search_title">Популярные запросы</span> <a href="#">Led лампы</a>, <a href="#">Уличный фонарь</a></p>--> | |
130 | - <form id="search_products" method="get" action="/search"> | |
131 | - <div class="input-group"> | |
132 | - <div class="input-group-loop"></div> | |
133 | - <input type="text" name="word" class="form-control" placeholder="введите артикул или ID" value="" required> | |
134 | - <span class="input-group-btn"> | |
135 | - <input class="btn btn-default" type="submit" value="Найти"> | |
136 | - <span class="search_btn_angle"></span> | |
137 | - </span> | |
138 | - </div><!-- /input-group --> | |
139 | - </form> | |
140 | - </div> | |
141 | - | |
142 | - </div> | |
104 | + <table cellpadding="0" cellspacing="0" border="0" class="header_tb"> | |
105 | + <tr> | |
106 | + <td valign="middle" class="col-md-2 col-lg-3"> | |
107 | + <a href="/"><img class="header-new-img" src="/images/new_img/new_logo.png" alt=""></a> | |
108 | + </td> | |
109 | + <td align="center" valign="middle" class="col-md-4 col-lg-4"> | |
110 | + <table class="tb_phones" cellspacing="0" cellpadding="0" border="0"> | |
111 | + <tr> | |
112 | + <td> | |
113 | + <table cellpadding="0" cellspacing="0" border="0"> | |
114 | + <tr> | |
115 | + <td><img src="/images/new_img/ico/ico-7.png" alt=""></td> | |
116 | + <td><p class="header_phones"><span>(044)</span> 339-92-33</p></td> | |
117 | + </tr> | |
118 | + </table> | |
119 | + </td> | |
120 | + <td> | |
121 | + <table cellpadding="0" cellspacing="0" border="0"> | |
122 | + <tr> | |
123 | + <td><img src="/images/new_img/ico/ico-9.png" alt=""></td> | |
124 | + <td><p class="header_phones"><span>(044)</span> 282-85-08</p></td> | |
125 | + </tr> | |
126 | + </table> | |
127 | + | |
128 | + </td> | |
129 | + </tr> | |
130 | + <tr> | |
131 | + <td> | |
132 | + <table cellpadding="0" cellspacing="0" border="0"> | |
133 | + <tr> | |
134 | + <td><img src="/images/new_img/ico/ico-8.png" alt=""></td> | |
135 | + <td><p class="header_phones"><span>(044)</span> 776-60-67</p></td> | |
136 | + </tr> | |
137 | + </table> | |
138 | + </td> | |
139 | + <td> | |
140 | + <table cellpadding="0" cellspacing="0" border="0"> | |
141 | + <tr> | |
142 | + <td><a href="#" class="callback header_callback" data-toggle="modal" data-target="#myCallback">перезвонить мне</a></td> | |
143 | + </tr> | |
144 | + </table> | |
145 | + </td> | |
146 | + | |
147 | + </tr> | |
148 | + | |
149 | + </table> | |
150 | + </td> | |
151 | + <td valign="middle" class="col-md-3 col-lg-3 new_search"> | |
152 | + <form id="search_products" method="get" action="/search"> | |
153 | + <div class="input-group"> | |
154 | + <input type="text" name="word" class="form-control" placeholder="введите артикул или ID" value="" required> | |
155 | + <input class="new-btn-search" type="submit" value=""> | |
156 | + </div> | |
157 | + </form> | |
158 | + </td> | |
159 | + <td valign="middle" class="col-md-3 col-lg-2" style="padding-left: 0"> | |
160 | + <a class="basket_btn" href="#"> | |
161 | + <p class="price_">4 250 грн.</p> | |
162 | + <div><span>0</span></div> | |
163 | + </a> | |
164 | + </td> | |
165 | + </tr> | |
166 | + </table> | |
143 | 167 | </div> |
144 | 168 | <div class="clearfix"></div> |
145 | 169 | </header> |
... | ... | @@ -147,18 +171,49 @@ AppAsset::register($this); |
147 | 171 | |
148 | 172 | |
149 | 173 | <div class="container"> |
150 | - <?= $this->render('../partial/brand_list')?> | |
174 | + <ul> | |
175 | + <li> | |
176 | + <a href="/feiss.htm"><i class="spritebrand spritebrand-feiss"></i></a> | |
177 | + </li> | |
178 | + <li> | |
179 | + <a href="/flambeau.htm"><i class="spritebrand spritebrand-flambeau"></i></a> | |
180 | + </li> | |
181 | + <li> | |
182 | + <a href="/quoizel.htm"><i class="spritebrand spritebrand-quozel"></i></a> | |
183 | + </li> | |
184 | + <li> | |
185 | + <a href="/hinkley.htm"><i class="spritebrand spritebrand-hinkley"></i></a> | |
186 | + </li> | |
187 | + <li> | |
188 | + <a href="/elstead.htm"><i class="spritebrand spritebrand-elstead"></i></a> | |
189 | + </li> | |
190 | + <li> | |
191 | + <a href="/philips.htm"><i class="spritebrand spritebrand-philips"></i></a> | |
192 | + </li> | |
193 | + <li> | |
194 | + <a href="/massive.htm"><i class="spritebrand spritebrand-massive"></i></a> | |
195 | + </li> | |
196 | + <li> | |
197 | + <a href="/eseo.htm"><i class="spritebrand spritebrand-eseo"></i></a> | |
198 | + </li> | |
199 | + <li> | |
200 | + <a href="/lirio.htm"><i class="spritebrand spritebrand-lirio"></i></a> | |
201 | + </li> | |
202 | + <li> | |
203 | + <a href="/lighttopps.htm"><i class="spritebrand spritebrand-light"></i></a> | |
204 | + </li> | |
205 | + </ul> | |
151 | 206 | </div> |
152 | 207 | </div> |
153 | 208 | |
154 | 209 | |
155 | 210 | |
156 | 211 | |
157 | - <?= $this->render('../partial/main-menu')?> | |
212 | + <?= $this->render('main-menu')?> | |
158 | 213 | <div class="wrapper white"> |
159 | 214 | <div class="container"> |
160 | 215 | |
161 | - | |
216 | + <!---test---> | |
162 | 217 | <?= Breadcrumbs::widget ([ |
163 | 218 | 'homeLink' => ['label' => 'Интернет-магазин светильников', 'url' => Url::to(['/']),'itemprop' => 'url', ], |
164 | 219 | 'itemTemplate' => "<li><span itemprop=\"title\">{link}</span></li>\n", // template for all links |
... | ... | @@ -173,292 +228,224 @@ AppAsset::register($this); |
173 | 228 | |
174 | 229 | <?= $content ?> |
175 | 230 | |
176 | - | |
177 | 231 | </div><!-- /.wrapper.white --> |
178 | - | |
179 | - <div class="container margin-bottom-10"> | |
180 | - <div class="row"> | |
181 | - <div class="facebook"> | |
182 | - <div class="row"> | |
183 | - <div class="facebook_container"> | |
184 | - | |
185 | - | |
186 | - <div class="fb-page" data-href="https://www.facebook.com/linija.svitla" data-width="500" data-small-header="true" data-adapt-container-width="true" data-hide-cover="true" data-show-facepile="true" data-show-posts="false"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/linija.svitla"><a href="https://www.facebook.com/linija.svitla">Лінія Світла</a></blockquote></div></div> | |
187 | - <div id="fb-root"></div> | |
188 | - <script>(function(d, s, id) { | |
189 | - var js, fjs = d.getElementsByTagName(s)[0]; | |
190 | - if (d.getElementById(id)) return; | |
191 | - js = d.createElement(s); js.id = id; | |
192 | - js.src = "//connect.facebook.net/uk_UA/sdk.js#xfbml=1&version=v2.5&appId=770340233026349"; | |
193 | - fjs.parentNode.insertBefore(js, fjs); | |
194 | - }(document, 'script', 'facebook-jssdk')); | |
195 | - </script> | |
196 | - | |
197 | - </div> | |
232 | + | |
233 | + <div class="section-posts-wr style"> | |
234 | + <div class="container"> | |
235 | + <div class="row"> | |
236 | + <div class="col-md-12"><span class="search-title">Вы еще ничего не искали у нас на сайте</span></div> | |
237 | + <div class="col-md-12 blog-search"> | |
238 | + <form id="search_products" method="get" action="/search"> | |
239 | + <div class="input-group"> | |
240 | + <input type="text" name="word" class="form-control" placeholder="Найдите то, что нужно Вам среди более 5000 светильников" value="" required> | |
241 | + <input class="new-btn-search" type="submit" value=""> | |
198 | 242 | </div> |
199 | - </div> | |
243 | + </form> | |
200 | 244 | </div> |
201 | 245 | </div> |
202 | - | |
203 | - <footer> | |
204 | - <div class="container margin-top-40"> | |
246 | + <div class="row posts-margin"> | |
247 | + <div class="col-md-12"> | |
205 | 248 | <div class="row"> |
206 | - <div class="block-25"> | |
207 | - <p><span class="content-title">Есть к нам вопросы?</span></p> | |
208 | - <div class="fblock-content"> | |
209 | - | |
210 | - <div itemscope itemtype="http://schema.org/LocalBusiness" class="call_block"> | |
211 | - <div class="call_block_title"> | |
212 | - <span>Звоните</span> <span id="phone_predlog">в</span> <a itemprop="address" itemscope itemtype="http://schema.org/PostalAddress" class="city-phone"><span itemprop="addressLocality">Киеве</span></a> <span class="arr"> </span> | |
213 | - </div> | |
214 | - <div class="dropdown-popup popup-city-phones" style="display: none;"> | |
215 | - <p class="kiev"><span>Киеве</span></p> | |
216 | - <p class="har"><span>Харькове</span></p> | |
217 | - </div> | |
218 | - <div class="clearfix"></div> | |
219 | - <div class="city_blocks"> | |
220 | - <div class="city_block_kiev"> | |
221 | - | |
222 | - <div class="phone-select"><span class="select-left-landline"><i></i></span><span class="select-right"><i></i></span></div> | |
223 | - <div class="dropdown-popup popup-phone-operators" style="display: none;"> | |
224 | - <p class="mts"><span>МТС</span></p> | |
225 | - <p class="kstar"><span>Киевстар</span></p> | |
226 | - <p class="landline" style="display: none;"><span>По городу</span></p> | |
227 | - </div> | |
228 | - | |
229 | - <div class="phones"> | |
230 | - | |
231 | - <div class="phone mts hide-operator"><span>(050)</span> 446 9728, <span>(095)</span> 282 8508</div> | |
232 | - <div class="phone kstar hide-operator"><span>(068)</span> 77 66 067</div> | |
233 | - <div class="phone landline"><span>(044)</span> 33 992 33</div> | |
234 | - </div> | |
235 | - | |
236 | - <div class="clearfix"></div> | |
237 | - | |
238 | - </div> | |
239 | - | |
240 | - <div class="city_block_har hide_city_block"> | |
241 | - | |
242 | - <div class="phone-select"><span class="select-left-landline"><i></i></span><span class="select-right"><i></i></span></div> | |
243 | - <div class="dropdown-popup popup-phone-operators" style="display: none;"> | |
244 | - <p class="mts"><span>МТС</span></p> | |
245 | - <p class="kstar"><span>Киевстар</span></p> | |
246 | - <p class="landline" style="display: none;"><span>По городу</span></p> | |
247 | - </div> | |
248 | - | |
249 | - <div class="phones"> | |
250 | - <div class="phone mts hide-operator"><span>(050)</span> 446 9728, <span>(095)</span> 282 8508</div> | |
251 | - <div class="phone kstar hide-operator"><span>(068)</span> 77 66 067</div> | |
252 | - <div class="phone landline"><span>(057)</span> 340-5888</div> | |
253 | - </div> | |
254 | - | |
255 | - <div class="clearfix"></div> | |
256 | - | |
257 | - </div> | |
258 | - | |
259 | - </div> | |
260 | - | |
261 | - <div class="request_callback"> | |
262 | - <a href="#" class="callback" data-toggle="modal" data-target="#myCallback">Оставьте номер. Мы перезвоним</a> | |
263 | - </div> | |
264 | - | |
265 | - <div class="clearfix"></div> | |
266 | - | |
267 | - </div> | |
268 | - | |
249 | + <div class="col-md-4"> | |
250 | + <span class="posts-title">Статьи</span> | |
251 | + <ul class="posts-links style"> | |
252 | + <li><a href="#">Линия света представила трендовые модели на Interior Mebel</a></li> | |
253 | + <li><a href="#">Светодиодное освещение Light Topps | Светодиодные... </a></li> | |
254 | + <li><a href="#">Люстры потолочные. Новые возможности управления светом</a></li> | |
255 | + <li><a href="#">Точечные светильники – универсальное решение... </a></li> | |
256 | + <li><a href="#">Кухню комфортной делают светильники кухонные</a></li> | |
257 | + <li><a href="#">Освещение загородного дома</a></li> | |
258 | + <li><a href="#">Люстры потолочные – всегда актуальный тренд</a></li> | |
259 | + <li><a href="#">Классические люстры – аристократический дух прошлого</a></li> | |
260 | + <li><a href="#">Светильники и люстры – важнейший элемент интерьера</a></li> | |
261 | + <li><a href="#">Зеленые люстры наиболее приятны для глаз</a></li> | |
262 | + </ul> | |
263 | + <div class="posts-line-wr style"> | |
264 | + <a href="#">Все статьи</a> | |
265 | + <div><span></span></div> | |
269 | 266 | </div> |
270 | 267 | </div> |
271 | - <div class="block-25"> | |
272 | - <div class="padding-left-right-15"> | |
273 | - <p><span class="content-title">Вакансии интернет-магазина</span></p> | |
274 | - <div class="fblock-content vacancies"> | |
275 | - <ul> | |
276 | - <li>продавець-консультант</li> | |
277 | - <li>продавець-кассир</li> | |
278 | - </ul> | |
279 | - <p>Отправить резюме <a href="mailto:netreba@eltrade.com.ua">netreba@eltrade.com.ua</a></p> | |
280 | - </div> | |
268 | + <div class="col-md-8"> | |
269 | + <div class="seo-text style"> | |
270 | + <h2>Лучшие светодиодные светильники в Киеве</h2> | |
271 | + <p>Как лучше осветить свой дом? Какие светильник, люстра, бра эстетично впишутся в Ваш интерьер? Где купить светильники? Эти и многие подобные вопросы рано или поздно возникают у каждого. Где найти ответы на них? Мы с радостью поможем Вам в решении задачи "светильники Киев купить" Авторизованная сеть магазинов «Лінія світла» предлагает Вашему вниманию не только широкий ассортимент освещения, который удовлетворит самых требовательных покупателей, но также квалифицированные консультации и помощь в выборе современных люстр. В наших магазинах (интернет магазин светильников и сеть магазинов) Вы сможете в любой момент посмотреть выбранные люстры, бра, торшеры, настольные лампы, споты, детские и декоративные светильники, получить исчерпывающую информацию у продавцов-консультантов, а также купить светильник на любой вкус</p> | |
272 | + <p>У нас вы найдете только качественные светильники цены же на них вас приятно удивят. Наш каталог светильников представлен следующими брэндами: Massive, Eseo, Lirio, Philips. Качество не может стоить дешево, в том числе и светильники, цена на которые на порядок выше дешевых клонов, но наш магазин освещенияпредлагает вам светильник, цена на которые не станет для вас неприятным сюрпризом</p> | |
273 | + <p>Светильники Massive – это качественные светильники с многолетней историей. Стильный дизайн, надежность и широчайший ассортимент, охватывающий все аспекты освещения – вот почему так популярны светильники от Massive. Светильник – это не только свет, но дополнительный элемент интерьера. Вам необходимо купить светильники, чтобы осветить гостиную, спальню, прихожую? Выбирайте из огромного количества подвесных светильников. Вам покажут каталог светильников и помогут отобрать комплекты, которые гармонично впишутся в Ваш дом и красиво его осветят в темное времяю</p> | |
281 | 274 | </div> |
282 | - </div> | |
283 | - <div class="block-25"> | |
284 | - <div class="padding-left-right-15"> | |
285 | - <p><span class="content-title">Корпоративным клиентам</span></p> | |
286 | - <div> | |
287 | - <ul> | |
288 | - <li><a href="http://www.linija-svitla.ua/catalogues.htm">каталоги</a></li> | |
289 | - </ul> | |
290 | - | |
291 | - </div> | |
292 | - </div> | |
293 | - </div> | |
294 | - <div class="block-25"> | |
295 | - <p><span class="content-title">Интернет-магазин в соцсетях</span></p> | |
296 | - <div class="fblock-content"> | |
297 | - <p>Присоединяйтесь к интернет-магазину Лiнiя Свiтла в социальных сетях. Вы всегда будете в курсе акций, распродаж и новинок.</p> | |
298 | - <ul class="ul soc"> | |
299 | - <li><a href="https://www.facebook.com/linija.svitla" class="facebook" target="_blank" rel="nofollow"></a></li> | |
300 | - <li><a href="http://vk.com/linija_svitla" class="vkontakte" target="_blank" rel="nofollow"></a></li> | |
301 | - <li><a href="#" class="twitter" target="_blank" rel="nofollow"></a></li> | |
302 | - <li><a href="#" class="youtube" target="_blank" rel="nofollow"></a></li> | |
303 | - <li><a href="https://plus.google.com/101559938155454540015/posts" class="google" target="_blank" rel="nofollow"></a></li> | |
304 | - </ul> | |
275 | + <div class="posts-line-wr style"> | |
276 | + <a class="all_seo_text" href="#">Развернуть текст</a> | |
277 | + <div><span></span></div> | |
305 | 278 | </div> |
306 | 279 | </div> |
307 | 280 | </div> |
308 | - <div class="clearfix"></div> | |
309 | - <div class="container"> | |
310 | - <div class="block-25"> | |
311 | - | |
312 | - <p class="developers"> | |
313 | - Разработка: | |
314 | - <a href="http://www.3suns.com.ua/" title="Создание веб-систем, порталов и систем электронной коммерции" target="_blank" rel="nofollow">3SunS</a> & | |
315 | - <a href="http://www.artweb.ua/" title="Создание сайтов, дизайн" target="_blank" rel="nofollow">ArtWeb</a> | |
316 | - </p> | |
317 | - | |
318 | - </div> | |
319 | - <div class="block-75"> | |
320 | - <ul class="copy"> | |
321 | - <li><a href="about_project.htm">О проекте</a></li> | | |
322 | - <li><a href="advertising.htm">Реклама</a></li> | | |
323 | - <li><a href="rules.htm">Правила</a></li> | | |
324 | - <li><a href="contacts.htm">Контакты</a></li> | | |
325 | - <li><a href="sitemap.htm">Карта сайта</a></li> | |
326 | - </ul> | |
327 | - <div class="clearfix"></div> | |
328 | - <p class="copy"> | |
329 | - © 2010-2016 «Лiнiя свiтла» - интернет магазин продажи светильников, ламп, бра, торшеров и других осветительных систем. </p> | |
330 | - <div class="clearfix"></div> | |
331 | - <ul class="copy"> | |
332 | - <li>СВЕТИЛЬНИКИ:</li> | |
333 | - | |
334 | - | |
335 | - <li> | |
336 | - | |
337 | - <a href="http://www.linija-svitla.ua/lyustry-2.htm">люстры</a> | |
338 | - | |
339 | - </li> | |
340 | - | |
341 | - | | |
342 | - | |
343 | - <li> | |
344 | - | |
345 | - <a href="http://www.linija-svitla.ua/potolochnye-4.htm">потолочные</a> | |
346 | - | |
347 | - </li> | |
348 | - | |
349 | - | | |
350 | - | |
351 | - <li> | |
352 | - | |
353 | - <a href="http://www.linija-svitla.ua/bra-5.htm">бра</a> | |
354 | - | |
355 | - </li> | |
356 | - | |
357 | - | | |
358 | - | |
359 | - <li> | |
360 | - | |
361 | - <a href="http://www.linija-svitla.ua/torshery-6.htm">торшеры</a> | |
362 | - | |
363 | - </li> | |
364 | - | |
365 | - | | |
366 | - | |
367 | - <li> | |
368 | - | |
369 | - <a href="http://www.linija-svitla.ua/nastolnye-7.htm">настольные</a> | |
370 | - | |
371 | - </li> | |
372 | - | |
373 | - | | |
374 | - | |
375 | - <li> | |
376 | - | |
377 | - <a href="http://www.linija-svitla.ua/tochechnye-8.htm">точечные</a> | |
378 | - | |
379 | - </li> | |
380 | - | |
381 | - | | |
382 | - | |
383 | - <li> | |
384 | - | |
385 | - <a href="http://www.linija-svitla.ua/spoty-9.htm">споты</a> | |
386 | - | |
387 | - </li> | |
388 | - | |
389 | - | | |
390 | - | |
391 | - <li> | |
392 | - | |
393 | - <a href="http://www.linija-svitla.ua/detskie-15.htm">детские</a> | |
394 | - | |
395 | - </li> | |
396 | - | |
397 | - | | |
398 | - | |
399 | - <li> | |
400 | - | |
401 | - <a href="http://www.linija-svitla.ua/dlya-vannyh-14.htm">для ванных</a> | |
402 | - | |
403 | - </li> | |
404 | - | |
405 | - | | |
406 | - | |
407 | - <li> | |
408 | - | |
409 | - <a href="http://www.linija-svitla.ua/ulichnye-22.htm">уличные</a> | |
410 | - | |
411 | - </li> | |
412 | - | |
413 | - | | |
414 | - | |
415 | - <li> | |
416 | - | |
417 | - <a href="http://www.linija-svitla.ua/abajur-3453.htm">Абажур</a> | |
418 | - | |
419 | - </li> | |
420 | - | |
421 | - | | |
422 | - | |
423 | - <li> | |
424 | - | |
425 | - <a href="http://www.linija-svitla.ua/lampochki-29.htm">лампочки</a> | |
426 | - | |
427 | - </li> | |
428 | - | |
281 | + </div> | |
282 | + </div> | |
283 | + </div> | |
284 | + </div> | |
429 | 285 | |
286 | + <div class="fb-wrapper_"> | |
287 | + <div class="container"> | |
288 | + <div class="facebook_container"> | |
289 | + <div class="fb-page" data-href="https://www.facebook.com/linija.svitla" data-width="500" data-small-header="true" data-adapt-container-width="true" data-hide-cover="true" data-show-facepile="true" data-show-posts="false"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/linija.svitla"><a href="https://www.facebook.com/linija.svitla">Лінія Світла</a></blockquote></div></div> | |
290 | + <div id="fb-root"></div> | |
291 | + <script>(function(d, s, id) { | |
292 | + var js, fjs = d.getElementsByTagName(s)[0]; | |
293 | + if (d.getElementById(id)) return; | |
294 | + js = d.createElement(s); js.id = id; | |
295 | + js.src = "//connect.facebook.net/uk_UA/sdk.js#xfbml=1&version=v2.5&appId=770340233026349"; | |
296 | + fjs.parentNode.insertBefore(js, fjs); | |
297 | + }(document, 'script', 'facebook-jssdk')); | |
298 | + </script> | |
299 | + </div> | |
300 | + </div> | |
301 | + </div> | |
430 | 302 | |
431 | - </ul> | |
432 | - <div class="clearfix"></div> | |
433 | - <br /> | |
434 | - <br /> | |
435 | - <br /> | |
436 | - <br /> | |
437 | - <ul class="cats_and_prices hidden"> | |
438 | - <li><a href="http://www.linija-svitla.ua/catalogues.htm">Каталоги</a></li>| | |
439 | - <li><a href="http://www.linija-svitla.ua/prices.htm">Прайсы</a></li> | |
440 | - </ul> | |
303 | + <footer> | |
304 | + <div class="container margin-top-40"> | |
305 | + <div class="row"> | |
306 | + <div class="col-md-3 col-lg-3"> | |
307 | + <div class="footer-title_new">Есть к нам вопросы?</div> | |
308 | + <table class="footer-phones-wr" cellspacing="0" cellpadding="0" border="0" width="100%"> | |
309 | + <tr> | |
310 | + <td> | |
311 | + <table cellpadding="0" cellspacing="0" border="0"> | |
312 | + <tr> | |
313 | + <td><img src="/images/new_img/ico/ico-7.png" alt=""></td> | |
314 | + <td><p class="footer_phones"><span>(044)</span> 339-92-33</p></td> | |
315 | + </tr> | |
316 | + </table> | |
317 | + </td> | |
318 | + </tr> | |
319 | + <tr> | |
320 | + <td> | |
321 | + <table cellpadding="0" cellspacing="0" border="0"> | |
322 | + <tr> | |
323 | + <td><img src="/images/new_img/ico/ico-8.png" alt=""></td> | |
324 | + <td><p class="footer_phones"><span>(044)</span> 776-60-67</p></td> | |
325 | + </tr> | |
326 | + </table> | |
327 | + </td> | |
328 | + </tr> | |
329 | + <tr> | |
330 | + <td> | |
331 | + <table cellpadding="0" cellspacing="0" border="0"> | |
332 | + <tr> | |
333 | + <td><img src="/images/new_img/ico/ico-9.png" alt=""></td> | |
334 | + <td><p class="footer_phones"><span>(044)</span> 282-85-08</p></td> | |
335 | + </tr> | |
336 | + </table> | |
337 | + </td> | |
338 | + </tr> | |
339 | + </table> | |
340 | + <a href="#" class="callback footer_callback header_callback" data-toggle="modal" data-target="#myCallback">перезвонить мне</a> | |
441 | 341 | |
442 | - <a class="b_cat" href-data="catalogues.htm"></a> | |
443 | - <a class="b_price" href-data="prices.htm"></a> | |
342 | + </div> | |
343 | + <div class="col-md-3 col-lg-3"> | |
344 | + <div class="footer-title_new">Вакансии интернет-магазина</div> | |
345 | + <ul class="new_vacancy style"> | |
346 | + <li>продавець-консультант</li> | |
347 | + <li>продавець-кассир</li> | |
348 | + </ul> | |
349 | + <p class="summary_footer">Отправить резюме </p> | |
350 | + <a class="mail-summary-footer" href="mailto:netreba@eltrade.com.ua">netreba@eltrade.com.ua</a> | |
351 | + </div> | |
352 | + <div class="col-md-3 col-lg-3"> | |
353 | + <div class="footer-title_new">Корпоративным клиентам</div> | |
354 | + <a class="catalogs-link-footer" href="http://www.linija-svitla.ua/catalogues.htm">каталоги</a> | |
355 | + </div> | |
356 | + <div class="col-md-3 col-lg-3"> | |
357 | + <div class="footer-title_new">Интернет-магазин в соцсетях</div> | |
358 | + <div class="fblock-content"> | |
359 | + <p class="seti-txt_">Присоединяйтесь к интернет-магазину Лiнiя Свiтла в социальных сетях. Вы всегда будете в курсе акций, распродаж и новинок.</p> | |
360 | + <ul class="ul soc"> | |
361 | + <li><a href="https://www.facebook.com/linija.svitla" class="facebook" target="_blank" rel="nofollow"></a></li> | |
362 | + <li><a href="http://vk.com/linija_svitla" class="vkontakte" target="_blank" rel="nofollow"></a></li> | |
363 | + <li><a href="#" class="twitter" target="_blank" rel="nofollow"></a></li> | |
364 | + <li><a href="#" class="youtube" target="_blank" rel="nofollow"></a></li> | |
365 | + <li><a href="https://plus.google.com/101559938155454540015/posts" class="google" target="_blank" rel="nofollow"></a></li> | |
366 | + </ul> | |
367 | + </div> | |
368 | + </div> | |
369 | + </div> | |
370 | + <div class="row"> | |
371 | + <ul class="copy first_list_copy col-md-12"> | |
372 | + <li><a href="about_project.htm">О проекте</a></li> | |
373 | + <li><a href="advertising.htm">Реклама</a></li> | |
374 | + <li><a href="rules.htm">Правила</a></li> | |
375 | + <li><a href="contacts.htm">Контакты</a></li> | |
376 | + <li><a href="sitemap.htm">Карта сайта</a></li> | |
377 | + </ul> | |
378 | + <ul class="copy second_list_copy col-md-12"> | |
379 | + <li class="title_tags_footer">СВЕТИЛЬНИКИ:</li> | |
380 | + <li> | |
381 | + <a href="http://www.linija-svitla.ua/lyustry-2.htm">люстры</a> | |
382 | + </li> | |
383 | + <li> | |
384 | + <a href="http://www.linija-svitla.ua/potolochnye-4.htm">потолочные</a> | |
385 | + </li> | |
386 | + <li> | |
387 | + <a href="http://www.linija-svitla.ua/bra-5.htm">бра</a> | |
388 | + </li> | |
389 | + <li> | |
390 | + <a href="http://www.linija-svitla.ua/torshery-6.htm">торшеры</a> | |
391 | + </li> | |
392 | + <li> | |
393 | + <a href="http://www.linija-svitla.ua/nastolnye-7.htm">настольные</a> | |
394 | + </li> | |
395 | + <li> | |
396 | + <a href="http://www.linija-svitla.ua/tochechnye-8.htm">точечные</a> | |
397 | + </li> | |
398 | + <li> | |
399 | + <a href="http://www.linija-svitla.ua/spoty-9.htm">споты</a> | |
400 | + </li> | |
401 | + <li> | |
402 | + <a href="http://www.linija-svitla.ua/detskie-15.htm">детские</a> | |
403 | + </li> | |
404 | + <li> | |
405 | + <a href="http://www.linija-svitla.ua/dlya-vannyh-14.htm">для ванных</a> | |
406 | + </li> | |
407 | + <li> | |
408 | + <a href="http://www.linija-svitla.ua/ulichnye-22.htm">уличные</a> | |
409 | + </li> | |
410 | + <li> | |
411 | + <a href="http://www.linija-svitla.ua/abajur-3453.htm">Абажур</a> | |
412 | + </li> | |
413 | + <li> | |
414 | + <a href="http://www.linija-svitla.ua/lampochki-29.htm">лампочки</a> | |
415 | + </li> | |
416 | + </ul> | |
417 | + </div> | |
418 | + </div> | |
419 | + <div class="box-studio-wr style"> | |
420 | + <div class="container"> | |
421 | + <div class="row"> | |
422 | + <div class="col-md-9 col-lg-9"><p>© 2010-2016 «Лiнiя свiтла» - интернет магазин продажи светильников, ламп, бра, торшеров и других осветительных систем. </p></div> | |
423 | + <div class="col-md-3 col-lg-3"> | |
424 | + <div class="artweb-wr"> | |
425 | + <a target="_blank" href="http://artweb.ua/">Создание сайтов</a> | |
426 | + <div class="artweb-img"> | |
427 | + <a target="_blank" href="http://artweb.ua/"><img src="/images/new_img/ico/ico-11.png"></a> | |
428 | + </div> | |
444 | 429 | </div> |
445 | 430 | </div> |
446 | 431 | </div> |
447 | - </footer> | |
448 | - | |
449 | - <div class="up_arr"> | |
450 | - <a href="#"> | |
451 | - <span class="icon"></span> | |
452 | - <span class="text">Наверх</span> | |
453 | - </a> | |
454 | 432 | </div> |
433 | + </div> | |
434 | + </footer> | |
455 | 435 | |
436 | +<!-- <div class="up_arr">--> | |
437 | +<!-- <a href="#">--> | |
438 | +<!-- <span class="icon"></span>--> | |
439 | +<!-- <span class="text">Наверх</span>--> | |
440 | +<!-- </a>--> | |
441 | +<!-- </div>--> | |
456 | 442 | |
457 | - <table border="0" cellspacing="0" cellpadding="0" class="reqsBox"> | |
458 | - </table> | |
459 | - <div class="debug"></div> | |
460 | - </div> | |
461 | - </div> | |
443 | + | |
444 | + <table border="0" cellspacing="0" cellpadding="0" class="reqsBox"> | |
445 | + </table> | |
446 | + <div class="debug"></div> | |
447 | + </div> | |
448 | +</div> | |
462 | 449 | |
463 | 450 | |
464 | 451 | ... | ... |
frontend/views/partial/brand_list.php deleted
1 | -<?php | |
2 | -use common\modules\product\models\Brand; | |
3 | -use yii\helpers\Html; | |
4 | -use common\components\artboximage\ArtboxImageHelper; | |
5 | - | |
6 | -$brands = Brand::find()->where(['in_menu' => 1])->all(); | |
7 | -$content = ''; | |
8 | - | |
9 | -foreach($brands as $brand){ | |
10 | - $content .= Html::tag('li', Html::a(Html::img(ArtboxImageHelper::getImageSrc($brand->imageUrl, 'brand_item')),\yii\helpers\Url::to(['catalog/brand', 'brand' => $brand->alias]) )); | |
11 | - | |
12 | -} | |
13 | - | |
14 | - | |
15 | -echo Html::tag('ul',$content); | |
16 | - |
frontend/views/site/index.php
... | ... | @@ -5,16 +5,21 @@ |
5 | 5 | |
6 | 6 | |
7 | 7 | <!---- SLIDER FOR Main page -------> |
8 | -<div class="container"> | |
8 | +<div class="new-slider-wr" style="position: relative"> | |
9 | 9 | <?= Slider::widget(["title"=>"HOME_SLIDER"]); ?> |
10 | +<!-- <div class="new_btn-slide"></div>--> | |
11 | +<!-- <div class="new_btn-slide"></div>--> | |
12 | + <div id="prev_slide"></div> | |
13 | + <div id="next_slide"></div> | |
10 | 14 | </div> |
11 | 15 | |
12 | 16 | |
13 | 17 | |
14 | 18 | |
19 | + | |
15 | 20 | <div class="clearfix"></div> |
16 | 21 | |
17 | -<div class="block-100 margin-top-20 margin-bottom-40"> | |
22 | +<div class="block-100 margin-bottom-40 background-body" style="margin-top: -10px;"> | |
18 | 23 | <div class="container"> |
19 | 24 | <div class="slider_mp_items"> |
20 | 25 | <div class="catalog_product_list view_table"> | ... | ... |
frontend/web/css/css_header.css
... | ... | @@ -28,9 +28,9 @@ html { |
28 | 28 | -webkit-text-size-adjust: 100% |
29 | 29 | } |
30 | 30 | |
31 | -body { | |
32 | - margin: 0 | |
33 | -} | |
31 | +/*body {*/ | |
32 | + /*margin: 0*/ | |
33 | +/*}*/ | |
34 | 34 | |
35 | 35 | article, |
36 | 36 | aside, |
... | ... | @@ -264,9 +264,9 @@ html { |
264 | 264 | -webkit-text-size-adjust: 100% |
265 | 265 | } |
266 | 266 | |
267 | -body { | |
268 | - margin: 0 | |
269 | -} | |
267 | +/*body {*/ | |
268 | + /*margin: 0*/ | |
269 | +/*}*/ | |
270 | 270 | |
271 | 271 | article, |
272 | 272 | aside, |
... | ... | @@ -1566,13 +1566,13 @@ html { |
1566 | 1566 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0) |
1567 | 1567 | } |
1568 | 1568 | |
1569 | -body { | |
1570 | - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
1571 | - font-size: 14px; | |
1572 | - line-height: 1.42857143; | |
1573 | - color: #333; | |
1574 | - background-color: #fff | |
1575 | -} | |
1569 | +/*body {*/ | |
1570 | + /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/ | |
1571 | + /*font-size: 14px;*/ | |
1572 | + /*line-height: 1.42857143;*/ | |
1573 | + /*color: #333;*/ | |
1574 | + /*background-color: #fff*/ | |
1575 | +/*}*/ | |
1576 | 1576 | |
1577 | 1577 | input, |
1578 | 1578 | button, |
... | ... | @@ -4598,8 +4598,8 @@ fieldset[disabled] .navbar-inverse .btn-link:focus { |
4598 | 4598 | padding: 8px 15px; |
4599 | 4599 | margin-bottom: 20px; |
4600 | 4600 | list-style: none; |
4601 | - background-color: #f5f5f5; | |
4602 | - border-radius: 4px | |
4601 | + border-radius: 4px; | |
4602 | + background: #fff !important; | |
4603 | 4603 | } |
4604 | 4604 | |
4605 | 4605 | .breadcrumb > li { |
... | ... | @@ -6441,40 +6441,40 @@ button.close { |
6441 | 6441 | line-height: 1 |
6442 | 6442 | } |
6443 | 6443 | |
6444 | -@media all and (transform-3d), | |
6445 | -(-webkit-transform-3d) { | |
6446 | - .carousel-inner > .item { | |
6447 | - -webkit-transition: -webkit-transform 0.6s ease-in-out; | |
6448 | - -o-transition: -o-transform 0.6s ease-in-out; | |
6449 | - transition: transform 0.6s ease-in-out; | |
6450 | - -webkit-backface-visibility: hidden; | |
6451 | - backface-visibility: hidden; | |
6452 | - -webkit-perspective: 1000px; | |
6453 | - perspective: 1000px | |
6454 | - } | |
6455 | - | |
6456 | - .carousel-inner > .item.next, | |
6457 | - .carousel-inner > .item.active.right { | |
6458 | - -webkit-transform: translate3d(100%, 0, 0); | |
6459 | - transform: translate3d(100%, 0, 0); | |
6460 | - left: 0 | |
6461 | - } | |
6462 | - | |
6463 | - .carousel-inner > .item.prev, | |
6464 | - .carousel-inner > .item.active.left { | |
6465 | - -webkit-transform: translate3d(-100%, 0, 0); | |
6466 | - transform: translate3d(-100%, 0, 0); | |
6467 | - left: 0 | |
6468 | - } | |
6469 | - | |
6470 | - .carousel-inner > .item.next.left, | |
6471 | - .carousel-inner > .item.prev.right, | |
6472 | - .carousel-inner > .item.active { | |
6473 | - -webkit-transform: translate3d(0, 0, 0); | |
6474 | - transform: translate3d(0, 0, 0); | |
6475 | - left: 0 | |
6476 | - } | |
6477 | -} | |
6444 | +/*@media all and (transform-3d),*/ | |
6445 | +/*(-webkit-transform-3d) {*/ | |
6446 | + /*.carousel-inner > .item {*/ | |
6447 | + /*-webkit-transition: -webkit-transform 0.6s ease-in-out;*/ | |
6448 | + /*-o-transition: -o-transform 0.6s ease-in-out;*/ | |
6449 | + /*transition: transform 0.6s ease-in-out;*/ | |
6450 | + /*-webkit-backface-visibility: hidden;*/ | |
6451 | + /*backface-visibility: hidden;*/ | |
6452 | + /*-webkit-perspective: 1000px;*/ | |
6453 | + /*perspective: 1000px*/ | |
6454 | + /*}*/ | |
6455 | + | |
6456 | + /*.carousel-inner > .item.next,*/ | |
6457 | + /*.carousel-inner > .item.active.right {*/ | |
6458 | + /*-webkit-transform: translate3d(100%, 0, 0);*/ | |
6459 | + /*transform: translate3d(100%, 0, 0);*/ | |
6460 | + /*left: 0*/ | |
6461 | + /*}*/ | |
6462 | + | |
6463 | + /*.carousel-inner > .item.prev,*/ | |
6464 | + /*.carousel-inner > .item.active.left {*/ | |
6465 | + /*-webkit-transform: translate3d(-100%, 0, 0);*/ | |
6466 | + /*transform: translate3d(-100%, 0, 0);*/ | |
6467 | + /*left: 0*/ | |
6468 | + /*}*/ | |
6469 | + | |
6470 | + /*.carousel-inner > .item.next.left,*/ | |
6471 | + /*.carousel-inner > .item.prev.right,*/ | |
6472 | + /*.carousel-inner > .item.active {*/ | |
6473 | + /*-webkit-transform: translate3d(0, 0, 0);*/ | |
6474 | + /*transform: translate3d(0, 0, 0);*/ | |
6475 | + /*left: 0*/ | |
6476 | + /*}*/ | |
6477 | +/*}*/ | |
6478 | 6478 | |
6479 | 6479 | .carousel-inner > .active, |
6480 | 6480 | .carousel-inner > .next, |
... | ... | @@ -6814,9 +6814,9 @@ button.close { |
6814 | 6814 | position: fixed |
6815 | 6815 | } |
6816 | 6816 | |
6817 | -@-ms-viewport { | |
6818 | - width: device-width | |
6819 | -} | |
6817 | +/*@-ms-viewport {*/ | |
6818 | + /*width: device-width*/ | |
6819 | +/*}*/ | |
6820 | 6820 | |
6821 | 6821 | .visible-xs, |
6822 | 6822 | .visible-sm, |
... | ... | @@ -7242,11 +7242,14 @@ html { |
7242 | 7242 | |
7243 | 7243 | body { |
7244 | 7244 | color: #333; |
7245 | - background: url(/images/bg.png) repeat; | |
7245 | + /*background: url(/images/bg.png) repeat;*/ | |
7246 | + | |
7246 | 7247 | font: 15px/16px 'Roboto', sans-serif; |
7247 | - min-width: 1000px | |
7248 | + /*min-width: 1000px*/ | |
7249 | +} | |
7250 | +body, .background-body { | |
7251 | + background:#edeeef; | |
7248 | 7252 | } |
7249 | - | |
7250 | 7253 | a { |
7251 | 7254 | color: #003569 |
7252 | 7255 | } |
... | ... | @@ -7257,10 +7260,7 @@ a.popup { |
7257 | 7260 | } |
7258 | 7261 | |
7259 | 7262 | .container { |
7260 | - margin: 0 auto; | |
7261 | - max-width: 1400px; | |
7262 | - min-width: 940px; | |
7263 | - padding: 0 15px | |
7263 | + min-width: 970px; | |
7264 | 7264 | } |
7265 | 7265 | |
7266 | 7266 | .row { |
... | ... | @@ -7468,12 +7468,16 @@ a.popup { |
7468 | 7468 | #top-nav-wrapper { |
7469 | 7469 | float: left; |
7470 | 7470 | width: 100%; |
7471 | - background: #d3d3d3; | |
7471 | + background: #a7acb0; | |
7472 | 7472 | position: fixed; |
7473 | - z-index: 1999 | |
7473 | + z-index: 1999; | |
7474 | + height: 40px; | |
7474 | 7475 | } |
7475 | 7476 | |
7476 | 7477 | #top-nav { |
7478 | + height: 40px; | |
7479 | + width: 100%; | |
7480 | + float: left; | |
7477 | 7481 | } |
7478 | 7482 | |
7479 | 7483 | #top-nav .phones { |
... | ... | @@ -7489,7 +7493,8 @@ a.popup { |
7489 | 7493 | } |
7490 | 7494 | |
7491 | 7495 | #top-nav .top-menu { |
7492 | - padding-left: 0 | |
7496 | + padding-left: 0; | |
7497 | + margin-bottom: 0; | |
7493 | 7498 | } |
7494 | 7499 | |
7495 | 7500 | #top-nav .top-menu li { |
... | ... | @@ -7498,17 +7503,46 @@ a.popup { |
7498 | 7503 | } |
7499 | 7504 | |
7500 | 7505 | #top-nav .top-menu li a { |
7501 | - background: url(/images/top_menu_divider.png) 0 0 no-repeat; | |
7502 | 7506 | font-size: 13px; |
7503 | 7507 | text-decoration: none; |
7504 | 7508 | text-transform: uppercase; |
7505 | - color: #000; | |
7506 | - padding: 18px 0px 18px 15px | |
7509 | + color: #fff; | |
7510 | + padding: 0 13px; | |
7511 | + line-height: 40px; | |
7507 | 7512 | } |
7508 | - | |
7513 | +#top-nav .top-menu li a:hover {text-decoration: underline} | |
7509 | 7514 | #top-nav .top-menu li:first-child a { |
7510 | - background: none | |
7515 | + background: none; | |
7516 | + padding-left: 0; | |
7517 | +} | |
7518 | + | |
7519 | +.cabinet_link_ { | |
7520 | + | |
7521 | + line-height: 40px; | |
7522 | + color: #fff; | |
7523 | + float: right; | |
7524 | + display: block; | |
7525 | + width: 100%; | |
7526 | + text-align: right; | |
7527 | + padding-right: 15px; | |
7528 | + border-left: 1px solid #959a9e; | |
7529 | + border-right: 1px solid #959a9e; | |
7530 | +} | |
7531 | +.cabinet_link_ span { | |
7532 | + position: relative; | |
7511 | 7533 | } |
7534 | +.cabinet_link_ span:before { | |
7535 | + content: ''; | |
7536 | + position: absolute; | |
7537 | + width: 14px; | |
7538 | + height: 16px; | |
7539 | + top: 50%; | |
7540 | + margin-top: -8px; | |
7541 | + left: -20px; | |
7542 | + background: url("../images/new_img/ico/ico-4.png") no-repeat; | |
7543 | +} | |
7544 | +.cabinet_link_:hover {color:#fff !important;} | |
7545 | + | |
7512 | 7546 | |
7513 | 7547 | #top-nav ul.top-menu > li:hover > ul { |
7514 | 7548 | display: block |
... | ... | @@ -7555,8 +7589,8 @@ header { |
7555 | 7589 | width: 100%; |
7556 | 7590 | float: left; |
7557 | 7591 | background: #fff; |
7558 | - padding: 30px 0 0 0; | |
7559 | - margin-top: 43px | |
7592 | + padding: 0; | |
7593 | + margin-top: 40px | |
7560 | 7594 | } |
7561 | 7595 | |
7562 | 7596 | header a#logo { |
... | ... | @@ -7576,12 +7610,17 @@ header a#logo img { |
7576 | 7610 | |
7577 | 7611 | #brand_bar ul { |
7578 | 7612 | padding: 0; |
7579 | - margin: 0 | |
7613 | + margin: 0 auto; | |
7614 | + display: table; | |
7580 | 7615 | } |
7581 | 7616 | |
7582 | 7617 | #brand_bar ul li { |
7583 | - float: left; | |
7584 | - display: block | |
7618 | + display: table-cell; | |
7619 | + padding: 0 8px; | |
7620 | + | |
7621 | +} | |
7622 | +#brand_bar ul li:first-child { | |
7623 | + /*margin-left: 0;*/ | |
7585 | 7624 | } |
7586 | 7625 | |
7587 | 7626 | #top-cart { |
... | ... | @@ -7929,25 +7968,17 @@ table.tbl_cart table.order_details .count_choise .minus-disabled { |
7929 | 7968 | #mainmenu { |
7930 | 7969 | float: left; |
7931 | 7970 | width: 100%; |
7932 | - background: #1f62a5; | |
7933 | - background: -moz-linear-gradient(top, #1f62a5 1%, #115597 100%); | |
7934 | - background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #1f62a5), color-stop(100%, #115597)); | |
7935 | - background: -webkit-linear-gradient(top, #1f62a5 1%, #115597 100%); | |
7936 | - background: -o-linear-gradient(top, #1f62a5 1%, #115597 100%); | |
7937 | - background: -ms-linear-gradient(top, #1f62a5 1%, #115597 100%); | |
7938 | - background: linear-gradient(to bottom, #1f62a5 1%, #115597 100%); | |
7939 | - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1f62a5', endColorstr='#115597', GradientType=0) | |
7971 | + background: #0f6fc7; | |
7940 | 7972 | } |
7941 | - | |
7973 | +#mainmenu .container {position: relative;} | |
7942 | 7974 | #menu-bar { |
7943 | 7975 | width: 100%; |
7944 | - margin: 0px; | |
7945 | - padding: 0px; | |
7946 | - height: 49px; | |
7976 | + margin: 0; | |
7977 | + padding: 0; | |
7978 | + height: 48px; | |
7947 | 7979 | line-height: 100%; |
7948 | - background: transparent; | |
7949 | 7980 | position: relative; |
7950 | - z-index: 999 | |
7981 | + z-index: 999; | |
7951 | 7982 | } |
7952 | 7983 | |
7953 | 7984 | #menu-bar li { |
... | ... | @@ -7955,201 +7986,287 @@ table.tbl_cart table.order_details .count_choise .minus-disabled { |
7955 | 7986 | padding: 0; |
7956 | 7987 | float: left; |
7957 | 7988 | list-style: none; |
7958 | - position: relative; | |
7989 | + height: 48px; | |
7959 | 7990 | } |
7960 | 7991 | |
7961 | -#menu-bar > li:hover { | |
7962 | - background: rgba(0, 0, 0, 0.1) | |
7963 | -} | |
7964 | 7992 | |
7965 | -#menu-bar li:last-child a .main_menu_divider { | |
7966 | - background: none | |
7967 | -} | |
7968 | 7993 | |
7969 | 7994 | #menu-bar a { |
7970 | - background: url(/images/mainmenu_sub_arrow.png) 50% 90% no-repeat; | |
7971 | 7995 | font-family: 'Roboto', sans-serif; |
7972 | 7996 | font-style: normal; |
7973 | - font-size: 13px; | |
7997 | + font-size: 15px; | |
7974 | 7998 | color: #fff; |
7975 | 7999 | text-decoration: none; |
7976 | 8000 | display: block; |
7977 | - padding: 18px 20px 19px 20px; | |
8001 | + padding: 0 20px; | |
7978 | 8002 | margin: 0; |
7979 | - text-transform: uppercase | |
8003 | + text-transform: uppercase; | |
8004 | + line-height: 48px; | |
7980 | 8005 | } |
7981 | 8006 | |
7982 | -#menu-bar > li > a { | |
7983 | - position: relative | |
8007 | +/***new-main-menu***/ | |
8008 | +.no-padding-left {padding-left: 0!important;} | |
8009 | +.no-padding-right {padding-right: 0!important;} | |
8010 | +#menu-bar li { | |
8011 | + border-right: 1px solid #075fb0; | |
7984 | 8012 | } |
7985 | - | |
7986 | -#menu-bar > li:hover a { | |
7987 | - background: none | |
8013 | +#menu-bar li:first-child { | |
8014 | + border-left: 1px solid #075fb0; | |
7988 | 8015 | } |
7989 | - | |
7990 | -#menu-bar li ul li a { | |
7991 | - float: left; | |
7992 | - border-right: 1px solid #f3f3f3 !important; | |
7993 | - margin: 0 | |
8016 | +#menu-bar li:hover, .new_catalog.show { | |
8017 | + background: #075fb0; | |
7994 | 8018 | } |
7995 | 8019 | |
7996 | -#menu-bar li ul li:first-child a { | |
7997 | -} | |
7998 | 8020 | |
7999 | -#menu-bar .active a, | |
8000 | -#menu-bar li:hover > a { | |
8001 | - color: #fff | |
8002 | -} | |
8003 | 8021 | |
8004 | -#menu-bar ul li { | |
8005 | - height: 165px | |
8006 | -} | |
8007 | 8022 | |
8008 | -#menu-bar ul li:hover a, | |
8009 | -#menu-bar li:hover li a { | |
8010 | - background: none; | |
8011 | - border: 1px solid #f3f3f3; | |
8012 | - color: #666; | |
8013 | - -box-shadow: none; | |
8014 | - -webkit-box-shadow: none; | |
8015 | - -moz-box-shadow: none; | |
8016 | - border-bottom-left-radius: 10px; | |
8017 | - -webkit-border-bottom-left-radius: 10px; | |
8018 | - -moz-border-radius-bottomleft: 10px; | |
8019 | - border-bottom-right-radius: 10px; | |
8020 | - -webkit-border-bottom-right-radius: 10px; | |
8021 | - -moz-border-radius-bottomright: 10px | |
8022 | -} | |
8023 | +.new_catalog {} | |
8024 | +.new_cat_link, .sale_catalog { | |
8025 | + position: relative; | |
8023 | 8026 | |
8024 | -#menu-bar ul a:hover { | |
8025 | - background: #fff !important; | |
8026 | - border: 1px solid #d9d9d9 !important; | |
8027 | - border-top: none; | |
8028 | - border-bottom: none; | |
8029 | - color: #1b548d !important; | |
8030 | - border-radius: 0; | |
8031 | - -webkit-border-radius: 0; | |
8032 | - -moz-border-radius: 0; | |
8033 | - text-decoration: underline | |
8034 | 8027 | } |
8035 | 8028 | |
8036 | -#menu-bar li:hover > ul { | |
8037 | - display: block | |
8029 | +.new_cat_link:before { | |
8030 | + content: ''; | |
8031 | + position: absolute; | |
8032 | + width: 9px; | |
8033 | + height: 5px; | |
8034 | + background: url(../images/new_img/ico/ico-1.png) no-repeat; | |
8035 | + top: 50%;margin-top: -2px; | |
8036 | + right: 6px; | |
8037 | + transform: rotate(180deg); | |
8038 | + -webkit-transform: rotate(180deg); | |
8039 | +} | |
8040 | +.sale_catalog .new_cat_link:before {right: 0;} | |
8041 | +.sale_catalog.show-sale .new_cat_link:before { | |
8042 | + transform: rotate(0deg); | |
8043 | + -webkit-transform: rotate(0deg); | |
8044 | +} | |
8045 | +.sale_catalog {position: relative;z-index: 99992} | |
8046 | +.sale_catalog div { | |
8047 | + display: none; | |
8048 | + position: absolute; | |
8049 | + left: 0; | |
8050 | + top: 29px; | |
8051 | + background: #fff; | |
8052 | + width: 120px; | |
8053 | + box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.35); | |
8054 | + padding:5px 10px; | |
8055 | + z-index: 99991; | |
8038 | 8056 | } |
8039 | - | |
8040 | -#menu-bar ul { | |
8041 | - width: 690px; | |
8042 | - background: #f3f3f3; | |
8057 | +.sale-overlay { | |
8058 | + position: fixed; | |
8059 | + width: 100%; | |
8060 | + height: 100%; | |
8061 | + background: #fff; | |
8062 | + z-index: 1; | |
8063 | +} | |
8064 | +.sale_catalog:hover div{display: block} | |
8065 | +.sale_catalog div ul {list-style: none;width: 100%;float: left;padding: 0 !important;} | |
8066 | +.sale_catalog div ul li {float: left;width: 100%} | |
8067 | +.sale_catalog div ul li a{ | |
8068 | + text-decoration: none !important; | |
8069 | + text-transform: none !important; | |
8070 | + color: #0f6fc7 !important; | |
8071 | + padding: 0 !important; | |
8072 | + line-height: 26px !important; | |
8073 | +} | |
8074 | +.sale_catalog:hover a {text-decoration: none !important;} | |
8075 | +.sale_catalog div ul li a:hover {text-decoration: underline !important;} | |
8076 | +.hide-cat-menu { | |
8043 | 8077 | display: none; |
8044 | - margin: 0; | |
8045 | - padding: 0; | |
8046 | 8078 | position: absolute; |
8047 | - top: 52px; | |
8079 | + width: 100%; | |
8080 | + top: 48px; | |
8048 | 8081 | left: 0; |
8049 | - -webkit-border-radius: 0 0 10px 10px; | |
8050 | - border-radius: 0 0 10px 10px; | |
8051 | - -webkit-box-shadow: 4px 5px 1px 5px rgba(0, 0, 0, 0.2); | |
8052 | - box-shadow: 4px 5px 1px 5px rgba(0, 0, 0, 0.2) | |
8082 | + background: #fff; | |
8083 | + box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35); | |
8053 | 8084 | } |
8085 | +.new_catalog.show a:before, .sale_catalog:hover a:before { | |
8086 | + transform: rotate(0deg); | |
8087 | + -webkit-transform: rotate(0deg); | |
8054 | 8088 | |
8055 | -#menu-bar li:nth-child(n+6) ul { | |
8056 | - left: inherit; | |
8057 | - right: 0; | |
8058 | 8089 | } |
8059 | - | |
8060 | -#menu-bar ul li { | |
8061 | - display: table-cell; | |
8062 | - margin: 0; | |
8063 | - padding: 0 | |
8090 | +.new_catalog.show .hide-cat-menu {display: block;} | |
8091 | +.main-cat_{padding-bottom: 40px} | |
8092 | +.main-cat_ ul { | |
8093 | + padding-left: 0; | |
8064 | 8094 | } |
8065 | - | |
8066 | -#menu-bar ul a { | |
8067 | - width: 138px; | |
8068 | - padding: 10px 0px 10px 0px; | |
8069 | - color: #424242 !important; | |
8070 | - font-size: 12px; | |
8071 | - font-style: normal; | |
8072 | - font-family: arial; | |
8073 | - font-weight: normal; | |
8074 | - text-align: center | |
8095 | +.main-cat_ ul li { | |
8096 | + width: 100%; | |
8097 | + float: left; | |
8098 | + border-left: 0 !important; | |
8099 | + border-right: 0 !important; | |
8100 | + height: 40px; | |
8101 | + border-bottom: 1px solid #edeeef; | |
8075 | 8102 | } |
8076 | - | |
8077 | -#menu-bar .main_menu_divider { | |
8078 | - width: 11px; | |
8079 | - height: 6px; | |
8080 | - top: 0; | |
8081 | - right: -5px; | |
8082 | - position: absolute; | |
8083 | - background: url(/images/cats_menu_divider.png) | |
8103 | +.main-cat_ ul li a { | |
8104 | + color: #4b4b4b !important; | |
8105 | + padding-right: 0 !important; | |
8106 | + position: relative; | |
8084 | 8107 | } |
8085 | - | |
8086 | -#menu-bar .main_menu_down_arrow { | |
8087 | - display: none; | |
8088 | - width: 11px; | |
8089 | - height: 6px; | |
8090 | - bottom: -6px; | |
8091 | - right: 45%; | |
8108 | +.main-cat_ ul li a:before { | |
8109 | + width: 5px; | |
8110 | + height: 9px; | |
8111 | + content: ''; | |
8112 | + background: url("../images/new_img/ico/ico-2.png") no-repeat; | |
8092 | 8113 | position: absolute; |
8093 | - background: url(/images/mainmenu_arrow_hover.png) 50% 90% no-repeat | |
8114 | + top:50%; | |
8115 | + margin-top: -4px; | |
8116 | + right: 20px; | |
8117 | + transform: rotate(0deg); | |
8118 | + -webkit-transform: rotate(0deg) !important; | |
8094 | 8119 | } |
8095 | - | |
8096 | -#menu-bar > li:hover > a .main_menu_down_arrow { | |
8097 | - display: block; | |
8098 | - z-index: 9 | |
8120 | +.main-cat_ ul li.act a:before { | |
8121 | + background: url("../images/new_img/ico/ico-3.png") no-repeat; | |
8099 | 8122 | } |
8100 | 8123 | |
8101 | -#menu-bar .menu-bar-cat-name { | |
8102 | - text-transform: none; | |
8103 | - font-size: 13px | |
8124 | +/*.hide-cat-menu li:hover a {color:#4b4b4b !important;}*/ | |
8125 | +.main-cat_ ul li.act a {color: #fff !important; } | |
8126 | +.hide-cat-menu li:hover { | |
8127 | + background: #fff !important; | |
8104 | 8128 | } |
8105 | - | |
8106 | -#menu-bar { | |
8107 | - display: inline-block | |
8129 | +.hide-cat-menu li.act { | |
8130 | + background: #a7acb0 !important; | |
8108 | 8131 | } |
8109 | - | |
8110 | -html[xmlns] #menu-bar { | |
8111 | - display: block | |
8132 | +.hide-cat-sub { | |
8133 | + position: relative; | |
8134 | + background: #edeeef; | |
8135 | + height: 100%; | |
8112 | 8136 | } |
8113 | 8137 | |
8114 | -* html #menu-bar { | |
8115 | - height: 1% | |
8116 | -} | |
8117 | 8138 | |
8118 | -.wrapper { | |
8119 | - float: left; | |
8139 | + | |
8140 | +.hide-cat-sub ul{ | |
8141 | + display: none; | |
8142 | + padding-left: 0 !important; | |
8143 | +} | |
8144 | +.hide-cat-sub ul.active-show { | |
8145 | + display: block; | |
8146 | +} | |
8147 | +.hide-cat-menu table td {vertical-align: top;} | |
8148 | +.sub-cat_ ul li { | |
8149 | + border:0 !important; | |
8150 | + height: 180px !important; | |
8151 | + position: relative; | |
8152 | + margin-top: 20px !important; | |
8153 | +} | |
8154 | +.sub-cat_ ul li table { | |
8120 | 8155 | width: 100%; |
8121 | - background: transparent | |
8156 | + height: 110px; | |
8157 | + text-align: center; | |
8122 | 8158 | } |
8123 | - | |
8124 | -.wrapper.white { | |
8125 | - background: #fff | |
8159 | +.sub-cat_ ul li table td { | |
8160 | + vertical-align: middle; | |
8126 | 8161 | } |
8127 | - | |
8128 | -#bigSlider, | |
8129 | -#catSlider { | |
8162 | +.sub-cat_ ul li table img { | |
8163 | + max-width: 100px; | |
8164 | + max-height: 110px; | |
8165 | + vertical-align: middle; | |
8166 | +} | |
8167 | +.sub-cat_ ul li a { | |
8168 | + display: block; | |
8169 | + width: 100%; | |
8170 | + height: 100%; | |
8171 | + text-decoration: none; | |
8172 | + position: relative; | |
8173 | + padding: 0 15px !important; | |
8130 | 8174 | float: left; |
8175 | +} | |
8176 | +.sub-cat_ ul li:hover a div { | |
8131 | 8177 | width: 100%; |
8178 | + float: left; | |
8132 | 8179 | position: relative; |
8133 | - background: #fff; | |
8134 | - border-bottom: 3px solid #b3b3b3; | |
8135 | - overflow: hidden | |
8180 | + width: 100%; | |
8181 | + height: 100%; | |
8136 | 8182 | } |
8137 | 8183 | |
8138 | -#catSlider { | |
8139 | - border-bottom: none | |
8140 | -} | |
8184 | +.sub-cat_ ul li:hover a div{ | |
8185 | + box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35); | |
8141 | 8186 | |
8142 | -#bigSlider .carousel, | |
8143 | -#catSlider .carousel { | |
8144 | - margin: 0 auto; | |
8145 | - max-width: 1400px; | |
8146 | - min-width: 1000px | |
8187 | + height: auto; | |
8188 | + min-height: 170px; | |
8189 | + top: 0; | |
8190 | + left: 0; | |
8191 | + background: #fff; | |
8192 | + padding-bottom: 10px !important; | |
8193 | + z-index: 99999; | |
8147 | 8194 | } |
8195 | +.sub-cat_ ul li:hover {background: none !important;} | |
8148 | 8196 | |
8149 | -#bigSlider .carousel-indicators { | |
8150 | - background: #fff; | |
8151 | - border: 3px solid #595756; | |
8152 | - padding: 6px 28px; | |
8197 | + | |
8198 | +.sub-cat_ ul li span { | |
8199 | + display: block; | |
8200 | + color: #0f6fc7; | |
8201 | + font-size: 14px; | |
8202 | + line-height: normal; | |
8203 | + text-align: center; | |
8204 | + height: 34px; | |
8205 | + overflow: hidden; | |
8206 | + margin-top: 10px; | |
8207 | +} | |
8208 | +.sub-cat_ ul li a:hover span {text-decoration: underline !important; height: auto;} | |
8209 | + | |
8210 | + | |
8211 | + | |
8212 | + | |
8213 | + | |
8214 | + | |
8215 | + | |
8216 | +/******************/ | |
8217 | + | |
8218 | + | |
8219 | + | |
8220 | + | |
8221 | + | |
8222 | + | |
8223 | + | |
8224 | + | |
8225 | + | |
8226 | + | |
8227 | + | |
8228 | + | |
8229 | + | |
8230 | + | |
8231 | + | |
8232 | + | |
8233 | + | |
8234 | + | |
8235 | +.wrapper { | |
8236 | + float: left; | |
8237 | + width: 100%; | |
8238 | + background: transparent | |
8239 | +} | |
8240 | + | |
8241 | +.wrapper.white { | |
8242 | + background: #fff | |
8243 | +} | |
8244 | + | |
8245 | +#bigSlider, | |
8246 | +#catSlider { | |
8247 | + float: left; | |
8248 | + width: 100%; | |
8249 | + position: relative; | |
8250 | + background: #fff; | |
8251 | + border-bottom: 3px solid #b3b3b3; | |
8252 | + overflow: hidden | |
8253 | +} | |
8254 | + | |
8255 | +#catSlider { | |
8256 | + border-bottom: none | |
8257 | +} | |
8258 | + | |
8259 | +#bigSlider .carousel, | |
8260 | +#catSlider .carousel { | |
8261 | + margin: 0 auto; | |
8262 | + max-width: 1400px; | |
8263 | + min-width: 1000px | |
8264 | +} | |
8265 | + | |
8266 | +#bigSlider .carousel-indicators { | |
8267 | + background: #fff; | |
8268 | + border: 3px solid #595756; | |
8269 | + padding: 6px 28px; | |
8153 | 8270 | width: auto; |
8154 | 8271 | -webkit-border-radius: 5px; |
8155 | 8272 | -moz-border-radius: 5px; |
... | ... | @@ -9037,17 +9154,12 @@ ul.parameters-list li a { |
9037 | 9154 | text-decoration: none |
9038 | 9155 | } |
9039 | 9156 | |
9040 | -.facebook { | |
9041 | - float: left; | |
9042 | - width: 100%; | |
9043 | - padding: 5px 15px | |
9157 | +.fb-wrapper_ { | |
9158 | + width: 100%;float: left; background: #fff; padding-bottom: 80px; | |
9044 | 9159 | } |
9045 | 9160 | |
9046 | 9161 | .facebook_container { |
9047 | 9162 | background: #fff; |
9048 | - -webkit-border-radius: 10px; | |
9049 | - -moz-border-radius: 10px; | |
9050 | - border-radius: 10px | |
9051 | 9163 | } |
9052 | 9164 | |
9053 | 9165 | ._h7l { |
... | ... | @@ -9058,20 +9170,20 @@ ul.parameters-list li a { |
9058 | 9170 | footer { |
9059 | 9171 | float: left; |
9060 | 9172 | width: 100%; |
9061 | - padding: 0px 15px; | |
9062 | 9173 | margin-bottom: -40px |
9063 | 9174 | } |
9064 | 9175 | |
9065 | 9176 | footer .content-title { |
9066 | 9177 | display: block; |
9067 | - margin-bottom: 30px; | |
9068 | - font-size: 20px | |
9178 | + font-size: 16px; | |
9179 | + color: #4b4b4b; | |
9069 | 9180 | } |
9070 | 9181 | |
9071 | 9182 | .fblock-content p { |
9072 | 9183 | font-size: 13px |
9073 | 9184 | } |
9074 | 9185 | |
9186 | + | |
9075 | 9187 | .fblock-content a { |
9076 | 9188 | font-size: 16px; |
9077 | 9189 | color: #19549d |
... | ... | @@ -9085,6 +9197,488 @@ footer .content-title { |
9085 | 9197 | list-style-type: none |
9086 | 9198 | } |
9087 | 9199 | |
9200 | + | |
9201 | +/***footer-new***/ | |
9202 | +.seti-txt_ { | |
9203 | + font-size: 14px; | |
9204 | + color: #4b4b4b; | |
9205 | +} | |
9206 | +.footer-title_new { | |
9207 | + font-weight: bold; | |
9208 | + display: block; | |
9209 | + font-size: 16px; | |
9210 | + color: #4b4b4b; | |
9211 | + margin-bottom: 10px; | |
9212 | +} | |
9213 | +.catalogs-link-footer { | |
9214 | + font-size: 14px; | |
9215 | + color: #0f6fc7 !important; | |
9216 | + position: relative; | |
9217 | + text-decoration: none; | |
9218 | + padding-left: 20px; | |
9219 | +} | |
9220 | +.catalogs-link-footer:before { | |
9221 | + width: 13px; | |
9222 | + height: 16px; | |
9223 | + background: url("../images/new_img/ico/ico-10.png") no-repeat; | |
9224 | + content: ''; | |
9225 | + position: absolute; | |
9226 | + top: 50%; | |
9227 | + margin-top: -8px; | |
9228 | + left: 0; | |
9229 | +} | |
9230 | +.catalogs-link-footer:hover { | |
9231 | + text-decoration: underline; | |
9232 | +} | |
9233 | +.style {width: 100%;float: left;} | |
9234 | +.new_vacancy { | |
9235 | + list-style: none; | |
9236 | + padding-left: 0; | |
9237 | + margin: 0; | |
9238 | +} | |
9239 | +.new_vacancy li { | |
9240 | + width: 100%; | |
9241 | + float: left; | |
9242 | + padding-left: 11px; | |
9243 | + position: relative; | |
9244 | + font-size: 14px; | |
9245 | + color: #4b4b4b; | |
9246 | +} | |
9247 | +.new_vacancy li:before { | |
9248 | + position: absolute; | |
9249 | + content: ''; | |
9250 | + width: 5px; | |
9251 | + height: 5px; | |
9252 | + border-radius: 100%; | |
9253 | + background: #a7acb0; | |
9254 | + left: 0; | |
9255 | + top: 50%; | |
9256 | + margin-top: -2px; | |
9257 | +} | |
9258 | + | |
9259 | +.summary_footer { | |
9260 | + font-size: 14px; | |
9261 | + color: #4b4b4b; | |
9262 | + width: 100%; | |
9263 | + float: left; | |
9264 | + margin-bottom: 0; | |
9265 | + margin-top: 38px; | |
9266 | +} | |
9267 | +.mail-summary-footer { | |
9268 | + font-size: 14px; | |
9269 | + color: #0f6fc7 !important; | |
9270 | + text-decoration: none; | |
9271 | +} | |
9272 | +.footer-phones-wr { | |
9273 | + | |
9274 | +} | |
9275 | +.footer_phones { | |
9276 | + font-size: 22px; | |
9277 | + color: #4b4b4b; | |
9278 | + margin: 0; | |
9279 | +} | |
9280 | +.footer_phones span { | |
9281 | + color: #a7acb0; | |
9282 | +} | |
9283 | + | |
9284 | +.footer-phones-wr tr td { | |
9285 | + vertical-align: middle; | |
9286 | + height: 28px; | |
9287 | +} | |
9288 | +.footer-phones-wr img { | |
9289 | + vertical-align: middle; | |
9290 | +} | |
9291 | +.footer-phones-wr table tr td:first-child { | |
9292 | + width: 26px; | |
9293 | +} | |
9294 | +.footer_callback {font-size: 14px !important;margin-top: 3px;} | |
9295 | + | |
9296 | +.box-studio-wr { | |
9297 | + height: 48px; | |
9298 | + margin-top: 20px; | |
9299 | + background: #a7acb0; | |
9300 | +} | |
9301 | +.box-studio-wr p { | |
9302 | + margin: 0; | |
9303 | + font-size: 13px; | |
9304 | + color: #fff; | |
9305 | + line-height: 48px; | |
9306 | +} | |
9307 | +.artweb-wr { | |
9308 | + width: 100%; | |
9309 | + float: right; | |
9310 | + height: 48px; | |
9311 | + position: relative; | |
9312 | +} | |
9313 | + | |
9314 | +.artweb-wr a { | |
9315 | + height: 48px; | |
9316 | + line-height: 48px; | |
9317 | + text-decoration: underline; | |
9318 | + font-size: 13px; | |
9319 | + float: right; | |
9320 | + margin-right: 36px; | |
9321 | + color: #fff; | |
9322 | +} | |
9323 | +.artweb-img { | |
9324 | + width: 24px; | |
9325 | + height: 23px; | |
9326 | + position: absolute; | |
9327 | + right: 0; | |
9328 | + top: 50%; | |
9329 | + margin-top: -11px; | |
9330 | + cursor: default; | |
9331 | +} | |
9332 | +.artweb-img a { | |
9333 | + margin: 0; | |
9334 | + padding: 0; | |
9335 | + width: 24px; | |
9336 | + height: 23px; | |
9337 | + display: block; | |
9338 | +} | |
9339 | +.artweb-img img { | |
9340 | + width: 100%; | |
9341 | + height: 100%; | |
9342 | + float: left; | |
9343 | +} | |
9344 | +.artweb-wr:hover a {text-decoration: none;} | |
9345 | + /****************/ | |
9346 | + /*******brbeadcrumbs*********/ | |
9347 | +.brbeadcrumbs-wr { | |
9348 | + height: 83px; | |
9349 | + line-height: 83px; | |
9350 | +} | |
9351 | + /********posts-all********/ | |
9352 | + | |
9353 | +.section-posts-wr { | |
9354 | + background: #fff; | |
9355 | + padding-top: 47px; | |
9356 | + padding-bottom: 47px; | |
9357 | +} | |
9358 | + | |
9359 | +.search-title { | |
9360 | + font-size: 15px; | |
9361 | + color: #4b4b4b; | |
9362 | + text-transform: uppercase; | |
9363 | + font-weight: 700; | |
9364 | +} | |
9365 | + | |
9366 | +.blog-search .form-control { | |
9367 | + height: 66px; | |
9368 | + border: 16px solid #a7acb0; | |
9369 | + margin-top: 10px; | |
9370 | + outline: none !important; | |
9371 | + border-radius: 0 !important; | |
9372 | + background: #fff!important; | |
9373 | +} | |
9374 | +input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { | |
9375 | + background: #fff!important; | |
9376 | +} | |
9377 | +.blog-search .form-control:focus { | |
9378 | + box-shadow: 1px 2px 2px 0px rgba(215, 215, 215, 0.75) inset; transition: 0.1s;-webkit-transition: 0.1s; | |
9379 | +} | |
9380 | +.blog-search .new-btn-search { | |
9381 | + top: 28px; | |
9382 | + right: 16px; | |
9383 | +} | |
9384 | + | |
9385 | + | |
9386 | +.posts-title, .seo-text h2:first-child { | |
9387 | + margin-top: 0; | |
9388 | +} | |
9389 | +.seo-text h2, .seo-text h1, .seo-text h3, .posts-title { | |
9390 | + text-transform: uppercase; | |
9391 | +} | |
9392 | +.seo-text h2, .posts-title {font-size: 15px; font-weight: 700; margin-bottom: 0;} | |
9393 | +.posts-margin {margin-top: 47px;} | |
9394 | +.seo-text p { | |
9395 | + font-size: 14px; | |
9396 | + color: #4b4b4b; | |
9397 | + margin-top: 19px; | |
9398 | + margin-bottom: 0; | |
9399 | + line-height: 18px; | |
9400 | +} | |
9401 | +.seo-text p:first-of-type {margin-top: 10px;} | |
9402 | + | |
9403 | +.posts-links { | |
9404 | + padding: 0 0 0 15px; | |
9405 | +} | |
9406 | +.posts-links li { | |
9407 | + width: 100%; | |
9408 | + float: left; | |
9409 | + color: #a7acb0; | |
9410 | + margin-top: 15px; | |
9411 | +} | |
9412 | +.posts-links li:first-child {margin-top: 9px;} | |
9413 | +.posts-links li a { | |
9414 | + color: #0f6fc7; | |
9415 | + font-size: 14px; | |
9416 | +} | |
9417 | +.posts-line-wr {margin-top: 17px;} | |
9418 | +.posts-line-wr a { | |
9419 | + font-size: 13px; | |
9420 | + color: #0f6fc7; | |
9421 | + float: right; | |
9422 | + padding: 0 13px 0 6px; | |
9423 | + position: relative; | |
9424 | + height:16px; | |
9425 | + display: block; | |
9426 | +} | |
9427 | +.posts-line-wr a:hover { | |
9428 | + text-decoration: none !important; | |
9429 | + opacity: 0.8; | |
9430 | +} | |
9431 | +.posts-line-wr a:before { | |
9432 | + width: 7px; | |
9433 | + height: 7px; | |
9434 | + background: url("../images/new_img/ico/ico-12.png") no-repeat; | |
9435 | + content: ''; | |
9436 | + position: absolute; | |
9437 | + top: 50%; | |
9438 | + margin-top: -3px; | |
9439 | + right: 0; | |
9440 | +} | |
9441 | +.all_seo_text:before { | |
9442 | + height: 4px; | |
9443 | + background: url("../images/new_img/ico/ico-13.png") no-repeat !important; | |
9444 | + margin-top: -2px; | |
9445 | +} | |
9446 | +.all_seo_text.show:before { | |
9447 | + transform: rotate(180deg); | |
9448 | + -webkit-transform: rotate(180deg); | |
9449 | +} | |
9450 | +.posts-line-wr div {overflow: hidden;} | |
9451 | +.posts-line-wr div span { | |
9452 | + width: 100%; | |
9453 | + height: 12px; | |
9454 | + border-bottom: 1px solid #e4e4e4; | |
9455 | + display: block; | |
9456 | +} | |
9457 | + | |
9458 | +.posts-links { | |
9459 | + height: 399px; | |
9460 | + overflow: hidden; | |
9461 | + min-height: 399px; | |
9462 | + margin-bottom: 0; | |
9463 | +} | |
9464 | + | |
9465 | +.seo-text { | |
9466 | + position: relative; | |
9467 | + height: 399px; | |
9468 | + overflow: hidden; | |
9469 | + min-height: 415px; | |
9470 | +} | |
9471 | +.seo-text:before { | |
9472 | + content: ''; | |
9473 | + display: block; | |
9474 | + position: absolute; | |
9475 | + bottom: 0; | |
9476 | + right: 0; | |
9477 | + left: 0; | |
9478 | + height: 45px; | |
9479 | + background: -moz-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%); | |
9480 | + background: -webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,255,255,0)),color-stop(100%,#fff)); | |
9481 | + background: -webkit-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%); | |
9482 | + background: -o-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%); | |
9483 | + background: -ms-linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%); | |
9484 | + background: linear-gradient(top,rgba(255,255,255,0) 0,#fff 100%); | |
9485 | +} | |
9486 | +.seo-text.show { | |
9487 | + height:auto; | |
9488 | +} | |
9489 | +.seo-text.show:before {display: none;} | |
9490 | + | |
9491 | + /****************/ | |
9492 | + /*******special********/ | |
9493 | +.home-popular-wr {margin-top: 28px;} | |
9494 | +.home-popular { | |
9495 | + list-style: none; | |
9496 | +} | |
9497 | +.home-popular li { | |
9498 | + float: left; | |
9499 | + margin-left: 20px; | |
9500 | +} | |
9501 | +.home-popular li:first-child {margin-left: 0;} | |
9502 | +.home-popular li a { | |
9503 | + text-decoration: none!important; | |
9504 | + text-transform: uppercase !important; | |
9505 | + color: #0f6fc7 !important; | |
9506 | + font-size: 15px !important; | |
9507 | + font-weight: 700; | |
9508 | +} | |
9509 | +.home-popular li.active a { | |
9510 | + color: #4b4b4b !important; | |
9511 | +} | |
9512 | + | |
9513 | +.home-popular-slider {margin-top: 6px;} | |
9514 | + | |
9515 | +.short-desc_wr { | |
9516 | + padding: 0 15px; | |
9517 | + margin-top: 19px; | |
9518 | +} | |
9519 | + | |
9520 | +.in_stock_wr { | |
9521 | + font-size: 11px; | |
9522 | + color: #a7acb0; | |
9523 | + margin-top: 9px; | |
9524 | +} | |
9525 | +.in_stock_ {float: left} | |
9526 | +.in_stock_ span { | |
9527 | + position: relative; | |
9528 | + padding-left: 12px; | |
9529 | +} | |
9530 | +.yes_stock { | |
9531 | + float: left; | |
9532 | +} | |
9533 | +.no_stock { | |
9534 | + float: right; | |
9535 | +} | |
9536 | +.in_stock_ span:before { | |
9537 | + left: 0; | |
9538 | + top: 50%; | |
9539 | + content: ''; | |
9540 | + position: absolute; | |
9541 | +} | |
9542 | +.yes_stock:before { | |
9543 | + width: 8px; | |
9544 | + height: 6px; | |
9545 | + margin-top: -3px; | |
9546 | + background: url("../images/new_img/ico/ico-17.png") no-repeat; | |
9547 | +} | |
9548 | +.no_stock:before { | |
9549 | + width: 6px; | |
9550 | + height: 6px; | |
9551 | + margin-top: -3px; | |
9552 | + background: url("../images/new_img/ico/ico-18.png") no-repeat; | |
9553 | +} | |
9554 | +.title-sku {float: right} | |
9555 | +.title-name_ { | |
9556 | + | |
9557 | +} | |
9558 | +.title-name_ a, .title-name_ a p,.title-name_ a span { | |
9559 | + margin: 0; | |
9560 | + padding: 0; | |
9561 | +} | |
9562 | +.title-name_ a { | |
9563 | + display: block; | |
9564 | + float: left; | |
9565 | + color: #0f6fc7; | |
9566 | + | |
9567 | +} | |
9568 | +.title-name_ a p { | |
9569 | + font-size: 14px; | |
9570 | + width: 100%; | |
9571 | + height: 19px; | |
9572 | + overflow: hidden; | |
9573 | + float: left; | |
9574 | + text-transform: lowercase; | |
9575 | +} | |
9576 | + | |
9577 | +.title-name_ a p:first-child { | |
9578 | + font-size: 16px; | |
9579 | + text-transform: none; | |
9580 | + font-weight: 700; | |
9581 | +} | |
9582 | +.title-name_ a p span {} | |
9583 | +.title-name_ a:hover p span {border-bottom:1px solid #0f6fc7;} | |
9584 | + | |
9585 | +.currency_price { | |
9586 | + display: block; | |
9587 | + float: left; | |
9588 | + line-height: 38px; | |
9589 | + font-size: 16px; | |
9590 | + color: #4b4b4b; | |
9591 | +} | |
9592 | +.price-basket {float: right;} | |
9593 | +.price-basket a { | |
9594 | + width: 38px; | |
9595 | + height: 38px; | |
9596 | + margin-right: 0; | |
9597 | +} | |
9598 | +.price-basket-wr {margin-top: 17px;} | |
9599 | +#top .owl-prev, #top .owl-next { | |
9600 | + top:0 !important; | |
9601 | + right: 38px !important; | |
9602 | + left: auto !important; | |
9603 | + width: 19px !important; | |
9604 | + height: 19px !important; | |
9605 | + border-radius: 100% !important; | |
9606 | + background: none!important; | |
9607 | +} | |
9608 | +#top .owl-prev:hover, #top .owl-next:hover { | |
9609 | + background: #a7acb0 !important; | |
9610 | +} | |
9611 | +#top .owl-prev:before, #top .owl-next:before { | |
9612 | + background: url("../images/new_img/ico/ico-19.png") !important; | |
9613 | + background-repeat: no-repeat !important; | |
9614 | + width: 5px; | |
9615 | + height: 9px; | |
9616 | + top: 50%; | |
9617 | + left: 50%; | |
9618 | + margin-top: -5px; | |
9619 | + margin-left: -3px; | |
9620 | +} | |
9621 | + | |
9622 | +#top .owl-prev:before { | |
9623 | + background-position: 0 0 !important; | |
9624 | +} | |
9625 | +#top .owl-next:before { | |
9626 | + background-position: -5px 0 !important; | |
9627 | +} | |
9628 | +#top .owl-next { | |
9629 | + right: 13px !important; | |
9630 | +} | |
9631 | +#top .owl-prev:hover:before, #top .owl-next:hover:before { | |
9632 | + background: url("../images/new_img/ico/ico-20.png") !important; | |
9633 | +} | |
9634 | +#top .owl-next:hover:before {background-position: -5px 0 !important;} | |
9635 | + /****************/ | |
9636 | + /*******new-slider*********/ | |
9637 | +.new-slider-wr .item { | |
9638 | + width: 100%; | |
9639 | + | |
9640 | + | |
9641 | +} | |
9642 | +.new-slider-wr .item img { | |
9643 | + width: 100%; | |
9644 | +} | |
9645 | +.new-slider-wr .owl-buttons {display: none;} | |
9646 | +#prev_slide, #next_slide { | |
9647 | + position: absolute; | |
9648 | + top: 50%; | |
9649 | + margin-top: -38px; | |
9650 | + width: 32px; | |
9651 | + height: 76px; | |
9652 | + background: rgba(0,0,0,0.2); | |
9653 | + border-radius: 4px; | |
9654 | + cursor: pointer; | |
9655 | +} | |
9656 | +#prev_slide:hover, #next_slide:hover { | |
9657 | + background: rgba(0,0,0,0.8); | |
9658 | +} | |
9659 | +#prev_slide:before, #next_slide:before { | |
9660 | + position: absolute; | |
9661 | + content: ''; | |
9662 | + width: 14px; | |
9663 | + height: 24px; | |
9664 | + top: 50%; | |
9665 | + left: 50%; | |
9666 | + margin-top: -12px; | |
9667 | + margin-left: -7px; | |
9668 | + background: url("../images/new_img/ico/ico-14.png"); | |
9669 | + background-repeat: no-repeat; | |
9670 | +} | |
9671 | +#prev_slide:before { | |
9672 | + background-position: 0 0; | |
9673 | +} | |
9674 | +#next_slide:before { | |
9675 | + background-position: -14px 0; | |
9676 | +} | |
9677 | + | |
9678 | +#prev_slide {left: 20px;} | |
9679 | +#next_slide {right: 20px;} | |
9680 | + /****************/ | |
9681 | + | |
9088 | 9682 | .call_block, |
9089 | 9683 | .call_block_header { |
9090 | 9684 | position: relative |
... | ... | @@ -9311,8 +9905,9 @@ footer .content-title { |
9311 | 9905 | |
9312 | 9906 | footer .soc li { |
9313 | 9907 | float: left; |
9314 | - margin: 0 15px 0 0 | |
9908 | + margin: 0 0 0 15px; | |
9315 | 9909 | } |
9910 | +footer .soc li:first-child {margin-left: 0;} | |
9316 | 9911 | |
9317 | 9912 | footer .soc li a { |
9318 | 9913 | float: left; |
... | ... | @@ -9350,16 +9945,48 @@ footer .soc li a.google { |
9350 | 9945 | } |
9351 | 9946 | |
9352 | 9947 | ul.copy { |
9353 | - padding: 0 | |
9948 | + padding: 0 15px; | |
9354 | 9949 | } |
9950 | +.first_list_copy {margin-top: 30px;} | |
9355 | 9951 | |
9356 | 9952 | ul.copy li { |
9357 | - display: inline-block | |
9953 | + display: block; | |
9954 | + float: left; | |
9955 | +} | |
9956 | +.first_list_copy li { | |
9957 | + margin: 0 15px; | |
9958 | +} | |
9959 | +.first_list_copy li:first-child { | |
9960 | + margin-left: 0; | |
9358 | 9961 | } |
9359 | - | |
9360 | 9962 | ul.copy li a { |
9361 | - color: #000 | |
9963 | + color: #0f6fc7; | |
9964 | + font-size: 13px; | |
9965 | +} | |
9966 | +.second_list_copy li { | |
9967 | + position: relative; | |
9968 | + padding: 0; | |
9969 | +} | |
9970 | +.second_list_copy li a { | |
9971 | + font-size: 12px; | |
9972 | + padding: 0 5px; | |
9973 | + position: relative; | |
9974 | +} | |
9975 | +.second_list_copy li:nth-child(2) { | |
9976 | + padding-left: 0; | |
9362 | 9977 | } |
9978 | +.second_list_copy li a:before { | |
9979 | + position: absolute; | |
9980 | + content: ''; | |
9981 | + width: 1px; | |
9982 | + height: 12px; | |
9983 | + background: #0f6fc7; | |
9984 | + left: 0; | |
9985 | + top: 50%; | |
9986 | + margin-top: -6px; | |
9987 | +} | |
9988 | + | |
9989 | +.second_list_copy li:nth-child(2) a:before, .second_list_copy li:first-child a:before {display: none;} | |
9363 | 9990 | |
9364 | 9991 | ul.cats_and_prices { |
9365 | 9992 | display: inline-block; |
... | ... | @@ -9961,18 +10588,14 @@ footer .vacancies p { |
9961 | 10588 | display: inline-block |
9962 | 10589 | } |
9963 | 10590 | |
9964 | -.catalog_product_list { | |
9965 | - margin: 0 0 20px 0 | |
9966 | -} | |
10591 | +/*.catalog_product_list {*/ | |
10592 | + /*margin: 0 0 20px 0*/ | |
10593 | +/*}*/ | |
9967 | 10594 | |
9968 | 10595 | .catalog_product_list.view_table .catalog_item, |
9969 | 10596 | .category_popular_list .catalog_item { |
9970 | - float: left; | |
9971 | - width: 33%; | |
9972 | - height: 470px; | |
9973 | - margin: 0 0 10px 0; | |
9974 | - position: relative; | |
9975 | - z-index: 1 | |
10597 | + height: 420px; | |
10598 | + border: 1px solid #e4e4e4; | |
9976 | 10599 | } |
9977 | 10600 | |
9978 | 10601 | .catalog_product_list.view_table.view_list .catalog_item { |
... | ... | @@ -9987,19 +10610,12 @@ footer .vacancies p { |
9987 | 10610 | |
9988 | 10611 | .catalog_product_list.view_table .catalog_item .wrapper, |
9989 | 10612 | .category_popular_list .catalog_item .wrapper { |
9990 | - position: absolute; | |
10613 | + position: relative; | |
9991 | 10614 | z-index: 1; |
9992 | 10615 | width: 100%; |
9993 | - min-height: 360px; | |
9994 | - height: 360px; | |
10616 | + height: 100%; | |
9995 | 10617 | overflow: hidden; |
9996 | - left: 0; | |
9997 | - top: 0; | |
9998 | - border-radius: 4px; | |
9999 | 10618 | background: #fff; |
10000 | - -webkit-box-sizing: content-box !important; | |
10001 | - -moz-box-sizing: content-box !important; | |
10002 | - box-sizing: content-box !important | |
10003 | 10619 | } |
10004 | 10620 | |
10005 | 10621 | .catalog_product_list.view_table.view_list .catalog_item .wrapper { |
... | ... | @@ -10017,33 +10633,32 @@ footer .vacancies p { |
10017 | 10633 | z-index: 1999 |
10018 | 10634 | } |
10019 | 10635 | |
10020 | -.catalog_product_list.view_table .catalog_item:hover .wrapper { | |
10021 | - height: auto | |
10636 | +.catalog_product_list.view_table .catalog_item:hover { | |
10637 | + box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.35); | |
10022 | 10638 | } |
10023 | 10639 | |
10024 | -.catalog_product_list.view_table.view_mini_table .catalog_item:hover .wrapper { | |
10025 | - width: 200% | |
10026 | -} | |
10640 | + | |
10027 | 10641 | |
10028 | 10642 | .catalog_product_list.view_table .catalog_item .wrapper:hover { |
10029 | - box-shadow: 0 0 5px #ccc; | |
10030 | - padding: 0 20px; | |
10031 | - margin-left: -20px | |
10643 | + | |
10032 | 10644 | } |
10033 | 10645 | |
10034 | -.catalog_product_list.view_table.view_list .catalog_item .wrapper:hover { | |
10035 | - padding: 0; | |
10036 | - margin-left: 0 | |
10646 | +.img a { | |
10647 | + display: table-cell; | |
10648 | + width: 172px; | |
10649 | + height: 258px; | |
10650 | + vertical-align: middle; | |
10651 | + float: none; | |
10037 | 10652 | } |
10038 | 10653 | |
10039 | 10654 | .catalog_product_list.view_table .catalog_item .wrapper .item_container, |
10040 | 10655 | .category_popular_list .catalog_item .wrapper .item_container { |
10041 | - padding: 15px 5px | |
10656 | + height: 100%; | |
10042 | 10657 | } |
10043 | - | |
10658 | +.slider_mp_items .owl-carousel .owl-item {padding: 7px 15px 30px 15px;} | |
10044 | 10659 | .catalog_product_list .img, |
10045 | 10660 | .category_popular_list .catalog_item .img { |
10046 | - margin: 0 0 10px 0; | |
10661 | + margin: 9px 0 0 0; | |
10047 | 10662 | position: relative; |
10048 | 10663 | z-index: 1 |
10049 | 10664 | } |
... | ... | @@ -10057,16 +10672,18 @@ footer .vacancies p { |
10057 | 10672 | |
10058 | 10673 | .catalog_product_list .catalog_item .img img, |
10059 | 10674 | .category_popular_list .catalog_item .img img { |
10060 | - max-width: 250px; | |
10061 | - max-height: 250px; | |
10062 | - min-height: 15px; | |
10063 | - display: none; | |
10064 | - margin: 0 auto | |
10675 | + max-width: 172px; | |
10676 | + max-height: 258px; | |
10677 | + margin: 0 auto; | |
10678 | + vertical-align: middle; | |
10065 | 10679 | } |
10066 | 10680 | |
10067 | 10681 | .catalog_product_list .catalog_item .img, |
10068 | 10682 | .category_popular_list .catalog_item .img { |
10069 | - min-height: 205px | |
10683 | + height: 258px; | |
10684 | + display: table; | |
10685 | + margin: 0 auto; | |
10686 | + margin-top: 9px; | |
10070 | 10687 | } |
10071 | 10688 | |
10072 | 10689 | .catalog_product_list .catalog_item .img img.selected, |
... | ... | @@ -10470,11 +11087,8 @@ footer .vacancies p { |
10470 | 11087 | } |
10471 | 11088 | |
10472 | 11089 | .slider_mp_items { |
10473 | - background: #fff; | |
10474 | - padding: 10px 0 50px 0; | |
10475 | - -webkit-border-radius: 5px; | |
10476 | - -moz-border-radius: 5px; | |
10477 | - border-radius: 5px | |
11090 | + /*background: #fff;*/ | |
11091 | + /*padding: 10px 0 50px 0;*/ | |
10478 | 11092 | } |
10479 | 11093 | |
10480 | 11094 | #myItemCarousel .item { |
... | ... | @@ -13305,11 +13919,15 @@ h1.title { |
13305 | 13919 | } |
13306 | 13920 | |
13307 | 13921 | .spritebrand { |
13308 | - background-image: url(/images/sprites/brand_spritesheet.png); | |
13922 | + background-image: url(/images/new_img/brends/img-0.png); | |
13309 | 13923 | background-repeat: no-repeat; |
13310 | 13924 | margin: auto; |
13311 | 13925 | display: block |
13312 | 13926 | } |
13927 | +.spritebrand:hover { | |
13928 | + background-image: url(/images/sprites/brand_spritesheet.png); | |
13929 | + | |
13930 | +} | |
13313 | 13931 | |
13314 | 13932 | .spritebrand-elstead { |
13315 | 13933 | width: 107px; |
... | ... | @@ -13326,7 +13944,7 @@ h1.title { |
13326 | 13944 | .spritebrand-feiss { |
13327 | 13945 | width: 100px; |
13328 | 13946 | height: 54px; |
13329 | - background-position: -5px -69px | |
13947 | + background-position: -15px -69px | |
13330 | 13948 | } |
13331 | 13949 | |
13332 | 13950 | .spritebrand-flambeau { |
... | ... | @@ -13398,6 +14016,108 @@ h1.title { |
13398 | 14016 | outline: none; |
13399 | 14017 | } |
13400 | 14018 | |
14019 | + | |
14020 | +/***new-header***/ | |
14021 | +.header-new-img {width: 100%;max-width: 100%;} | |
14022 | +.header_tb { | |
14023 | + height: 108px; | |
14024 | + border-bottom: 1px solid #e4e4e4; | |
14025 | +} | |
14026 | + | |
14027 | +.new_search form { | |
14028 | + width: 100%; | |
14029 | + float: left; | |
14030 | +} | |
14031 | +.new_search form .form-control { | |
14032 | + width: 100%; | |
14033 | + float: left; | |
14034 | + height: 36px; | |
14035 | + outline: none !important; | |
14036 | + border-radius: 0 !important; | |
14037 | + border: 1px solid #a7acb0; | |
14038 | +} | |
14039 | +.new_search form .form-control:focus { | |
14040 | + box-shadow: 1px 2px 2px 0px rgba(215, 215, 215, 0.75) inset; transition: 0.1s;-webkit-transition: 0.1s; | |
14041 | +} | |
14042 | +.new-btn-search { | |
14043 | + position: absolute; | |
14044 | + top: 3px; | |
14045 | + right: 1px; | |
14046 | + width: 34px; | |
14047 | + height: 32px; | |
14048 | + background: #fff url("../images/new_img/ico/ico-5.png") 50% 50% no-repeat; | |
14049 | + z-index: 9; | |
14050 | + border: 0 !important; | |
14051 | + outline: none !important; | |
14052 | +} | |
14053 | +.basket_btn { | |
14054 | + text-decoration: none; | |
14055 | + padding-right: 15px; | |
14056 | + display: block; | |
14057 | + width: 100%; | |
14058 | +} | |
14059 | +.price_ { | |
14060 | + color: #0f6fc7; | |
14061 | + font-size: 18px; | |
14062 | + float: right; | |
14063 | + height: 38px; | |
14064 | + line-height: 38px; | |
14065 | + margin-bottom: 0; | |
14066 | +} | |
14067 | +.basket_btn:hover {text-decoration: none !important;} | |
14068 | +.basket_btn:hover .price_ {text-decoration: underline !important;} | |
14069 | + | |
14070 | +.basket_btn div, .price-basket a { | |
14071 | + float: right; | |
14072 | + width: 38px; | |
14073 | + height: 38px; | |
14074 | + background: #0f6fc7 url("../images/new_img/ico/ico-6.png") 50% 50% no-repeat; | |
14075 | + border-radius: 100%; | |
14076 | + position: relative; | |
14077 | + margin-right: 15px; | |
14078 | +} | |
14079 | +.basket_btn div span { | |
14080 | + position: absolute; | |
14081 | + top: -7px; | |
14082 | + right: -4px; | |
14083 | + background: #e80000; | |
14084 | + color: #fff; | |
14085 | + min-width: 20px; | |
14086 | + height: 20px; | |
14087 | + padding: 0 3px; | |
14088 | + line-height: 20px; | |
14089 | + text-align: center; | |
14090 | + border-radius: 100%; | |
14091 | + font-size: 13px; | |
14092 | +} | |
14093 | + | |
14094 | +.tb_phones {margin: 0;width: 100%;} | |
14095 | +.tb_phones img { | |
14096 | + vertical-align: middle; | |
14097 | + margin-right: 10px; | |
14098 | +} | |
14099 | +.header_phones { | |
14100 | + font-size: 18px; | |
14101 | + color: #4b4b4b; | |
14102 | + margin: 0; | |
14103 | +} | |
14104 | +.header_phones span { | |
14105 | + color: #a7acb0; | |
14106 | +} | |
14107 | +.tb_phones tr { | |
14108 | + width: 100%; | |
14109 | +} | |
14110 | +.tb_phones > tr > td {width: 50%;text-align: center;vertical-align: middle; } | |
14111 | +.tb_phones tr td {vertical-align: middle;height: 26px;} | |
14112 | +.header_callback { | |
14113 | + font-size: 13px; | |
14114 | + color: #0f6fc7; | |
14115 | +} | |
14116 | +.header_callback:hover {color: #0f6fc7;} | |
14117 | + | |
14118 | + | |
14119 | + | |
14120 | + | |
13401 | 14121 | /*! HTML5 resposive design linija-svitla.ua v1.0.0 */ |
13402 | 14122 | |
13403 | 14123 | @-ms-viewport { |
... | ... | @@ -13465,10 +14185,10 @@ h1.title { |
13465 | 14185 | font-size: 13px |
13466 | 14186 | } |
13467 | 14187 | |
13468 | - #menu-bar a { | |
13469 | - font-size: 12px; | |
13470 | - padding: 18px 10px 19px 10px | |
13471 | - } | |
14188 | + /*#menu-bar a {*/ | |
14189 | + /*font-size: 12px;*/ | |
14190 | + /*padding: 18px 10px 19px 10px*/ | |
14191 | + /*}*/ | |
13472 | 14192 | |
13473 | 14193 | #header_feedback { |
13474 | 14194 | display: none |
... | ... | @@ -13503,9 +14223,9 @@ h1.title { |
13503 | 14223 | max-width: 75px |
13504 | 14224 | } |
13505 | 14225 | |
13506 | - #brand_bar ul li { | |
13507 | - vertical-align: middle | |
13508 | - } | |
14226 | + /*#brand_bar ul li {*/ | |
14227 | + /*vertical-align: middle*/ | |
14228 | + /*}*/ | |
13509 | 14229 | } |
13510 | 14230 | |
13511 | 14231 | @media only screen and (min-width: 1200px) and (max-width: 1299px) { |
... | ... | @@ -13540,9 +14260,9 @@ h1.title { |
13540 | 14260 | padding: 20px 10px 5px 20px |
13541 | 14261 | } |
13542 | 14262 | |
13543 | - #menu-bar a { | |
13544 | - padding: 18px 16px 19px 16px | |
13545 | - } | |
14263 | + /*#menu-bar a {*/ | |
14264 | + /*padding: 18px 16px 19px 16px*/ | |
14265 | + /*}*/ | |
13546 | 14266 | } |
13547 | 14267 | |
13548 | 14268 | @media only screen and (min-width: 1200px) and (max-width: 1399px) { |
... | ... | @@ -13566,33 +14286,33 @@ h1.title { |
13566 | 14286 | } |
13567 | 14287 | |
13568 | 14288 | @media (max-height: 620px) { |
13569 | - .catalog_product_list.view_table .catalog_item { | |
13570 | - height: 370px | |
13571 | - } | |
13572 | 14289 | |
13573 | - .catalog_product_list.view_table.view_mini_table .catalog_item { | |
13574 | - height: 260px | |
13575 | - } | |
13576 | - | |
13577 | - .catalog_product_list.view_table.view_list .catalog_item { | |
13578 | - height: 300px | |
13579 | - } | |
13580 | 14290 | } |
13581 | 14291 | |
13582 | 14292 | @media (max-height: 700px) { |
13583 | - .catalog_product_list.view_table .catalog_item { | |
13584 | - height: 420px | |
13585 | - } | |
13586 | - | |
13587 | - .catalog_product_list.view_table.view_mini_table .catalog_item { | |
13588 | - height: 260px | |
13589 | - } | |
13590 | 14293 | |
13591 | - .catalog_product_list.view_table.view_list .catalog_item { | |
13592 | - height: 320px | |
13593 | - } | |
13594 | 14294 | } |
13595 | 14295 | |
13596 | 14296 | #myCallback .required label:before { |
13597 | 14297 | display: none; |
13598 | -} | |
13599 | 14298 | \ No newline at end of file |
14299 | +} | |
14300 | + | |
14301 | + | |
14302 | +@media (max-width: 1200px) { | |
14303 | + | |
14304 | + .header_phones {font-size: 15px;} | |
14305 | + #brand_bar ul {display: block;margin: 0;} | |
14306 | + #brand_bar ul li { | |
14307 | + display: block; | |
14308 | + float: left; | |
14309 | + padding: 0; | |
14310 | + margin-left: -3px; | |
14311 | + } | |
14312 | + .box-studio-wr p {font-size: 11px;} | |
14313 | + footer .soc li {margin-left: 14px;} | |
14314 | + .title-sku { | |
14315 | + float:left; | |
14316 | + width: 100%; | |
14317 | + } | |
14318 | +} | |
14319 | + | ... | ... |
1 | +$(document).ready(function () { | |
2 | + showSubMenu(); | |
3 | + activeSubMEnu(); | |
4 | + allSeoTxt(); | |
5 | + loadNewCarousel(); | |
6 | + | |
7 | + | |
8 | + function showSubMenu() { | |
9 | + var timeout; | |
10 | + var timeout2; | |
11 | + $('.new_catalog').hover(function () { | |
12 | + var this_ = $(this) | |
13 | + timeout = setTimeout(function () { | |
14 | + this_.addClass('show') | |
15 | + | |
16 | + | |
17 | + if(!$('.main-cat_ ul li.act').length) { | |
18 | + | |
19 | + $('.main-cat_ ul li:first-child').addClass('act') | |
20 | + | |
21 | + | |
22 | + $('.sub-cat_ ul:first-child').addClass('active-show') | |
23 | + } | |
24 | + | |
25 | + },200) | |
26 | + | |
27 | + clearTimeout(timeout2) | |
28 | + | |
29 | + | |
30 | + },function () { | |
31 | + var this_ = $(this) | |
32 | + clearTimeout(timeout) | |
33 | + timeout2 = setTimeout(function () { | |
34 | + this_.removeClass('show') | |
35 | + $('.main-cat_ ul li').removeClass('act') | |
36 | + $('.sub-cat_ ul').removeClass('active-show') | |
37 | + },200) | |
38 | + | |
39 | + }) | |
40 | + } | |
41 | + | |
42 | + function activeSubMEnu() { | |
43 | + var timeout; | |
44 | + var timeout2; | |
45 | + $('.main-cat_ ul li').hover(function () { | |
46 | + var this_ = $(this) | |
47 | + var thisIndex = this_.index() | |
48 | + var subIndex = $('.sub-cat_ ul') | |
49 | + | |
50 | + timeout = setTimeout(function () { | |
51 | + $('.main-cat_ ul li').removeClass('act') | |
52 | + this_.addClass('act') | |
53 | + $('.sub-cat_ ul').removeClass('active-show') | |
54 | + $(subIndex[thisIndex]).addClass('active-show') | |
55 | + },200) | |
56 | + clearTimeout(timeout2) | |
57 | + | |
58 | + | |
59 | + },function () { | |
60 | + clearTimeout(timeout) | |
61 | + }) | |
62 | + } | |
63 | + | |
64 | + function allSeoTxt() { | |
65 | + var txt1 = 'Развернуть текст'; | |
66 | + var txt2 = 'Свернуть'; | |
67 | + $('.all_seo_text').click(function (e) { | |
68 | + e.preventDefault() | |
69 | + $('.seo-text').toggleClass('show') | |
70 | + $(this).toggleClass('show') | |
71 | + if($(this).hasClass('show')) { | |
72 | + $(this).html(txt2) | |
73 | + } else {$(this).html(txt1)} | |
74 | + }) | |
75 | + } | |
76 | + | |
77 | + | |
78 | + function loadNewCarousel() { | |
79 | + $('.home-popular li a').click(function (e) { | |
80 | + e.preventDefault(); | |
81 | + $('.home-popular li a').parent().removeClass('active') | |
82 | + $(this).parent().addClass('active') | |
83 | + }) | |
84 | + } | |
85 | + | |
86 | + | |
87 | + | |
88 | + | |
89 | +}) | |
0 | 90 | \ No newline at end of file | ... | ... |
frontend/web/js/script.js
1 | -var artbox_basket = new ArtboxBasket(); | |
2 | - | |
3 | -/*order basket form js logic*/ | |
4 | - | |
5 | -var recountPrice = function(container,new_value){ | |
6 | - var new_price = +$(container).find('.price span').html() * new_value; | |
7 | - $(container).find('.cost span').html(new_price); | |
8 | - var total_price = 0; | |
9 | - $('#orderFrom').find('#cost span').each(function(){ | |
10 | - total_price += +$(this).html(); | |
11 | - }); | |
12 | - | |
13 | - var total = $('#total span').html(total_price); | |
14 | -}; | |
15 | - | |
16 | -$(document).on('click', '#ordersFrom .count_choise .plus', function(e) { | |
17 | - e.preventDefault(); | |
18 | - var container = $(this).parents('.order_item'); | |
19 | - var input = $(container).find('.prod_count'); | |
20 | - var value = $(input).val(); | |
21 | - var new_value = parseInt(value) + 1; | |
22 | - $(input).val(new_value); | |
23 | - $(input).trigger('change'); | |
24 | - recountPrice(container,new_value); | |
25 | - | |
26 | -}); | |
27 | - | |
28 | -$(document).on('click', '#ordersFrom .count_choise .minus', function(e) { | |
29 | - e.preventDefault(); | |
30 | - var container = $(this).parents('.order_item'); | |
31 | - var input = $(container).find('.prod_count'); | |
32 | - var value = $(input).val(); | |
33 | - if(value > 1 ){ | |
34 | - var new_value = parseInt(value) - 1; | |
35 | - $(input).val(new_value); | |
36 | - $(input).trigger('change'); | |
37 | - recountPrice(container,new_value); | |
38 | - } | |
39 | - | |
40 | -}); | |
41 | - | |
42 | -$(document).on('change', '#ordersFrom .prod_count', function(e) { | |
43 | - e.preventDefault(); | |
44 | - var container = $(this).parents('.order_item'); | |
45 | - var new_value = $(this).val(); | |
46 | - recountPrice(container,new_value); | |
47 | - var product_variant_id = container.data('id'); | |
48 | - var value = $(this).val(); | |
49 | - if(value < 0) { | |
50 | - value = 0; | |
51 | - } | |
52 | - artbox_basket.set(product_variant_id, value); | |
53 | -}); | |
54 | - | |
55 | - | |
56 | - | |
57 | -$(document).on('click', '#ordersFrom .cart_remove', function(e) { | |
58 | - e.preventDefault(); | |
59 | - var container = $(this).parents('.order_item'); | |
60 | - | |
61 | - var id = $(container).data('id'); | |
62 | - container.remove(); | |
63 | - artbox_basket.set(id, 0); | |
64 | -}); | |
65 | - | |
66 | - | |
67 | -/*end order basket form js logic*/ | |
68 | - | |
69 | -$(document).on('click', '.buy_button', function(e) { | |
70 | - e.preventDefault(); | |
71 | - var product_variant_id = $(this).data('id'); | |
72 | - var count = 1; | |
73 | - artbox_basket.add(product_variant_id, count); | |
74 | -}); | |
75 | -$(document).on('change', '#buyForm .prod_count', function(e) { | |
76 | - e.preventDefault(); | |
77 | - var product_variant_id = $(this).parents('tr').data('id'); | |
78 | - var value = $(this).val(); | |
79 | - if(value < 0) { | |
80 | - value = 0; | |
81 | - } | |
82 | - artbox_basket.set(product_variant_id, value); | |
83 | -}); | |
84 | - | |
85 | -$(document).on('click', '#buyForm .count_choise .minus', function(e) { | |
86 | - e.preventDefault(); | |
87 | - var container = $(this).parents('tr'); | |
88 | - var input = $(container).find('.prod_count'); | |
89 | - var value = $(input).val(); | |
90 | - var new_value = parseInt(value) - 1; | |
91 | - $(input).val(new_value); | |
92 | - $(input).trigger('change'); | |
93 | -}); | |
94 | - | |
95 | - | |
96 | -$(document).on('click', '#buyForm .count_choise .plus', function(e) { | |
97 | - e.preventDefault(); | |
98 | - var container = $(this).parents('tr'); | |
99 | - var input = $(container).find('.prod_count'); | |
100 | - var value = $(input).val(); | |
101 | - var new_value = parseInt(value) + 1; | |
102 | - $(input).val(new_value); | |
103 | - $(input).trigger('change'); | |
104 | -}); | |
105 | - | |
106 | - | |
107 | -$(document).on('click', '#top-cart-info', function() { | |
108 | - if(artbox_basket.count > 0) { | |
109 | - location.href='/order' | |
110 | - } | |
111 | -}); | |
112 | - | |
113 | -$(document).on('click', '#buyForm .cart_remove', function() { | |
114 | - var container = $(this).parents('tr'); | |
115 | - var id = $(container).data('id'); | |
116 | - artbox_basket.set(id, 0); | |
117 | -}); | |
118 | - | |
119 | -/* Category filter open submenu */ | |
120 | -$(document).on('click', '.properties_block', function(e) { | |
121 | - var active = $(this).hasClass('opened'); | |
122 | - if(active) { | |
123 | - $(this).removeClass('opened').addClass('closed'); | |
124 | - $(this).find('.chechboxes').hide(); | |
125 | - } else { | |
126 | - $(this).removeClass('closed').addClass('opened'); | |
127 | - $(this).find('.chechboxes').show(); | |
128 | - } | |
129 | -}); | |
130 | -/* End Category filter open submenu */ | |
131 | -/* Cart resize on scroll */ | |
132 | -$('.img_part').height($('.info').height()); | |
133 | -$(document).on('scroll', window, function(e) | |
134 | -{ | |
135 | - currentScroll = $(window).scrollTop(); | |
136 | - if (currentScroll > 0) { | |
137 | - $('#top-cart-content').addClass('small-cart'); | |
138 | - } else { | |
139 | - $('#top-cart-content').removeClass('small-cart'); | |
140 | - } | |
141 | -}); | |
142 | -/* End cart resize on scroll */ | |
143 | -/* Catalog product scroll watcher */ | |
144 | -$(document).on('scroll', window, function(e) { | |
145 | - checkFixed(e); | |
146 | - checkSelector(e); | |
147 | -}); | |
148 | -function checkFixed(e) { | |
149 | - var img_part = $('.img_part'); | |
150 | - var position = $(img_part).find('.position'); | |
151 | - var position_height = $(position).height(); | |
152 | - var info = $('.info'); | |
153 | - var info_position = $(info).position(); | |
154 | - var info_height = $(info).height(); | |
155 | - var info_top = info_position.top; | |
156 | - var info_bottom = info_top + info_height; | |
157 | - var currentScroll = $(window).scrollTop(); | |
158 | - if(info_bottom - currentScroll > 0 && info_bottom - currentScroll < position_height) { | |
159 | - $(position).removeClass('fixed').css({ | |
160 | - position: 'absolute', | |
161 | - bottom: 0, | |
162 | - top: 'auto', | |
163 | - }); | |
164 | - } else if(currentScroll > info_top && currentScroll < info_bottom) { | |
165 | - $(position).addClass('fixed').css({ | |
166 | - position: 'fixed', | |
167 | - top: '100px', | |
168 | - bottom: 'auto' | |
169 | - }); | |
170 | - } else { | |
171 | - $(position).removeClass('fixed').css({ | |
172 | - position: 'relative', | |
173 | - top: 0, | |
174 | - bottom: 'auto' | |
175 | - }); | |
176 | - } | |
177 | -} | |
178 | -function checkSelector(e) { | |
179 | - var tab_content = $('#characteristics'); | |
180 | - var tab_content_top = $(tab_content).position().top - 100; | |
181 | - var comments_block = $('#reviews'); | |
182 | - var comments_block_top = $(comments_block).position().top - 100; | |
183 | - var collection = $('#collection'); | |
184 | - var collection_top = $(collection).position().top - 100; | |
185 | - var currentScroll = $(window).scrollTop(); | |
186 | - var detail_main_tabs = $('.detail_main_tabs'); | |
187 | - var active; | |
188 | - if(currentScroll > tab_content_top && currentScroll < collection_top) { | |
189 | - active = 'characteristics'; | |
190 | - } else if(currentScroll > comments_block_top) { | |
191 | - active = 'reviews'; | |
192 | - } else if(currentScroll > collection_top && currentScroll < comments_block_top) { | |
193 | - active = 'collection'; | |
194 | - } | |
195 | - $(detail_main_tabs).find('li.selected').removeClass('selected'); | |
196 | - $(detail_main_tabs).find('[data-target='+active+']').addClass('selected'); | |
197 | -} | |
198 | -$(window).scroll(function(e) { | |
199 | - checkFixed(e); | |
200 | - checkSelector(e); | |
201 | -}); | |
202 | -/* End catalog product scroll watcher */ | |
203 | -/* Animated links */ | |
204 | -$(document).on('click', '.detail_main_tabs a', function(e) { | |
205 | - e.preventDefault(); | |
206 | - var hash = $(this).attr('href').replace(/^.*?(#|$)/,''); | |
207 | - var target = $('#'+hash); | |
208 | - var target_top = $(target).position().top - 50; | |
209 | - var body = $('html, body'); | |
210 | - body.stop().animate({scrollTop:target_top}, 500, 'swing', function() {}); | |
211 | -}); | |
212 | -/* End animated links */ | |
213 | -/* Ajax form submit */ | |
214 | -$(document).on('submit', '#feedback-form', function(e) { | |
215 | - e.preventDefault(); | |
216 | - $.post('/ajax/feedback', $(this).serialize(), function(data) { | |
217 | - $('#myCallback').find('.modal-body').html(data.result); | |
218 | - }); | |
219 | -}); | |
220 | -$(document).on('submit', '#quickbuy-form', function(e) { | |
221 | - e.preventDefault(); | |
222 | - var container = $(this).parents('.fast_order_form'); | |
223 | - $.post('/order/quick', $(this).serialize(), function(data) { | |
224 | - if(!data.error) { | |
225 | - $(container).html(data.result); | |
226 | - } else { | |
227 | - $(container).html(data.error); | |
228 | - } | |
229 | - }) | |
230 | -}); | |
231 | -/* End ajax form submit */ | |
232 | 1 | \ No newline at end of file |
2 | +// var artbox_basket = new ArtboxBasket(); | |
3 | +// | |
4 | +// /*order basket form js logic*/ | |
5 | +// | |
6 | +// var recountPrice = function(container,new_value){ | |
7 | +// var new_price = +$(container).find('.price span').html() * new_value; | |
8 | +// $(container).find('.cost span').html(new_price); | |
9 | +// var total_price = 0; | |
10 | +// $('#orderFrom').find('#cost span').each(function(){ | |
11 | +// total_price += +$(this).html(); | |
12 | +// }); | |
13 | +// | |
14 | +// var total = $('#total span').html(total_price); | |
15 | +// }; | |
16 | +// | |
17 | +// $(document).on('click', '#ordersFrom .count_choise .plus', function(e) { | |
18 | +// e.preventDefault(); | |
19 | +// var container = $(this).parents('.order_item'); | |
20 | +// var input = $(container).find('.prod_count'); | |
21 | +// var value = $(input).val(); | |
22 | +// var new_value = parseInt(value) + 1; | |
23 | +// $(input).val(new_value); | |
24 | +// $(input).trigger('change'); | |
25 | +// recountPrice(container,new_value); | |
26 | +// | |
27 | +// }); | |
28 | +// | |
29 | +// $(document).on('click', '#ordersFrom .count_choise .minus', function(e) { | |
30 | +// e.preventDefault(); | |
31 | +// var container = $(this).parents('.order_item'); | |
32 | +// var input = $(container).find('.prod_count'); | |
33 | +// var value = $(input).val(); | |
34 | +// if(value > 1 ){ | |
35 | +// var new_value = parseInt(value) - 1; | |
36 | +// $(input).val(new_value); | |
37 | +// $(input).trigger('change'); | |
38 | +// recountPrice(container,new_value); | |
39 | +// } | |
40 | +// | |
41 | +// }); | |
42 | +// | |
43 | +// $(document).on('change', '#ordersFrom .prod_count', function(e) { | |
44 | +// e.preventDefault(); | |
45 | +// var container = $(this).parents('.order_item'); | |
46 | +// var new_value = $(this).val(); | |
47 | +// recountPrice(container,new_value); | |
48 | +// var product_variant_id = container.data('id'); | |
49 | +// var value = $(this).val(); | |
50 | +// if(value < 0) { | |
51 | +// value = 0; | |
52 | +// } | |
53 | +// artbox_basket.set(product_variant_id, value); | |
54 | +// }); | |
55 | +// | |
56 | +// | |
57 | +// | |
58 | +// $(document).on('click', '#ordersFrom .cart_remove', function(e) { | |
59 | +// e.preventDefault(); | |
60 | +// var container = $(this).parents('.order_item'); | |
61 | +// | |
62 | +// var id = $(container).data('id'); | |
63 | +// container.remove(); | |
64 | +// artbox_basket.set(id, 0); | |
65 | +// }); | |
66 | +// | |
67 | +// | |
68 | +// /*end order basket form js logic*/ | |
69 | +// | |
70 | +// $(document).on('click', '.buy_button', function(e) { | |
71 | +// e.preventDefault(); | |
72 | +// var product_variant_id = $(this).data('id'); | |
73 | +// var count = 1; | |
74 | +// artbox_basket.add(product_variant_id, count); | |
75 | +// }); | |
76 | +// $(document).on('change', '#buyForm .prod_count', function(e) { | |
77 | +// e.preventDefault(); | |
78 | +// var product_variant_id = $(this).parents('tr').data('id'); | |
79 | +// var value = $(this).val(); | |
80 | +// if(value < 0) { | |
81 | +// value = 0; | |
82 | +// } | |
83 | +// artbox_basket.set(product_variant_id, value); | |
84 | +// }); | |
85 | +// | |
86 | +// $(document).on('click', '#buyForm .count_choise .minus', function(e) { | |
87 | +// e.preventDefault(); | |
88 | +// var container = $(this).parents('tr'); | |
89 | +// var input = $(container).find('.prod_count'); | |
90 | +// var value = $(input).val(); | |
91 | +// var new_value = parseInt(value) - 1; | |
92 | +// $(input).val(new_value); | |
93 | +// $(input).trigger('change'); | |
94 | +// }); | |
95 | +// | |
96 | +// | |
97 | +// $(document).on('click', '#buyForm .count_choise .plus', function(e) { | |
98 | +// e.preventDefault(); | |
99 | +// var container = $(this).parents('tr'); | |
100 | +// var input = $(container).find('.prod_count'); | |
101 | +// var value = $(input).val(); | |
102 | +// var new_value = parseInt(value) + 1; | |
103 | +// $(input).val(new_value); | |
104 | +// $(input).trigger('change'); | |
105 | +// }); | |
106 | +// | |
107 | +// | |
108 | +// $(document).on('click', '#top-cart-info', function() { | |
109 | +// if(artbox_basket.count > 0) { | |
110 | +// location.href='/order' | |
111 | +// } | |
112 | +// }); | |
113 | +// | |
114 | +// $(document).on('click', '#buyForm .cart_remove', function() { | |
115 | +// var container = $(this).parents('tr'); | |
116 | +// var id = $(container).data('id'); | |
117 | +// artbox_basket.set(id, 0); | |
118 | +// }); | |
119 | +// | |
120 | +// /* Category filter open submenu */ | |
121 | +// $(document).on('click', '.properties_block', function(e) { | |
122 | +// var active = $(this).hasClass('opened'); | |
123 | +// if(active) { | |
124 | +// $(this).removeClass('opened').addClass('closed'); | |
125 | +// $(this).find('.chechboxes').hide(); | |
126 | +// } else { | |
127 | +// $(this).removeClass('closed').addClass('opened'); | |
128 | +// $(this).find('.chechboxes').show(); | |
129 | +// } | |
130 | +// }); | |
131 | +// /* End Category filter open submenu */ | |
132 | +// /* Cart resize on scroll */ | |
133 | +// $('.img_part').height($('.info').height()); | |
134 | +// $(document).on('scroll', window, function(e) | |
135 | +// { | |
136 | +// currentScroll = $(window).scrollTop(); | |
137 | +// if (currentScroll > 0) { | |
138 | +// $('#top-cart-content').addClass('small-cart'); | |
139 | +// } else { | |
140 | +// $('#top-cart-content').removeClass('small-cart'); | |
141 | +// } | |
142 | +// }); | |
143 | +// /* End cart resize on scroll */ | |
144 | +// /* Catalog product scroll watcher */ | |
145 | +// $(document).on('scroll', window, function(e) { | |
146 | +// checkFixed(e); | |
147 | +// checkSelector(e); | |
148 | +// }); | |
149 | +// function checkFixed(e) { | |
150 | +// var img_part = $('.img_part'); | |
151 | +// var position = $(img_part).find('.position'); | |
152 | +// var position_height = $(position).height(); | |
153 | +// var info = $('.info'); | |
154 | +// var info_position = $(info).position(); | |
155 | +// var info_height = $(info).height(); | |
156 | +// var info_top = info_position.top; | |
157 | +// var info_bottom = info_top + info_height; | |
158 | +// var currentScroll = $(window).scrollTop(); | |
159 | +// if(info_bottom - currentScroll > 0 && info_bottom - currentScroll < position_height) { | |
160 | +// $(position).removeClass('fixed').css({ | |
161 | +// position: 'absolute', | |
162 | +// bottom: 0, | |
163 | +// top: 'auto', | |
164 | +// }); | |
165 | +// } else if(currentScroll > info_top && currentScroll < info_bottom) { | |
166 | +// $(position).addClass('fixed').css({ | |
167 | +// position: 'fixed', | |
168 | +// top: '100px', | |
169 | +// bottom: 'auto' | |
170 | +// }); | |
171 | +// } else { | |
172 | +// $(position).removeClass('fixed').css({ | |
173 | +// position: 'relative', | |
174 | +// top: 0, | |
175 | +// bottom: 'auto' | |
176 | +// }); | |
177 | +// } | |
178 | +// } | |
179 | +// function checkSelector(e) { | |
180 | +// var tab_content = $('#characteristics'); | |
181 | +// var tab_content_top = $(tab_content).position().top - 100; | |
182 | +// var comments_block = $('#reviews'); | |
183 | +// var comments_block_top = $(comments_block).position().top - 100; | |
184 | +// var collection = $('#collection'); | |
185 | +// var collection_top = $(collection).position().top - 100; | |
186 | +// var currentScroll = $(window).scrollTop(); | |
187 | +// var detail_main_tabs = $('.detail_main_tabs'); | |
188 | +// var active; | |
189 | +// if(currentScroll > tab_content_top && currentScroll < collection_top) { | |
190 | +// active = 'characteristics'; | |
191 | +// } else if(currentScroll > comments_block_top) { | |
192 | +// active = 'reviews'; | |
193 | +// } else if(currentScroll > collection_top && currentScroll < comments_block_top) { | |
194 | +// active = 'collection'; | |
195 | +// } | |
196 | +// $(detail_main_tabs).find('li.selected').removeClass('selected'); | |
197 | +// $(detail_main_tabs).find('[data-target='+active+']').addClass('selected'); | |
198 | +// } | |
199 | +// $(window).scroll(function(e) { | |
200 | +// checkFixed(e); | |
201 | +// checkSelector(e); | |
202 | +// }); | |
203 | +// /* End catalog product scroll watcher */ | |
204 | +// /* Animated links */ | |
205 | +// $(document).on('click', '.detail_main_tabs a', function(e) { | |
206 | +// e.preventDefault(); | |
207 | +// var hash = $(this).attr('href').replace(/^.*?(#|$)/,''); | |
208 | +// var target = $('#'+hash); | |
209 | +// var target_top = $(target).position().top - 50; | |
210 | +// var body = $('html, body'); | |
211 | +// body.stop().animate({scrollTop:target_top}, 500, 'swing', function() {}); | |
212 | +// }); | |
213 | +// /* End animated links */ | |
214 | +// /* Ajax form submit */ | |
215 | +// $(document).on('submit', '#feedback-form', function(e) { | |
216 | +// e.preventDefault(); | |
217 | +// $.post('/ajax/feedback', $(this).serialize(), function(data) { | |
218 | +// $('#myCallback').find('.modal-body').html(data.result); | |
219 | +// }); | |
220 | +// }); | |
221 | +// $(document).on('submit', '#quickbuy-form', function(e) { | |
222 | +// e.preventDefault(); | |
223 | +// var container = $(this).parents('.fast_order_form'); | |
224 | +// $.post('/order/quick', $(this).serialize(), function(data) { | |
225 | +// if(!data.error) { | |
226 | +// $(container).html(data.result); | |
227 | +// } else { | |
228 | +// $(container).html(data.error); | |
229 | +// } | |
230 | +// }) | |
231 | +// }); | |
232 | +// /* End ajax form submit */ | |
233 | 233 | \ No newline at end of file | ... | ... |
frontend/widgets/views/slider.php
... | ... | @@ -27,11 +27,21 @@ $dur = $slider->duration ? $slider->duration : 5000; |
27 | 27 | $speed = $slider->speed ? $slider->speed : 500; |
28 | 28 | $js=" $(\"#$title\").owlCarousel({ |
29 | 29 | navigation : true, // Show next and prev buttons |
30 | - slideSpeed : 300, | |
31 | - paginationSpeed : 400, | |
32 | - singleItem:true | |
33 | - | |
34 | - });"; | |
30 | + slideSpeed : 500, | |
31 | + autoplayTimeout:$dur, | |
32 | + paginationSpeed : $speed, | |
33 | + singleItem:true, | |
34 | + autoPlay:true | |
35 | + | |
36 | + }); | |
37 | + var owl = $(\"#$title\"); | |
38 | + $('#next_slide').click(function() { | |
39 | + owl.trigger('owl.next'); | |
40 | + }) | |
41 | + $('#prev_slide').click(function() { | |
42 | + owl.trigger('owl.prev'); | |
43 | + }) | |
44 | + "; | |
35 | 45 | |
36 | 46 | $this->registerJs($js,View::POS_END); |
37 | 47 | ... | ... |