protected function _processAttributeValue($parentContent, $element, $token, $attributeValue) { // TODO: enclose class attribute values in quotes, otherwise this won't work parent::_processAttributeValue($parentContent, $element, $token, $attributeValue); /* @var $core Mana_Core_Helper_Data */ $core = Mage::helper(strtolower('Mana_Core')); if ($element->getIsExpectingClassValue()) { $closingQuote = $core->endsWith($this->_filteredOutput, '"') ? '"' : ($core->endsWith($this->_filteredOutput, "'") ? "'" : ''); if ($closingQuote != '') { $this->_filteredOutput = substr($this->_filteredOutput, 0, strlen($this->_filteredOutput) - strlen($closingQuote)); } $this->_filteredOutput .= ' m-block mb-' . $this->getBlockName() . $closingQuote; $element->setIsExpectingClassValue(false)->setIsMarked(true); } }