| @@ 41-54 (lines=14) @@ | ||
| 38 | } |
|
| 39 | ||
| 40 | $block = array(); |
|
| 41 | if (isset($offerObj) && is_object($offerObj)) { |
|
| 42 | $block['offers'][] = $offerObj->toArray('e'); |
|
| 43 | ||
| 44 | $smartConfig = smartpartner_getModuleConfig(); |
|
| 45 | //$image_info = smartpartner_imageResize($partnerObj->getImagePath(), $smartConfig['img_max_width'], $smartConfig['img_max_height']); |
|
| 46 | ||
| 47 | if ($options[0] == 1) { |
|
| 48 | $block['fadeImage'] = 'style="filter:alpha(opacity=20);" onmouseover="nereidFade(this,100,30,5)" onmouseout="nereidFade(this,50,30,5)"'; |
|
| 49 | } |
|
| 50 | ||
| 51 | $block['see_all'] = $options[2]; |
|
| 52 | $block['lang_see_all'] = _MB_SPARTNER_LANG_SEE_ALL_OFFERS; |
|
| 53 | $block['smartpartner_url'] = SMARTPARTNER_URL; |
|
| 54 | } |
|
| 55 | } |
|
| 56 | ||
| 57 | return $block; |
|
| @@ 37-51 (lines=15) @@ | ||
| 34 | ||
| 35 | $offersObj = $offerHandler->getObjects($criteria); |
|
| 36 | $block = array(); |
|
| 37 | if ($offersObj) { |
|
| 38 | foreach ($offersObj as $offerObj) { |
|
| 39 | $block['offers'][] = $offerObj->toArray('e'); |
|
| 40 | } |
|
| 41 | $smartConfig = smartpartner_getModuleConfig(); |
|
| 42 | //$image_info = smartpartner_imageResize($partnerObj->getImagePath(), $smartConfig['img_max_width'], $smartConfig['img_max_height']); |
|
| 43 | ||
| 44 | if ($options[0] == 1) { |
|
| 45 | $block['fadeImage'] = 'style="filter:alpha(opacity=20);" onmouseover="nereidFade(this,100,30,5)" onmouseout="nereidFade(this,50,30,5)"'; |
|
| 46 | } |
|
| 47 | ||
| 48 | $block['see_all'] = 1; |
|
| 49 | $block['lang_see_all'] = _MB_SPARTNER_LANG_SEE_ALL_OFFERS; |
|
| 50 | $block['smartpartner_url'] = SMARTPARTNER_URL; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| 54 | return $block; |
|