src/View/ThemeResourceLoader.php
public function getThemePaths($themes = null)
    {
        if ($themes === null) {
            $themes = SSViewer::get_themes();
        }

        $paths = [];
        foreach ($themes as $themename) {
            // Expand theme sets
            $set = $this->getSet($themename);
            $subthemes = $set ? $set->getThemes() : [$themename];

            // Resolve paths
            foreach ($subthemes as $theme) {
                $paths[] = $this->getPath($theme);
            }
        }
        return $paths;
    }
public function getThemePaths($themes = null)
    {
        if ($themes === null) {
            $themes = SSViewer::get_themes();
        }

        $paths = [];
        foreach ($themes as $themename) {
            // Expand theme sets
            $set = $this->getSet($themename);
            $subthemes = $set ? $set->getThemes() : [$themename];

            // Resolve paths
            foreach ($subthemes as $theme) {
                $paths[] = $this->getPath($theme);
            }
        }
        return $paths;
    }
public function getThemePaths ( $ themes = null ) { if ( $ themes === null ) { $ themes = SSViewer :: get_themes ( ) ; } $ paths = [ ] ; foreach ( $ themes as $ themename ) { // Expand theme sets $ set = $ this -> getSet ( $ themename ) ; $ subthemes = $ set ? $ set -> getThemes ( ) : [ $ themename ] ; // Resolve paths foreach ( $ subthemes as $ theme ) { $ paths [ ] = $ this -> getPath ( $ theme ) ; } } return $ paths ; }
Resolve all themes to the list of root folders relative to site root

@param array $themes List of themes to resolve. Supports named theme sets. Defaults to {@see SSViewer::get_themes()}.
@return array List of root-relative folders in order of precendence.
Resolve all themes to the list of root folders relative to site root