mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Add configurable option to change avatar position
This commit is contained in:
parent
0c0e89da1f
commit
20416f4f4d
@ -120,6 +120,9 @@ class Page {
|
||||
* @return string
|
||||
*/
|
||||
function get_avatar($name, $uuid, $name_under = true, $name_repl = null) {
|
||||
if ($name_under) {
|
||||
$name_under = $this->settings->avatar_names_below;
|
||||
}
|
||||
if (strlen($uuid) === 36 && $uuid[14] === '3') {
|
||||
// Avatars cannot be associated with offline mode UUIDs (version 3)
|
||||
$uuid = $name;
|
||||
|
@ -54,6 +54,9 @@ final class Settings {
|
||||
*/
|
||||
$this->avatar_source = 'https://cravatar.eu/avatar/$UUID/25';
|
||||
|
||||
// If enabled, names will be shown below avatars instead of being shown next to them.
|
||||
$this->avatar_names_below = true;
|
||||
|
||||
// The date format can be changed here.
|
||||
// https://secure.php.net/manual/en/function.date.php
|
||||
// Example of default: July 2, 2015, 9:19 PM
|
||||
|
Loading…
x
Reference in New Issue
Block a user