From ee1add20e2861e95de0b6b3b621f0a8e277f2a02 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 2 Feb 2025 10:16:39 +0200 Subject: feat: Proper list page layout and export user logo logic to class --- models/user.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'models/user.php') 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'; + } + } } -- cgit v1.2.3