/**
  * Reset theme to default so we can play with blocks
  */
 function initTheme() {
   global $theme, $theme_key;
   unset($theme);
   unset($theme_key);
   init_theme();
   _block_rehash();
 }
示例#2
0
load_theme_settings($globals['theme_folder']);
//The URL for W3C Validation
$globals['ind'] = str_replace('&', '&', $globals['index']);
///////////////////////////////////////
// Load the theme's headers and footers
///////////////////////////////////////
if (!empty($load_hf) && init_theme('admin/adminhf', 'Admin Headers and Footers')) {
    //Finally the file is loaded
    if (init_theme_func(array('softheader', 'softfooter', 'error_handle', 'majorerror', 'message'), 'Headers and Footers')) {
        $globals['hf_loaded'] = 1;
    }
}
//Are we to load any theme or just pass
if (!empty($theme['init_theme']) && empty($errormessage) && empty($messagetext) && empty($redirect) && $globals['hf_loaded']) {
    //Initialize the theme
    if (init_theme($theme['init_theme'], $theme['init_theme_name'])) {
        //Initialize the Theme function
        if (init_theme_func($theme['init_theme_func'], $theme['init_theme_name'])) {
            call_user_func($theme['call_theme_func']);
        }
    }
}
////////////////////////////////////////
// Check is some error triggered before
////////////////////////////////////////
if (!empty($errormessage)) {
    if ($globals['hf_loaded']) {
        //Call Major Error
        majorerror($errortitle, $errormessage, $errorheading);
    } else {
        echo $errormessage;
示例#3
0
<?php

//Blue-KING index.php
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
init_theme();