changeset 577 | 5118610ce160 |
parent 573 | 43e7254afdb4 |
child 578 | 02bc119a6dd3 |
576:6a8c4f1fc6c9 | 577:5118610ce160 |
---|---|
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
13 */ |
13 */ |
14 |
14 |
15 class template |
15 class template |
16 { |
16 { |
17 var $tpl_strings, $tpl_bool, $vars_assign_history, $theme, $style, $no_headers, $additional_headers, $sidebar_extra, $sidebar_widgets, $toolbar_menu, $theme_list, $named_theme_list, $default_theme, $default_style, $plugin_blocks, $namespace_string, $style_list, $theme_loaded; |
17 var $tpl_strings, $tpl_bool, $vars_assign_history, $theme, $style, $no_headers, $additional_headers, $sidebar_extra, $sidebar_widgets, $toolbar_menu, $theme_list, $named_theme_list, $default_theme, $default_style, $plugin_blocks, $namespace_string, $style_list, $theme_loaded, $initted_to_page_id, $initted_to_namespace; |
18 |
18 |
19 /** |
19 /** |
20 * The list of themes that are critical for Enano operation. This doesn't include oxygen which |
20 * The list of themes that are critical for Enano operation. This doesn't include oxygen which |
21 * remains a user theme. By default this is admin and printable which have to be loaded on demand. |
21 * remains a user theme. By default this is admin and printable which have to be loaded on demand. |
22 * @var array |
22 * @var array |
393 $local_page_exists =& $paths->page_exists; |
393 $local_page_exists =& $paths->page_exists; |
394 $local_page_protected =& $paths->page_protected; |
394 $local_page_protected =& $paths->page_protected; |
395 $perms =& $session; |
395 $perms =& $session; |
396 } |
396 } |
397 |
397 |
398 if ( $local_page_id === $this->initted_to_page_id && $local_namespace === $this->initted_to_namespace ) |
|
399 { |
|
400 // we're already initted with this page. |
|
401 return true; |
|
402 } |
|
403 |
|
404 $this->initted_to_page_id = $local_page_id; |
|
405 $this->initted_to_namespace = $local_namespace; |
|
406 |
|
398 if ( $local_page_exists && isset($paths->pages[$local_page]) ) |
407 if ( $local_page_exists && isset($paths->pages[$local_page]) ) |
399 { |
408 { |
400 $local_cdata =& $paths->pages[$local_page]; |
409 $local_cdata =& $paths->pages[$local_page]; |
401 } |
410 } |
402 else |
411 else |
1146 { |
1155 { |
1147 header('Content-type: application/xhtml+xml'); |
1156 header('Content-type: application/xhtml+xml'); |
1148 } |
1157 } |
1149 |
1158 |
1150 // Reassign one important variable that can need to be changed after init_vars(): ADDITIONAL_HEADERS |
1159 // Reassign one important variable that can need to be changed after init_vars(): ADDITIONAL_HEADERS |
1151 $this->assign_vars(array( |
1160 if ( !empty($this->additional_headers) ) |
1152 'ADDITIONAL_HEADERS' => $this->additional_headers |
1161 { |
1153 )); |
1162 $this->assign_vars(array( |
1163 'ADDITIONAL_HEADERS' => $this->additional_headers |
|
1164 )); |
|
1165 } |
|
1154 |
1166 |
1155 $headers_sent = true; |
1167 $headers_sent = true; |
1156 if(!defined('ENANO_HEADERS_SENT')) |
1168 if(!defined('ENANO_HEADERS_SENT')) |
1157 define('ENANO_HEADERS_SENT', ''); |
1169 define('ENANO_HEADERS_SENT', ''); |
1158 if ( !$this->no_headers ) |
1170 if ( !$this->no_headers ) |