/** * Formats a nicely formatted url. Aw yeah. * * @param Doghouse_Carousel_Model_Item $item [description] * * @return [String] url */ public function getUrl(Doghouse_Carousel_Model_Item $item) { return Mage::getUrl($item->getUrl()); }
/** * Formats a nicely formatted url. Aw yeah. * * @param Doghouse_Carousel_Model_Item $item carousel item * @param $forOutput If the URL is generated to be outputted in an HTML attribute, * we'll need to escape it * * @return string */ public function getUrl(Doghouse_Carousel_Model_Item $item, $forOutput = false) { $url = Mage::getUrl($item->getUrl()); if ($forOutput) { $url = $this->escapeUrl($url); } return $url; }