Add configurable option to change avatar position

This commit is contained in:
ruan 2015-09-17 13:54:03 +02:00
parent 0c0e89da1f
commit 20416f4f4d
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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