function fetchHeadContent() { $this->loadXajax(); $return = ''; $e = new wysiwygPro(); if (!empty($this->editorURL)) { $e->editorURL = $this->editorURL; } if (!empty($this->route)) { $e->route = $this->route; } $e->_doBaseConfig(); $this->editorURL = $e->editorURL; $this->route = $e->route; $return .= $e->fetchHeadContent(); unset($e); //$wproHeadDisplayed = false; if (!empty($this->languages)) { foreach ($this->languages as $v) { $e = new wysiwygPro(); $e->lang = $v; $e->iframeDialogs = true; $e->editorURL = $this->editorURL; $e->route = $this->route; $return .= $e->fetchStyleSheets(); unset($e); //$wproHeadDisplayed = true; } } if (!empty($this->themes)) { foreach ($this->themes as $v) { $e = new wysiwygPro(); $e->theme = $v; $e->iframeDialogs = true; $e->editorURL = $this->editorURL; $e->route = $this->route; $return .= $e->fetchStyleSheets(); unset($e); } } /* if (!$wproHeadDisplayed) { $e = new wysiwygPro(); $e->iframeDialogs = true; $e->editorURL = $this->editorURL; $e->route = $this->route; $return .= $e->fetchStyleSheets(); //exit(htmlspecialchars($e->fetchHeadContent())); unset($e); } */ if ($this->usingWpAjax) { $return .= $this->xajax->getJavascript($this->editorURL . "core/js/", "xajax/xajax.js"); // adds support for non-activex powered ajax for IE < 7 $return .= '<!--[if lt IE 7]><script type="text/javascript" src="' . $this->editorURL . 'core/js/xajax/activex_off.js"></script><![endif]-->'; } $return .= '<script type="text/javascript">function displayWysiwygPro(one,two,three,four,five){' . $this->xajax->sWrapperPrefix . 'displayWysiwygPro(one,two,three,four,five);}</script>'; $return .= '<script src="' . $this->editorURL . 'js/ajaxDisplay.js" type="text/javascript"></script>'; return $return; }