public static function widget($name) { require 'Data/Widgets.php'; if ($widgets and array_key_exists($name, $widgets)) { return $widgets[$name]; } else { return "<span style='color:red;'>ERROR: </span> Unknown widget"; } }