This commit is contained in:
stiti
2024-06-06 12:07:45 +02:00
parent fc16b575ed
commit 9693d4be20
4 changed files with 50 additions and 27 deletions

View File

@@ -1,13 +1,13 @@
<div class="artist-details">
<h1>Détails de l'artiste <?php echo $artiste->name; ?></h1>
<p><strong>Genre le plus utilisé :</strong> <?php echo $mostUsedGenre->genreName; ?></p>
<p><strong>Genre le plus utilisé par l'artiste :</strong> <?php echo $mostUsedGenre->genreName; ?></p>
<h2>Albums de <?php echo $artiste->name; ?></h2>
<ul class="albums-list">
<?php foreach($albums as $album): ?>
<li>
<div class="album-details">
<h3><?php echo $album->name; ?></h3>
<h2><a href="<?php echo site_url('albums/view/' . $album->id); ?>"><?php echo $album->name; ?></a></h2>
<p><strong>Année :</strong> <?php echo $album->year; ?></p>
<p><strong>Genre :</strong> <?php echo $album->genreName; ?></p>
<?php if (!empty($album->jpeg)): ?>
@@ -15,7 +15,6 @@
<?php else: ?>
<span class="no-cover">Aucune couverture disponible</span>
<?php endif; ?>
<!-- Liste des musiques de l'album -->
<ul class="songs-list">
<?php foreach($album->tracks as $track): ?>
<li>
@@ -24,7 +23,6 @@
<span><strong><?php echo gmdate("i:s", $track->duration); ?></strong></span>
</li>
<?php endforeach; ?>
</ul>
</div>
</li>