Public Member Functions | |
_construct () | |
setLogo ($logo_src, $logo_alt) | |
getLogoSrc () | |
getLogoAlt () | |
getWelcome () |
Definition at line 34 of file Header.php.
_construct | ( | ) |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 36 of file Header.php.
getLogoAlt | ( | ) |
Definition at line 56 of file Header.php.
00057 { 00058 if (empty($this->_data['logo_alt'])) { 00059 $this->_data['logo_alt'] = Mage::getStoreConfig('design/header/logo_alt'); 00060 } 00061 return $this->_data['logo_alt']; 00062 }
getLogoSrc | ( | ) |
Definition at line 48 of file Header.php.
00049 { 00050 if (empty($this->_data['logo_src'])) { 00051 $this->_data['logo_src'] = Mage::getStoreConfig('design/header/logo_src'); 00052 } 00053 return $this->getSkinUrl($this->_data['logo_src']); 00054 }
getWelcome | ( | ) |
Definition at line 64 of file Header.php.
00065 { 00066 if (empty($this->_data['welcome'])) { 00067 if (Mage::isInstalled() && Mage::getSingleton('customer/session')->isLoggedIn()) { 00068 $this->_data['welcome'] = $this->__('Welcome, %s!', $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getName())); 00069 } else { 00070 $this->_data['welcome'] = Mage::getStoreConfig('design/header/welcome'); 00071 } 00072 } 00073 00074 return $this->_data['welcome']; 00075 }
setLogo | ( | $ | logo_src, | |
$ | logo_alt | |||
) |
Definition at line 41 of file Header.php.
00042 { 00043 $this->setLogoSrc($logo_src); 00044 $this->setLogoAlt($logo_alt); 00045 return $this; 00046 }