- Timestamp:
- Apr 29, 2010, 9:57:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r5999 r6006 111 111 * Load theme's parameters. 112 112 */ 113 function set_theme($root, $theme, $path, $load_css=true )113 function set_theme($root, $theme, $path, $load_css=true, $load_local_head=true) 114 114 { 115 115 $this->set_template_dir($root.'/'.$theme.'/'.$path); … … 119 119 if (isset($themeconf['parent']) and $themeconf['parent'] != $theme) 120 120 { 121 if (!isset($themeconf['load_parent_css'])) 122 { 123 $themeconf['load_parent_css'] = $load_css; 124 } 125 $this->set_theme($root, $themeconf['parent'], $path, $themeconf['load_parent_css']); 121 $this->set_theme( 122 $root, 123 $themeconf['parent'], 124 $path, 125 isset($themeconf['load_parent_css']) ? $themeconf['load_parent_css'] : $load_css, 126 isset($themeconf['load_parent_local_head']) ? $themeconf['load_parent_local_head'] : $load_local_head 127 ); 126 128 } 127 129 … … 130 132 'load_css' => $load_css, 131 133 ); 132 if (!empty($themeconf['local_head']) )134 if (!empty($themeconf['local_head']) and $load_local_head) 133 135 { 134 136 $tpl_var['local_head'] = realpath($root.'/'.$theme.'/'.$themeconf['local_head'] );
Note: See TracChangeset
for help on using the changeset viewer.