ajout fichier css + php, fusion - correction beug php
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
<h5>Albums of the artist</h5>
|
||||
<section class="list">
|
||||
<?php
|
||||
|
||||
|
||||
foreach($AlbumsOfArtist as $AlbumOfArtists){
|
||||
echo "<div><article>";
|
||||
echo "<header class='short-text'>";
|
||||
echo anchor("albums/view/{$AlbumOfArtists->id}","{$AlbumOfArtists->name}");
|
||||
echo "<br>";
|
||||
echo "</header>";
|
||||
echo "</article></div>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
<h5>Liste des albums</h5>
|
||||
<section class="container">
|
||||
<?php
|
||||
foreach ($AlbumsOfArtists as $AlbumsOfArtist) {
|
||||
echo "<div class='album'><article>";
|
||||
echo "<header class='album-title'>";
|
||||
echo anchor("albums/view/{$AlbumsOfArtist->id}", "{$AlbumsOfArtist->name}");
|
||||
echo "<br>";
|
||||
echo "</header>";
|
||||
echo '<img src="data:image/jpeg;base64,' . base64_encode($AlbumsOfArtist->jpeg) . '" alt="' . $AlbumsOfArtist->name . '" />';
|
||||
echo "<footer class='short-text'>$AlbumsOfArtist->year</footer>";
|
||||
echo "</article></div>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
Reference in New Issue
Block a user