|
|
|
@ -19,23 +19,17 @@ if (!empty($citationDuJour)) {
|
|
|
|
|
'movie' => $citationDuJour['title'],
|
|
|
|
|
'character' => $citationDuJour['caracter'],
|
|
|
|
|
'year' => $citationDuJour['dates'],
|
|
|
|
|
'imagePath' => $citationDuJour['imgpath']
|
|
|
|
|
'imagePath' => $citationDuJour['imgpath'],
|
|
|
|
|
'id' => $citationDuJour['id_quote'],
|
|
|
|
|
]);
|
|
|
|
|
} else {
|
|
|
|
|
echo "<p class='error'>Aucune citation du jour n'a été trouvée.</p>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Affichage des suggestions de citations
|
|
|
|
|
echo "<h2>Suggestions</h2>";
|
|
|
|
|
echo "<div class='suggestions-container'>";
|
|
|
|
|
foreach ($suggestions as $suggestion) {
|
|
|
|
|
echo $twig->render('suggestion.html.twig', [
|
|
|
|
|
'quote' => $suggestion['content'],
|
|
|
|
|
'movie' => $suggestion['title'],
|
|
|
|
|
'character' => $suggestion['caracter'],
|
|
|
|
|
'year' => $suggestion['dates'],
|
|
|
|
|
'imagePath' => $suggestion['imgpath']
|
|
|
|
|
|
|
|
|
|
echo $twig->render('quote.html.twig', [
|
|
|
|
|
'quotes' => $suggestions,
|
|
|
|
|
'titre' => "Suggestions"
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
echo "</div>";
|
|
|
|
|
?>
|