'; } else { $content .= ''; } $content .= ''; if ($link) { $content .= ''; } else { $content .= ''; } return $content; } function pfp( $user, $embedLink = TRUE, ): string { $link = $embedLink ? '/profile?id=' . $user['id'] : NULL; return image('/api/rpc/profile_avatar?user_id=' . $user['id'], 'pfp', link: $link); }