public static function getActiveTheme()
    {
        if (self::$activeThemeCache !== false) {
            return self::$activeThemeCache;
        }

        $theme = static::load(static::getActiveThemeCode());

        if (!File::isDirectory($theme->getPath())) {
            return self::$activeThemeCache = null;
        }

        return self::$activeThemeCache = $theme;
    }
public static function getActiveTheme()
    {
        if (self::$activeThemeCache !== false) {
            return self::$activeThemeCache;
        }

        $theme = static::load(static::getActiveThemeCode());

        if (!File::isDirectory($theme->getPath())) {
            return self::$activeThemeCache = null;
        }

        return self::$activeThemeCache = $theme;
    }
public static function getActiveTheme ( ) { if ( self :: $ activeThemeCache !== false ) { return self :: $ activeThemeCache ; } $ theme = static :: load ( static :: getActiveThemeCode ( ) ) ; if ( ! File :: isDirectory ( $ theme -> getPath ( ) ) ) { return self :: $ activeThemeCache = null ; } return self :: $ activeThemeCache = $ theme ; }
Returns the active theme object.
@return \Cms\Classes\Theme Returns the loaded theme object.
If the theme doesn't exist, returns null.
Returns the active theme object .