Преглед на файлове

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 преди 14 години
родител
ревизия
76607ca08c
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  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);