diff options
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'; + } + } } |
