Public Member Functions | |
getTitleSeparator ($store=null) | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 35 of file Breadcrumbs.php.
_prepareLayout | ( | ) | [protected] |
Preparing layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 54 of file Breadcrumbs.php.
00055 { 00056 if ($breadcrumbsBlock = $this->getLayout()->getBlock('breadcrumbs')) { 00057 $breadcrumbsBlock->addCrumb('home', array( 00058 'label'=>Mage::helper('catalog')->__('Home'), 00059 'title'=>Mage::helper('catalog')->__('Go to Home Page'), 00060 'link'=>Mage::getBaseUrl() 00061 )); 00062 00063 $title = array(); 00064 $path = Mage::helper('catalog')->getBreadcrumbPath(); 00065 00066 foreach ($path as $name => $breadcrumb) { 00067 $breadcrumbsBlock->addCrumb($name, $breadcrumb); 00068 $title[] = $breadcrumb['label']; 00069 } 00070 00071 if ($headBlock = $this->getLayout()->getBlock('head')) { 00072 $headBlock->setTitle(join($this->getTitleSeparator(), array_reverse($title))); 00073 } 00074 } 00075 return parent::_prepareLayout(); 00076 }
getTitleSeparator | ( | $ | store = null |
) |
Retrieve HTML title value separator (with space)
mixed | $store |
Definition at line 43 of file Breadcrumbs.php.
00044 { 00045 $separator = (string)Mage::getStoreConfig('catalog/seo/title_separator', $store); 00046 return ' ' . $separator . ' '; 00047 }