Exemplo n.º 1
0
	/**
	 * Wrapper for self::_title
	 * This wrapper was added for 1.3 backwards compatibility
	 *
	 * @string $text
	 * @bool $resetIfExists
	 */
	protected function _title($text = null, $resetIfExists = true)
	{
		if (Mage::helper('wordpress')->isLegacyMagento()) {
			if ($text == null) {
				$this->_titles = array();
				$title = '';
			}
			else {
				$this->_titles[] = $text;
				$title = implode(' / ', array_reverse($this->_titles));
			}

			if ($head = $this->_getBlock('head')) {
				$head->setTitle($title);
			}

			return $this;
		}
		
		return parent::_title($text, $resetIfExists);
	}