Lines Matching refs:tpl
34 $tpl = $conf['template'];
38 if( $conf['plugin']['templateconfhelper']['base_tpl'] != $tpl ) {
39 $tpl = $conf['plugin']['templateconfhelper']['base_tpl'];
45 if( isset( $u['template'] ) && $u['template'] && $u['template'] != $tpl ) {
46 $tpl = $u['template'];
49 if( isset( $u['template_theme'] ) && $u['template_theme'] != $tpl ) {
55 if( $_GET['utpl'] != $tpl && $_GET['utpl'] != $conf['template'] ) {
58 $tpl = $_GET['utpl'];
59 $this->save_session( 'template', $tpl );
62 $tpl = $conf['default_tpl'];
76 if( $switch && preg_match( '/^[\w-]+$/', $tpl )) {
77 $this->_switch( $tpl, $theme );
119 public function tpl_switch( $tpl ) {/*{{{*/ argument
121 if( $conf['template'] == $tpl ) { return ''; }
125 if( preg_match( '/^[\w-]+$/', $tpl )) {
126 $this->_switch( $tpl );
130 function _switch( $tpl, $theme='' ) {/*{{{*/ argument
139 $conf['template'] = $tpl;
141 $tconf = $this->tpl_loadconfig( $tpl );
144 if (isset($conf['tpl'][$tpl][$key])) continue;
145 $conf['tpl'][$tpl][$key] = $value;
151 public function tpl_loadconfig( $tpl ) {/* {{{*/ argument
152 $file = DOKU_TPLINC.'../'.$tpl.'/conf/default.php';