Commit 25129f9fc6545be01b31d67dead40ad125d7ab51
1 parent
e10d1d48
-collection
Showing
1 changed file
with
1 additions
and
20 deletions
Show diff stats
common/modules/product/widgets/views/product_smart_similar.php
| @@ -10,26 +10,7 @@ | @@ -10,26 +10,7 @@ | ||
| 10 | 10 | ||
| 11 | <div class="catalog_item"> | 11 | <div class="catalog_item"> |
| 12 | <div class="wrapper"> | 12 | <div class="wrapper"> |
| 13 | - <div class="events"> | ||
| 14 | - <?php $top = 90; foreach($product->events as $event):?> | ||
| 15 | - <?php if(!empty($event->banner) && $event->isActive()): | ||
| 16 | - if(!empty($event->percent)){ | ||
| 17 | - $url = Url::to(['event/sale','percent'=>$event->percent]); | ||
| 18 | - } else if(!empty($event->alias)){ | ||
| 19 | - $url = Url::to(['event/show','alias'=>$event->alias]); | ||
| 20 | - } else { | ||
| 21 | - continue; | ||
| 22 | - } | ||
| 23 | - | ||
| 24 | - ?> | ||
| 25 | - <?= Html::a(\common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list'),$url,[ | ||
| 26 | - 'style' =>"top:-{$top}px;" | ||
| 27 | - ]); | ||
| 28 | - | ||
| 29 | - $top = $top - 30; ?> | ||
| 30 | - <?php endif; ?> | ||
| 31 | - <?php endforeach; ?> | ||
| 32 | - </div> | 13 | + |
| 33 | <!-- <div class="status_block-wr --><?//=$class?><!--">--> | 14 | <!-- <div class="status_block-wr --><?//=$class?><!--">--> |
| 34 | <!-- --><?php | 15 | <!-- --><?php |
| 35 | // if($class == 'top'){ | 16 | // if($class == 'top'){ |