Lines Matching defs:file
128 foreach ($files as $file) {
129 if (!file_exists($file)) continue;
130 $ismin = str_ends_with($file, '.min.js');
131 $debugjs = ($conf['allowdebug'] && strpos($file, DOKU_INC . 'lib/scripts/') !== 0);
133 echo "\n\n/* XXXXXXXXXX begin of " . str_replace(DOKU_INC, '', $file) . " XXXXXXXXXX */\n\n";
136 js_load($file);
137 if ($debugjs) echo "\n} catch (e) {\n logError(e, '" . str_replace(DOKU_INC, '', $file) . "');\n}\n";
139 echo "\n\n/* XXXXXXXXXX end of " . str_replace(DOKU_INC, '', $file) . " XXXXXXXXXX */\n\n";
171 * Load the given file, handle include calls and print it
173 * @param string $file filename path to file
177 function js_load($file)
179 if (!file_exists($file)) return;
182 $data = io_readFile($file);
196 if ($ifile[0] != '/') $ifile = dirname($file) . '/' . $ifile;
228 * Return an two-dimensional array with strings from the language file of each plugin.
273 * Return an two-dimensional array with strings from the language file of current active template.