public static function checkThemeConfig() { $themePath = System::getThemePath(); if (!file_exists($themePath . 'config.php')) { return false; } include $themePath . 'config.php'; if (!class_exists('ThemeConfig')) { return false; } System::$themeConfig = ThemeConfig::index(); }
function showInfoText() { global $infoText; $s = ""; if (!empty($infoText)) { $s = $infoText; } else { $s = LocationHistory::getInfoText(); } if ($s && is_callable(array("ThemeConfig", "showInfoText"))) { ThemeConfig::showInfoText($s); } return $s; }