38 lines
1.7 KiB
PHP
38 lines
1.7 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<section class="section">
|
|
<div class="container">
|
|
<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>
|
|
<?php endforeach; ?>
|
|
<?php else: ?>
|
|
<p>No albums found for this artist.</p>
|
|
<?php endif; ?>
|
|
</div>
|
|
</section>
|
|
</body>
|
|
</html>
|