_oTemplate = $oTemplate; else $this->_oTemplate = BxDolTemplate::getInstance(); } public function getLinkHTML ($sLink, $sTitle = '', $sMaxWidth = '') { $aAttrs = array( 'title' => bx_html_attribute($sTitle), ); // check for external link if (strncmp(BX_DOL_URL_ROOT, $sLink, strlen(BX_DOL_URL_ROOT)) !== 0) { $aAttrs['target'] = '_blank'; if (getParam('sys_add_nofollow') == 'on') $aAttrs['rel'] = 'nofollow'; } return $this->_oTemplate->parseHtmlByName('embed_iframely_link.html', array( 'link' => $sLink, 'title' => $sTitle, 'attrs' => bx_convert_array2attrs($aAttrs), 'width' => $sMaxWidth, )); } public function addProcessLinkMethod () { return " "; } public function addJsCss () { if ($this->_bCssJsAdded) return ''; $sKey = getParam('sys_iframely_api_key'); $this->_bCssJsAdded = true; return $this->_oTemplate->parseHtmlByName('embed_iframely_integration.html', array( 'key' => $sKey, )); } } /** @} */