Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 31 lines (26 sloc) 0.818 kb
5cd857db »
2011-08-10 first rough cut
1 <?php
2 /**
3 * Template Functions
4 *
5 * This file provides template specific custom functions that are
6 * not provided by the DokuWiki core.
7 * It is common practice to start each function with an underscore
8 * to make sure it won't interfere with future core functions.
9 */
10
11 // must be run from within DokuWiki
12 if (!defined('DOKU_INC')) die();
13
5739c373 »
2012-01-30 added @todo to tpl_function to clear it later
14 /* @todo: add this function to the core and delete this file */
15
5cd857db »
2011-08-10 first rough cut
16 /**
17 * Include additional html file from conf directory if it exists, otherwise use
18 * file in the template's root directory.
19 *
20 * @author Anika Henke <anika@selfthinker.org>
21 */
22 function _tpl_include($fn) {
23 $confFile = DOKU_CONF.$fn;
24 $tplFile = dirname(__FILE__).'/'.$fn;
25
26 if (file_exists($confFile))
27 include($confFile);
28 else if (file_exists($tplFile))
29 include($tplFile);
30 }
Something went wrong with that request. Please try again.