public static function all()
    {
        $it = new DirectoryIterator(themes_path());
        $it->rewind();

        $result = [];
        foreach ($it as $fileinfo) {
            if (!$fileinfo->isDir() || $fileinfo->isDot()) {
                continue;
            }

            $theme = static::load($fileinfo->getFilename());

            $result[] = $theme;
        }

        return $result;
    }
public static function all()
    {
        $it = new DirectoryIterator(themes_path());
        $it->rewind();

        $result = [];
        foreach ($it as $fileinfo) {
            if (!$fileinfo->isDir() || $fileinfo->isDot()) {
                continue;
            }

            $theme = static::load($fileinfo->getFilename());

            $result[] = $theme;
        }

        return $result;
    }
public static function all ( ) { $ it = new DirectoryIterator ( themes_path ( ) ) ; $ it -> rewind ( ) ; $ result = [ ] ; foreach ( $ it as $ fileinfo ) { if ( ! $ fileinfo -> isDir ( ) || $ fileinfo -> isDot ( ) ) { continue ; } $ theme = static :: load ( $ fileinfo -> getFilename ( ) ) ; $ result [ ] = $ theme ; } return $ result ; }
Returns a list of all themes.
@return array Returns an array of the Theme objects.
Returns a list of all themes .