| 256 | | // Relocation: build paths using configured value(s) |
| 257 | | $protoedit_url = $this->StaticHref($this->GetConfigValue('wikiedit_uripath').'/protoedit.js'); |
| 258 | | $wikiedit_path = $this->StaticHref($this->GetConfigValue('wikiedit_uripath').'/wikiedit2.js'); |
| 259 | | $output .= '<script type="text/javascript" src="'.$protoedit_url.'"></script>'."\n". |
| 260 | | '<script type="text/javascript" src="'.$wikiedit_path.'"></script>'."\n"; |
| 261 | | // Relocation: we need to pass image path (ending in '/') relative to |
| 262 | | // configured WikiEdit path as a fourth parameter to wE.init : |
| 263 | | // that way WikiEdit can find its own images even if it's relocated/shared |
| 264 | | $wikiedit_imgpath = $this->StaticHref($this->GetConfigValue('wikiedit_uripath').'/images/'); |
| 265 | | $output .= '<script type="text/javascript">'." wE = new WikiEdit(); wE.init('body','WikiEdit','editornamecss','".$wikiedit_imgpath."');".'</script>'."\n"; |
| | 258 | $output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_data.js"></script>'."\n"; |
| | 259 | $output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_search.js"></script>'."\n"; |
| | 260 | $output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_actions.js"></script>'."\n"; |
| | 261 | $output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit.js"></script>'."\n"; |