diff options
| author | Syndamia <kamen@syndamia.com> | 2025-02-02 10:16:39 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-02-02 10:18:10 +0200 |
| commit | ee1add20e2861e95de0b6b3b621f0a8e277f2a02 (patch) | |
| tree | 181a3532501db013263c4456578b62d5442cc6c7 /models/user.php | |
| parent | a6f29034d18d5a5ce48d879845cce3544b0f8a3c (diff) | |
| download | nowayforward_human-ee1add20e2861e95de0b6b3b621f0a8e277f2a02.tar nowayforward_human-ee1add20e2861e95de0b6b3b621f0a8e277f2a02.tar.gz nowayforward_human-ee1add20e2861e95de0b6b3b621f0a8e277f2a02.zip | |
feat: Proper list page layout and export user logo logic to class
Diffstat (limited to 'models/user.php')
| -rw-r--r-- | models/user.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/models/user.php b/models/user.php index 04f5a83..9b76f37 100644 --- a/models/user.php +++ b/models/user.php @@ -46,4 +46,15 @@ class User extends Table { "WHERE AuthorUID = \"$this->UID\"" ); } + + function icon() { + global $VIEWS_DIR; + // https://tabler.io/icons + if ($this->Role === 'User') { + include $VIEWS_DIR . '/img/user.svg'; + } + else { + include $VIEWS_DIR . '/img/user-star.svg'; + } + } } |
