/** * Override the getHelper() function to assign values we need for the * template. * * @return KiTT_View_Helper object */ protected function getHelper() { $helper = parent::getHelper(); $helper->type = $this->type; $helper->country = strtolower($this->locale->getCountryCode()); return $helper; }
/** * Display the part payment box * * @return string rendered html */ public function show() { if (count($this->pclasses->pclasses) == 0) { return ''; } if (array_key_exists('HTTP_USER_AGENT', $_SERVER) && (strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 7.0") || strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0"))) { return ''; } $this->country = strtolower($this->locale->getCountryCode()); $this->asterisk = ''; if (KiTT_CountryLogic::needAsterisk($this->country)) { $this->asterisk = '*'; } return parent::show(); }