Changeset 1376
- Timestamp:
- Jun 22, 2006, 8:17:47 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r1366 r1376 202 202 // TODO : replace initial $user['template'] by $user['layout'] 203 203 204 if (defined('IN_ADMIN') && IN_ADMIN)205 {206 $template_root = 'admin';207 }208 else209 {210 $template_root = 'public';211 }212 204 include( 213 205 PHPWG_ROOT_PATH 214 .'template/'.$ template_root.'/'.$user['template']206 .'template/'.$user['template'] 215 207 .'/theme/'.$user['theme'] 216 208 .'/themeconf.inc.php' -
trunk/include/functions.inc.php
r1364 r1376 598 598 * returns available template/theme 599 599 */ 600 function get_pwg_themes( $template_root = 'public')600 function get_pwg_themes() 601 601 { 602 602 $themes = array(); 603 603 604 $template_dir = PHPWG_ROOT_PATH.'template' .'/'.$template_root;604 $template_dir = PHPWG_ROOT_PATH.'template'; 605 605 606 606 foreach (get_dirs($template_dir) as $template) -
trunk/include/page_header.php
r1366 r1376 29 29 // Start output of page 30 30 // 31 if (defined('IN_ADMIN') && IN_ADMIN) 32 { 33 $template->set_rootdir(PHPWG_ROOT_PATH.'template/admin/'.$user['template']); 34 $template->set_filenames(array('header'=>'header.tpl')); 35 } 36 else 37 { 38 $template->set_rootdir(PHPWG_ROOT_PATH.'template/public/'.$user['template']); 39 $template->set_filenames(array('header'=>'header.tpl')); 40 } 31 $template->set_filenames(array('header'=>'header.tpl')); 41 32 42 33 $template->assign_vars(
Note: See TracChangeset
for help on using the changeset viewer.