Explorar el Código

Feature #2132 - Adding code for loading the file ASCIIMathML.js in the system's header. Thus this javascript is accessible almost elsewhere in the system.

Ivan Tcholakov hace 14 años
padre
commit
76607ca08c
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      main/inc/header.inc.php

+ 7 - 0
main/inc/header.inc.php

@@ -32,6 +32,13 @@ if ($navigator_info['name'] == 'Internet Explorer' &&  $navigator_info['version'
     $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/iepngfix/iepngfix_tilebg.js" type="text/javascript" language="javascript"></script>';
 }
 
+// Include here the script ASCIIMathML.js if you want to show mathematical formulas and graphics
+// not only in the "Documents" tool, but elsewhere in the system. This setting affects the
+// online editor's plugins 'asciimath' and 'asciisvg'.
+if (api_get_setting('include_asciimathml_script') == 'true') {
+    $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'asciimath/ASCIIMathML.js" type="text/javascript"></script>';
+}
+
 if (isset($httpHeadXtra) && $httpHeadXtra) {
     foreach ($httpHeadXtra as & $thisHttpHead) {
         header($thisHttpHead);