public static function getSubnaviInclude($addon = false) { self::setCurrents(); $page = self::$getVars[0]; $subpage = self::$getVars[1]; $current = self::$subnavi[self::getSubpageName()]; // isset gibts bei null false aus if (isset($current['callback']) && is_callable($current['callback'])) { return $current['callback'](); } if (!$addon) { return dir::page($page . '.' . $subpage . '.php'); } else { return dir::addon($addon, 'page/' . $page . '.' . $subpage . '.php'); } }