Update file user.php

This commit is contained in:
Jan BELLON 2024-03-11 21:36:24 +00:00
parent b3ef751c8b
commit 308a18aa35

View File

@ -25,7 +25,7 @@ if($resultat) {
$user_display_name = "User not found";
$user_role = 0;
$user_pp = "https://abs.twimg.com/sticky/default_profile_images/default_profile_400x400.png";
$user_banner = "./src/img/empty.jpg";
$user_banner = "";
$user_bio = "";
}
@ -69,7 +69,13 @@ if($resultat) {
}
.user-banner {
background-image: url('<?=$user_banner?>');
<?php
if (empty($user_banner)) {
echo "background-color: black";
} else {
echo "background-image: url('" . $user_banner) . "');";
}
?>
}
</style>