/** * load the chosen viewer theme for the framework */ function init_theme($theme) { $view_file = LIBRARY_DIR . "view" . FRAME_EXTENSION; //load the view class require_once $view_file; //check if requested theme is available - or load default theme if (is_dir(THEMES_DIR . $theme . "/")) { $user_theme = $theme; View::set_theme($user_theme); } else { $default_theme = self::$default_theme; View::set_theme($default_theme); } }
/** * load the chosen viewer theme for the framework */ function init_theme($theme) { //load the view class require_once LIBRARY_DIR . "view.php"; //check if requested theme is available - or load default theme if (is_dir(THEMES_DIR . $theme . "/")) { $user_theme = $theme; View::set_theme($user_theme); } else { $default_theme = self::$default_theme; View::set_theme($default_theme); } }