54 lines
1.9 KiB
PHP
54 lines
1.9 KiB
PHP
<div class="content">
|
|
<div class="profile-box platform">
|
|
<img class="left profile-picture" src="<?php echo $user["profilepicture"] ?>">
|
|
<div class="profile-button">
|
|
<p><img src="img/add-friend.png"> Als vriend toevoegen</p>
|
|
</div>
|
|
<h1 class="profile-username"><?php echo $user["username"] ?></h1>
|
|
<p><?php echo $user["bio"] ?></p>
|
|
</div>
|
|
|
|
<div class="item-box left platform">
|
|
<h2>Vrienden</h2>
|
|
<p>
|
|
<?php
|
|
while($friend = $friends->fetch()) {
|
|
echo "<a href='#' data-title='" . $friend["username"] . "'><img class='profile-picture' src='" . $friend["profilepicture"] . "' alt='" . $friend["username"] . "'s profielfoto></a>";
|
|
}
|
|
|
|
if($friends->rowCount() === 0) {
|
|
echo "<p>Deze gebruiker heeft nog geen vrienden gemaakt.</p>";
|
|
}
|
|
?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="item-box right platform">
|
|
<h2>Groepen</h2>
|
|
<p>
|
|
<?php
|
|
while($group = $groups->fetch()) {
|
|
echo "<a href='#' data-title='${group["name"]}'><img class='group-picture' src='${group["picture"]}' alt='${group["name"]}s logo'></a>";
|
|
}
|
|
|
|
if($groups->rowCount() === 0) {
|
|
echo "<p>Deze gebruiker is nog geen lid van een groep.</p>";
|
|
}
|
|
?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="posts">
|
|
<?php
|
|
while($post = $posts->fetch()) {
|
|
$nicetime = nicetime($post["creationdate"]);
|
|
echo "
|
|
<div class='post platform'>
|
|
<h2>${post["title"]}</h2>
|
|
<p>${post["content"]}</p>
|
|
<p class=\"subscript\">${nicetime} geplaatst.</p>
|
|
</div>
|
|
";
|
|
}
|
|
?>
|
|
</div>
|