Commit e1a6fc488cea6aded6c2086ab2d240495bccc648
1 parent
8e9c76da
Ntr
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
frontend/views/catalog/product.php
... | ... | @@ -301,9 +301,9 @@ |
301 | 301 | <td class="price_block"> |
302 | 302 | <div class="event_info"> |
303 | 303 | <div class="events"> |
304 | - <?php foreach($product->events as $event):?> | |
304 | + <?php $top = 90; foreach($product->events as $event):?> | |
305 | 305 | <?php if(!empty($event->banner) && $event->isActive()): |
306 | - $top = 90; | |
306 | + | |
307 | 307 | ?> |
308 | 308 | <?= Html::a(\common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list'),Url::to(['event/sale','percent'=>$event->percent]),[ |
309 | 309 | 'style' =>"top:$top;" | ... | ... |