Ejemplo n.º 1
0
 /**
  * @param Mage_Page_Block_Html_Head $head
  * @return string
  */
 protected function getOldMetaTitle($head)
 {
     $title = $head->getTitle();
     // trim prefix if any
     $prefix = Mage::getStoreConfig('design/head/title_prefix');
     $prefix = htmlspecialchars(html_entity_decode(trim($prefix), ENT_QUOTES, 'UTF-8'));
     if ($prefix) {
         $title = substr($title, strlen($prefix));
     }
     $suffix = Mage::getStoreConfig('design/head/title_suffix');
     $suffix = htmlspecialchars(html_entity_decode(trim($suffix), ENT_QUOTES, 'UTF-8'));
     if ($suffix) {
         $title = substr($title, 0, -1 - strlen($suffix));
     }
     return $title;
 }