mc-cms-namelessmc/modules/Core/classes/Avatars/VisageAvatarSource.php
tadhgboyle b2b7a60867
Update Avatar config to use Settings system rather than Cache (#3664)
* Update Avatar config to use Settings system rather than Cache

* wip

* wip

* wip

* wip

* 🔥 built in avatar source

* fix Visage source

* lint

* Update 230.php
2025-05-23 16:55:55 -07:00

25 lines
632 B
PHP

<?php
/**
* Visage avatar source class
*
* @package Modules\Core\Avatars
* @author Aberdeener
* @version 2.0.0-pr12
* @license MIT
*/
class VisageAvatarSource extends AvatarSourceBase {
public function __construct() {
$this->_name = 'Visage';
$this->_base_url = 'https://vzge.me/';
$this->_perspectives_map = [
'face' => 'face',
'head' => 'head',
'bust' => 'bust'
];
}
public function getUrlToFormat(string $perspective): string {
return $this->_base_url . $this->getRelativePerspective($perspective) . '/{size}/{identifier}';
}
}