mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-05-29 23:03:12 +00:00
Show crown next to Admins' names
This commit is contained in:
parent
dec15d7b63
commit
248154f37d
2 changed files with 6 additions and 1 deletions
1
assets/icons/crown-simple.svg
Normal file
1
assets/icons/crown-simple.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="192" height="192" fill="#e8e3e3" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><path d="M45.1,196a8.1,8.1,0,0,0,10,5.9,273,273,0,0,1,145.7,0,8.1,8.1,0,0,0,10-5.9L236.3,87.7a8,8,0,0,0-11-9.2L174.7,101a8.1,8.1,0,0,1-10.3-3.4L135,44.6a8,8,0,0,0-14,0l-29.4,53A8.1,8.1,0,0,1,81.3,101L30.7,78.5a8,8,0,0,0-11,9.2Z" fill="none" stroke="#e8e3e3" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>
|
After Width: | Height: | Size: 488 B |
|
@ -173,7 +173,11 @@
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
// User
|
// User
|
||||||
echo "<p>Author: ".$image_author."</p>";
|
if ($user_info->is_admin($image['author'])) {
|
||||||
|
echo "<p>Author: ".$image_author."<img class='svg' style='margin: 0 0 0.1rem 0.2rem;' src='assets/icons/crown-simple.svg'></p>";
|
||||||
|
} else {
|
||||||
|
echo "<p>Author: ".$image_author."</p>";
|
||||||
|
}
|
||||||
|
|
||||||
// Image ID
|
// Image ID
|
||||||
echo "<p>ID: ".$image['id']."</p>";
|
echo "<p>ID: ".$image['id']."</p>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue