*/ class Mage_Page_Block_Html_Footer extends Mage_Core_Block_Template { protected $_copyright; protected function _construct() { $this->addData(array( 'cache_lifetime'=> null, 'cache_tags' => array(Mage_Core_Model_Store::CACHE_TAG, Mage_Cms_Model_Block::CACHE_TAG) )); } /** * Get cache key informative items * * @return array */ public function getCacheKeyInfo() { return array( 'PAGE_FOOTER', Mage::app()->getStore()->getId(), (int)Mage::app()->getStore()->isCurrentlySecure(), Mage::getDesign()->getPackageName(), Mage::getDesign()->getTheme('template'), Mage::getSingleton('customer/session')->isLoggedIn() ); } public function setCopyright($copyright) { $this->_copyright = $copyright; return $this; } public function getCopyright() { if (!$this->_copyright) { $this->_copyright = Mage::getStoreConfig('design/footer/copyright'); } return $this->_copyright; } /** * Retrieve child block HTML, sorted by default * * @param string $name * @param boolean $useCache * @return string */ public function getChildHtml($name='', $useCache=true, $sorted=true) { return parent::getChildHtml($name, $useCache, $sorted); } }