Changeset 5991 for trunk/include/template.class.php
- Timestamp:
- Apr 29, 2010, 2:45:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r5985 r5991 103 103 * Load theme's parameters. 104 104 */ 105 function set_theme($root, $theme, $path )105 function set_theme($root, $theme, $path, $load_css=true) 106 106 { 107 107 $this->set_template_dir($root.'/'.$theme.'/'.$path); … … 111 111 if (isset($themeconf['parent']) and $themeconf['parent'] != $theme) 112 112 { 113 $this->set_theme($root, $themeconf['parent'], $path); 114 } 115 116 $tpl_var = array('id' => $theme); 113 if (!isset($themeconf['load_parent_css'])) 114 { 115 $themeconf['load_parent_css'] = true; 116 } 117 $this->set_theme($root, $themeconf['parent'], $path, $themeconf['load_parent_css']); 118 } 119 120 $tpl_var = array( 121 'id' => $theme, 122 'load_css' => $load_css, 123 ); 117 124 if (!empty($themeconf['local_head']) ) 118 125 {
Note: See TracChangeset
for help on using the changeset viewer.