getRequest()->getParam('section'); if ($section == 'ultimo_layout') { $websiteCode = Mage::app()->getRequest()->getParam('website'); $storeCode = Mage::app()->getRequest()->getParam('store'); Mage::getSingleton('ultimo/cssgen_generator')->generateCss('grid', $websiteCode, $storeCode); Mage::getSingleton('ultimo/cssgen_generator')->generateCss('layout', $websiteCode, $storeCode); } elseif ($section == 'ultimo_design') { $websiteCode = Mage::app()->getRequest()->getParam('website'); $storeCode = Mage::app()->getRequest()->getParam('store'); Mage::getSingleton('ultimo/cssgen_generator')->generateCss('design', $websiteCode, $storeCode); } elseif ($section == 'ultimo') { $websiteCode = Mage::app()->getRequest()->getParam('website'); $storeCode = Mage::app()->getRequest()->getParam('store'); Mage::getSingleton('ultimo/cssgen_generator')->generateCss('layout', $websiteCode, $storeCode); } } /** * After store view is saved */ public function hookTo_storeEdit(Varien_Event_Observer $observer) { $store = $observer->getEvent()->getStore(); $storeCode = $store->getCode(); $websiteCode = $store->getWebsite()->getCode(); Mage::getSingleton('ultimo/cssgen_generator')->generateCss('grid', $websiteCode, $storeCode); Mage::getSingleton('ultimo/cssgen_generator')->generateCss('layout', $websiteCode, $storeCode); Mage::getSingleton('ultimo/cssgen_generator')->generateCss('design', $websiteCode, $storeCode); } }