Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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;
 }