getRequest()->getRouteName(); $id = Mage::getSingleton('cms/page')->getIdentifier(); if($routeName == 'cms' && $id == 'home') { return true; } else { return false; } } /** * Get icon color suffix for home link icon which is displayed in menu item * */ public function getHomeIconSuffix() { $packageName = Mage::getStoreConfig('design/package/name'); $theme = Mage::helper($packageName); $outputSuffix = ''; //Get config: w = white icon, b = black icon if ($this->getIsOnHome()) //If current page is homepage { $colorCurrent = $theme->getCfgDesign('nav/mobile_opener_current_color'); if ($colorCurrent == 'w') $outputSuffix = '-w'; elseif ($colorCurrent == 'b') $outputSuffix = ''; } else { $colorDefault = $theme->getCfgDesign('nav/mobile_opener_color'); $colorHover = $theme->getCfgDesign('nav/mobile_opener_hover_color'); $colors = $colorDefault . $colorHover; if ($colors == 'bb') $outputSuffix = ''; elseif ($colors == 'bw') $outputSuffix = '-bw'; elseif ($colors == 'wb') $outputSuffix = '-wb'; elseif ($colors == 'ww') $outputSuffix = '-w'; } return $outputSuffix; } /** * Get icon color suffix for home link icon which is displayed as single icon * */ public function getSingleHomelinkIconSuffix() { $packageName = Mage::getStoreConfig('design/package/name'); $theme = Mage::helper($packageName); $suffix = ($theme->getCfgDesign('nav/home_link_icon_color') == 'b') ? '' : '-'.$theme->getCfgDesign('nav/home_link_icon_color'); return $suffix; } }