src/View/SSViewer.php
public static function get_themes()
    {
        $default = [self::PUBLIC_THEME, self::DEFAULT_THEME];

        if (!SSViewer::config()->uninherited('theme_enabled')) {
            return $default;
        }

        // Explicit list is assigned
        $themes = static::$current_themes;
        if (!isset($themes)) {
            $themes = SSViewer::config()->uninherited('themes');
        }
        if ($themes) {
            return $themes;
        }

        // Support legacy behaviour
        if ($theme = SSViewer::config()->uninherited('theme')) {
            return [self::PUBLIC_THEME, $theme, self::DEFAULT_THEME];
        }

        return $default;
    }
public static function get_themes()
    {
        $default = [self::PUBLIC_THEME, self::DEFAULT_THEME];

        if (!SSViewer::config()->uninherited('theme_enabled')) {
            return $default;
        }

        // Explicit list is assigned
        $themes = static::$current_themes;
        if (!isset($themes)) {
            $themes = SSViewer::config()->uninherited('themes');
        }
        if ($themes) {
            return $themes;
        }

        // Support legacy behaviour
        if ($theme = SSViewer::config()->uninherited('theme')) {
            return [self::PUBLIC_THEME, $theme, self::DEFAULT_THEME];
        }

        return $default;
    }
public static function get_themes ( ) { $ default = [ self :: PUBLIC_THEME , self :: DEFAULT_THEME ] ; if ( ! SSViewer :: config ( ) -> uninherited ( 'theme_enabled' ) ) { return $ default ; } // Explicit list is assigned $ themes = static :: $ current_themes ; if ( ! isset ( $ themes ) ) { $ themes = SSViewer :: config ( ) -> uninherited ( 'themes' ) ; } if ( $ themes ) { return $ themes ; } // Support legacy behaviour if ( $ theme = SSViewer :: config ( ) -> uninherited ( 'theme' ) ) { return [ self :: PUBLIC_THEME , $ theme , self :: DEFAULT_THEME ] ; } return $ default ; }
Get the list of active themes

@return array
Get the list of active themes