Public Member Functions | |
__construct () | |
getLang () | |
addBodyClass ($className) |
Definition at line 34 of file Page.php.
__construct | ( | ) |
Class constructor
Reimplemented from Varien_Object.
Definition at line 41 of file Page.php.
00042 { 00043 parent::__construct(); 00044 $this->setTemplate('page.phtml'); 00045 $action = Mage::app()->getFrontController()->getAction(); 00046 if ($action) { 00047 $this->addBodyClass($action->getFullActionName('-')); 00048 } 00049 }
addBodyClass | ( | $ | className | ) |
Add CSS class to page body tag
string | $className |
Definition at line 70 of file Page.php.
00071 { 00072 $className = preg_replace('#[^a-z0-9]+#', '-', strtolower($className)); 00073 $this->setBodyClass($this->getBodyClass() . ' ' . $className); 00074 return $this; 00075 }
getLang | ( | ) |