Lines Matching defs:file

24  * Access a template file
26 * Returns the path to the given file inside the current template, uses
29 * @param string $file
34 function template($file)
38 if (@is_readable(DOKU_INC . 'lib/tpl/' . $conf['template'] . '/' . $file))
39 return DOKU_INC . 'lib/tpl/' . $conf['template'] . '/' . $file;
41 return DOKU_INC . 'lib/tpl/dokuwiki/' . $file;
85 * Everything that doesn't use the main template file isn't
1134 * Returns metadata as configured in mediameta config file, ready for creating html
1312 $file = tpl_incdir() . '/conf/default.php';
1315 if (!file_exists($file)) return false;
1317 // load default config file
1318 include($file);
1365 * Retrieve a language dependent file and pass to xhtml renderer for display
1386 $file = DOKU_CONF . 'template_lang/' . $conf['template'] . '/' . $conf['lang'] . '/' . $id . '.txt';
1387 if (!file_exists($file)) {
1388 $file = $path . $conf['lang'] . '/' . $id . '.txt';
1389 if (!file_exists($file)) {
1391 $file = $path . 'en/' . $id . '.txt';
1394 return $file;
1504 * selected file, the meta editing dialog or
1505 * list of file revisions
1711 * Tries to find a ressource file in the given locations.
1714 * file, otherwise it is assumed to be relative to the current template
1728 $file = '';
1733 $file = mediaFN($img);
1736 $file = tpl_incdir() . $img;
1740 if (file_exists($file)) break;
1744 if (!file_exists($file)) {
1747 $file = DOKU_INC . 'lib/images/blank.gif';
1756 $imginfo = getimagesize($file);
1771 * PHP include a file
1774 * file in the template's root directory.
1777 * file next to the ´main´ config files, in the order protected, local,
1783 * @param string $file
1788 function tpl_includeFile($file)
1795 if (file_exists("$dir/$file")) {
1796 include("$dir/$file");
1803 $file = tpl_incdir() . $file;
1804 if (file_exists($file)) {
1805 include($file);
1879 echo '<div class="panel file">' . NL;