Commit a7d38ea6008addc6c215a4dbb3ac76ab65981f6b
Merge remote-tracking branch 'origin/master'
Showing
2 changed files
with
19 additions
and
8 deletions
Show diff stats
frontend/views/catalog/_product_item.php
... | ... | @@ -21,16 +21,18 @@ use yii\helpers\Url; |
21 | 21 | 'product' => $model->alias |
22 | 22 | ]) ?>"> |
23 | 23 | <div class="banners_sale"> |
24 | - <?php | |
25 | - foreach($model->events as $event){ | |
26 | - if($event->banner){ | |
27 | - echo \common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list',[ | |
28 | - 'class' => 'banner-in-list' | |
29 | - ]); | |
24 | + | |
25 | + <?php | |
26 | + foreach($model->events as $event){ | |
27 | + if($event->banner){ | |
28 | + echo \common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list',[ | |
29 | + 'class' => 'banner-in-list' | |
30 | + ]); | |
31 | + } | |
30 | 32 | } |
31 | - } | |
32 | 33 | |
33 | - ?> | |
34 | + ?> | |
35 | + | |
34 | 36 | </div> |
35 | 37 | |
36 | 38 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($model->variant->imageUrl, 'list', [ | ... | ... |
frontend/web/css/css_header.css
... | ... | @@ -14588,3 +14588,12 @@ ul.product-special li.promo div{ |
14588 | 14588 | height: 55px; |
14589 | 14589 | margin: -55px 0 0; |
14590 | 14590 | } |
14591 | +.banners_sale { | |
14592 | + position: absolute; | |
14593 | + top: 0; | |
14594 | + left: 0; | |
14595 | +} | |
14596 | +.banners_sale img{ | |
14597 | + margin-top: 5px !important; | |
14598 | +} | |
14599 | +.banners_sale img:first-child {margin-top: 0 !important;} | |
14591 | 14600 | \ No newline at end of file | ... | ... |