2024-05-30 10:05:37 +02:00
|
|
|
<h5>Liste des albums</h5>
|
|
|
|
<section class="container">
|
2024-05-21 15:05:29 +02:00
|
|
|
<?php
|
|
|
|
foreach($albums as $album){
|
2024-05-30 10:05:37 +02:00
|
|
|
echo "<div class='album'><article>";
|
|
|
|
echo "<header class='album-title'>";
|
|
|
|
echo anchor("Song/view/{$album->id}", "{$album->name}");
|
|
|
|
echo "</header>";
|
|
|
|
echo '<img src="data:image/jpeg;base64,' . base64_encode($album->jpeg) . '" alt="' . $album->name . '" />';
|
|
|
|
echo "<footer class='short-text'>{$album->year} - {$album->artistName}</footer>";
|
|
|
|
echo "</article></div>";
|
2024-05-21 15:05:29 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</section>
|