protected function _getEmoticonImg($emoticonCode, $height = null) { $emoticon = CM_Emoticon::findByCode($emoticonCode); if (!$emoticon) { throw new CM_Exception_Invalid('Cannot find emoticon for code `' . $emoticonCode . '`.'); } $urlCdn = $this->_mockSite->getUrlCdn(); $siteType = $this->_mockSite->getId(); $deployVersion = CM_App::getInstance()->getDeployVersion(); $heightAttribute = $height ? ' height="' . $height . '"' : ''; return '<img src="' . $urlCdn . '/layout/' . $siteType . '/' . $deployVersion . '/img/emoticon/' . $emoticon->getFileName() . '" class="emoticon emoticon-' . $emoticon->getName() . '" title="' . $emoticon->getDefaultCode() . '"' . $heightAttribute . ' />'; }