jsonDecode($row->getParams()); if (isset($params['slide_thumb']) && $params['slide_thumb']){ return sprintf('', strpos($params['slide_thumb'], 'http') === 0 ? $params['slide_thumb'] : Mage::getBaseUrl('media') . $params['slide_thumb']); }elseif (isset($params['background_type'])){ switch ($params['background_type']){ case 'image': if (isset($params['image_url']) && $params['image_url']){ return sprintf('', strpos($params['image_url'], 'http') === 0 ? $params['image_url'] : Mage::getBaseUrl('media') . $params['image_url']); } break; case 'solid': if (isset($params['slide_bg_color']) && $params['slide_bg_color']) return sprintf('
', $params['slide_bg_color']); break; case 'trans': return ''; break; case 'external': if (isset($params['bg_external']) && $params['bg_external']){ return sprintf('', strpos($params['bg_external'], 'http') === 0 ? $params['bg_external'] : Mage::getBaseUrl('media') . $params['bg_external']); } break; } } return ''; } }