Lines Matching defs:template

4  * DokuWiki template functions
24 * Access a template file
26 * Returns the path to the given file inside the current template, uses
27 * default template if the custom version doesn't exist.
34 function template($file)
38 if (@is_readable(DOKU_INC . 'lib/tpl/' . $conf['template'] . '/' . $file))
39 return DOKU_INC . 'lib/tpl/' . $conf['template'] . '/' . $file;
45 * Convenience function to access template dir from local FS
49 * @param string $tpl The template to use, default to current one
57 if (!$tpl) $tpl = $conf['template'];
62 * Convenience function to access template dir from web
66 * @param string $tpl The template to use, default to current one
74 if (!$tpl) $tpl = $conf['template'];
85 * Everything that doesn't use the main template file isn't
216 * This has to go into the head section of your template.
245 $depends[] = DOKU_CONF . "tpl/" . $conf['template'] . "/style.ini";
373 'href' => DOKU_BASE . 'lib/exe/css.php?t=' . rawurlencode($conf['template']) . '&tseed=' . $tseed
397 'src' => DOKU_BASE . 'lib/exe/js.php' . '?t=' . rawurlencode($conf['template']) . '&tseed=' . $tseed
1253 * Should be called somewhere at the very end of the main.php template
1275 * use this function to access template configuration variables
1286 $tpl = $conf['template'];
1305 * reads all template configuration variables
1329 * use this function to access template language variables
1347 foreach ($config_cascade['lang']['template'] as $config_file) {
1348 if (file_exists($config_file . $conf['template'] . '/en/lang.php')) {
1349 include($config_file . $conf['template'] . '/en/lang.php');
1355 foreach ($config_cascade['lang']['template'] as $config_file) {
1356 if (file_exists($config_file . $conf['template'] . '/' . $conf['lang'] . '/lang.php')) {
1357 include($config_file . $conf['template'] . '/' . $conf['lang'] . '/lang.php');
1367 * template equivalent of p_locale_xhtml()
1387 $file = DOKU_CONF . 'template_lang/' . $conf['template'] . '/' . $conf['lang'] . '/' . $id . '.txt';
1660 * template
1715 * file, otherwise it is assumed to be relative to the current template
1775 * file in the template's root directory.
1803 // still here? try the template dir
1904 'tpl_' . $conf['template'],