summaryrefslogtreecommitdiff
path: root/src/web/_views/template/pfp.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/web/_views/template/pfp.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/web/_views/template/pfp.php b/src/web/_views/template/pfp.php
index 9a5a336..ebb4b5f 100644
--- a/src/web/_views/template/pfp.php
+++ b/src/web/_views/template/pfp.php
@@ -2,7 +2,16 @@
<?php /* vi: syntax=php */ ?>
<?php
$class = isset($class) ? $class : '';
+ $link = isset($link) ? $link : TRUE;
?>
+<?php if($link): ?>
<a class="image-loading pfp <?=$class?>" href="/profile?id=<?=$user['id']?>">
+<?php else: ?>
+<div class="image-loading pfp <?=$class?>">
+<?php endif; ?>
<img src="/api/rpc/profile_avatar?user_id=<?=$user['id']?>"/>
+<?php if ($link): ?>
</a>
+<?php else: ?>
+</div>
+<?php endif; ?>