css playlist bientot fini

This commit is contained in:
2024-06-12 14:57:59 +02:00
parent ecc49c8c7e
commit 43921099be
8 changed files with 22 additions and 33 deletions

View File

@@ -2,13 +2,13 @@
<section class="list">
<?php
$i = 0;
foreach($songs as $song){
/*foreach($songs as $song){
echo "<div><article>";
echo "<header class='short-text'>";
$i = $i+1;
$minutes = floor($song->duration/60);
$secondes = $song->duration %60;
echo "{$i} - {$song->name} : {$minutes} min {$secondes} sec";
echo "{$i} - {$song->name} : {$minutes} min {$secondes} sec"; */
foreach($songPlaylists as $songPlaylist){
echo "<div><article>";
echo "<header class='short-text'>";
@@ -20,7 +20,7 @@ foreach($songPlaylists as $songPlaylist){
echo "</header>";
echo "</article></div>";
}
}
?>
</section>