diff --git a/common/modules/product/widgets/views/product_smart_similar.php b/common/modules/product/widgets/views/product_smart_similar.php index 1c458f5..bd7cb7b 100755 --- a/common/modules/product/widgets/views/product_smart_similar.php +++ b/common/modules/product/widgets/views/product_smart_similar.php @@ -10,19 +10,39 @@
-
-
'; - } else if($class == 'new') { - print '
'; - } else if($class == 'promo'){ - print '
Акция
'; - } - ?> +
+ events as $event):?> + banner) && $event->isActive()): + if(!empty($event->percent)){ + $url = Url::to(['event/sale','percent'=>$event->percent]); + } else if(!empty($event->alias)){ + $url = Url::to(['event/show','alias'=>$event->alias]); + } else { + continue; + } + ?> + getImageUrl('banner'), 'banner_list'),$url,[ + 'style' =>"top:-{$top}px;" + ]); -
+ $top = $top - 30; ?> + + +
+ +
'; +// } else if($class == 'new') { +// print '
'; +// } else if($class == 'promo'){ +// print '
Акция
'; +// } +// ?> + + +