فهرست منبع

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);