From 8c6aa8ad881366e220e999096252740baaa9983a Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Wed, 24 May 2017 15:35:14 +0300 Subject: [PATCH] Корзина и миниатюры --- frontend/views/basket/cart.php | 28 +++++++++++++++------------- frontend/views/layouts/main.php | 264 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------- frontend/views/site/_slider_product.php | 31 +++++++++++++++++++++++++++++++ frontend/web/css/style.css | 18 ++++++++++++++++++ 4 files changed, 307 insertions(+), 34 deletions(-) diff --git a/frontend/views/basket/cart.php b/frontend/views/basket/cart.php index d706fc5..2c0e0bc 100755 --- a/frontend/views/basket/cart.php +++ b/frontend/views/basket/cart.php @@ -9,19 +9,21 @@ ?> 'sub-title', - ] - ), +echo Html::a( + Html::tag( + 'span', + \Yii::t('app', 'Корзина'), [ - '/checkout/index', - ], - [ - 'class' => 'cart-item-link', + 'class' => 'sub-title', ] - ); + ), + [ + '#', + ], + [ + 'class' => 'cart-item-link', + 'data-toggle' => 'modal', + 'data-target' => '#basket-modal', + ] +); ?> diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 3b88544..2c3419d 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -6,6 +6,7 @@ * @var User $user */ use artbox\core\components\SeoComponent; + use artbox\core\helpers\ImageHelper; use artbox\core\models\Feedback; use artbox\core\models\Image; use artbox\core\models\Page; @@ -256,27 +257,29 @@ _________________________________________________________ --> - -
- 0 - 'sub-title', - ] - ), - [ - '/checkout/index', - ], - [ - 'class' => 'cart-item-link', - ] - ); - ?> -
+ +
+ 0 + 'sub-title', + ] + ), + [ + '#', + ], + [ + 'class' => 'cart-item-link', + 'data-toggle' => 'modal', + 'data-target' => '#basket-modal', + ] + ); + ?> +
+ + + + + diff --git a/frontend/views/site/_slider_product.php b/frontend/views/site/_slider_product.php index 8104521..1210afc 100755 --- a/frontend/views/site/_slider_product.php +++ b/frontend/views/site/_slider_product.php @@ -31,6 +31,37 @@ ); ?> + +
+ + +
+ image ? $product->image->getPath() : '@frontend/web/img/no-image.png' + ) + ->fillResize(40, 40) + ->render(), + [ + 'class' => 'img-responsive-image1', + ] + ), + [ + 'product/view', + 'id' => $product->id, + ] + ); + ?> +
+ +

diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index 8faccfd..7cb483b 100755 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -4731,4 +4731,22 @@ a i.fa, button i.fa, span.fa { .box .btn.btn-template-main { margin-bottom: 5px; +} + +.vcovers { + position: absolute; + top: 0; + right: 20px; + height: 260px; + overflow: hidden; +} + +.vcovers .vcover img.img-responsive-image1 { + border: 1px solid #eeeeee; + margin: 5px 0px; + transition:0.2s; +} + +.vcovers .vcover img:hover{ + border: 1px solid rgb(0, 91, 172); } \ No newline at end of file -- libgit2 0.21.4