/** * Retrieves the singleton instance of the feature * @return ThemeGroup unique instance */ public static function get_instance() { if (self::$instance != null) { return self::$instance; } $c = get_called_class(); self::$instance = new $c(); return self::$instance; }