pull/17/head
kevin.modejar 6 months ago
parent b815514ff1
commit 45ecc5b519

@ -1 +0,0 @@
vendor/

@ -1,15 +1,31 @@
<!DOCTYPE html> <html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../styles/styleQuote.css" media="screen">
<title>Wiki Fantasy : Citations</title>
<link rel="icon" href="../images/Logo.ico">
<link href="https://fonts.googleapis.com/css2?family=Lemon&display=swap" rel="stylesheet">
</head>
<body> <body>
<div class="Quote_container">
<img class="image_carac" src="{{ srcImg }}" alt="{{ nameCarac }}">
<h1 class="quote_content">
<strong>
{{ quoteContent }}
</strong>
</h1>
<ul>
<li>
{{ sourceName }}
</li>
<li>
{{ nameCarac }}
</li>
<li>
{{ dateSortie }}
</li>
</ul>
<div class="like">
<p>
{{ nbLike }}
</p>
</div>
</div>
<div class="Comment_Container">
</div>
</body> </body>
</html> </html>

@ -0,0 +1,16 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
$loader = new Twig_Loader_Filesystem('templates');
$twig = new Twig_Environment($loader, array( 'cache' => false ));
$value = 'Salva';
echo $twig->render('quote.html', array(
'srcImg' => "../default.jpg",
'nameCarac' => "default",
'quoteContent' => "je test la page",
'sourceName' => "une source",
'dateSortie' => "1999",
'nbLike' => "0"
));
?>
Loading…
Cancel
Save