diff options
Diffstat (limited to 'src/web/_views/template/pfp.php')
-rw-r--r-- | src/web/_views/template/pfp.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/web/_views/template/pfp.php b/src/web/_views/template/pfp.php new file mode 100644 index 0000000..aec7318 --- /dev/null +++ b/src/web/_views/template/pfp.php @@ -0,0 +1,8 @@ +<?php /* Copyright (c) 2024 Freya Murphy */ ?> +<?php /* vi: syntax=php */ ?> +<?php + $class = isset($class) ? $class : ''; +?> +<a class="image-loading pfp <?=$class?>" href="/profile?id=<?=$user['id']?>"> + <img src="/api/rpc/avatar?user_id=<?=$user['id']?>" /> +</a> |