/** * Returns Theme object * @param string $name Theme name * @returns SpawTheme SpawTheme object * @static */ function getTheme($name) { if (strpos($name, '/') || strpos($name, "\\")) { die("illegal theme name"); } $theme = new SpawTheme($name); $theme->loadData(); return $theme; }
/** * Returns Theme object * @param string $name Theme name * @returns SpawTheme SpawTheme object * @static */ function getTheme($name) { $theme = new SpawTheme($name); $theme->loadData(); return $theme; }