Mise à jour de 'vue/favorits.php'

pull/21/head
Maxime ROCHER 5 months ago
parent acd2ca264c
commit 4bdc1b5058

@ -9,20 +9,8 @@ echo $twig->render('head.html.twig', [
echo $twig->render('bandeau.html.twig');
if (!empty($favorites)) {
echo "<h2>Vos favoris</h2>";
echo "<div class='suggestions-container'>";
foreach ($favorites as $favorite) {
echo $twig->render('suggestion.html.twig', [
'quote' => $favorite['content'],
'movie' => $favorite['title'],
'character' => $favorite['caracter'],
'year' => $favorite['dates'],
'imagePath' => $favorite['imgpath']
echo $twig->render('quote.html.twig', [
'quotes' => $favorites,
'titre' => "Favoris"
]);
}
echo "</div>";
} else {
echo "<p>Vous n'avez pas encore de favorits</p>";
}
?>

Loading…
Cancel
Save