2024-06-04 22:55:02 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<body>
|
2024-06-05 08:37:40 +02:00
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
2024-06-16 17:39:26 +02:00
|
|
|
<h1 class="title"><?= $artist->artistName ?></h1>
|
|
|
|
<h2 class="title is-4">Albums</h2>
|
|
|
|
<?php if ($albums): ?>
|
|
|
|
<?php foreach ($albums as $album): ?>
|
|
|
|
<div class="box">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-one-third">
|
|
|
|
<figure class="image">
|
|
|
|
<img src="data:image/jpeg;base64,<?= base64_encode($album->jpeg) ?>" alt="<?= $album->albumName ?> Cover">
|
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<h3 class="title is-5"><?= $album->albumName ?></h3>
|
|
|
|
<p><strong>Genre:</strong> <?= $album->genreName ?></p>
|
|
|
|
<p><strong>Year:</strong> <?= $album->year ?></p>
|
|
|
|
<h4 class="title is-6">Songs</h4>
|
|
|
|
<ul>
|
|
|
|
<?php foreach ($album->songs as $song): ?>
|
|
|
|
<li><?= anchor("music/view/{$song->trackId}", $song->songName) ?></li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-06-05 08:37:40 +02:00
|
|
|
<?php endforeach; ?>
|
2024-06-16 17:39:26 +02:00
|
|
|
<?php else: ?>
|
|
|
|
<p>No albums found for this artist.</p>
|
|
|
|
<?php endif; ?>
|
2024-06-05 08:37:40 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
2024-06-04 22:55:02 +02:00
|
|
|
</body>
|
|
|
|
</html>
|