Merge branch 'reorganisation' of https://codefirst.iut.uca.fr/git/WikiFantasy/WF-Website into reorganisation
commit
2fead704d0
@ -1,15 +0,0 @@
|
||||
<!DOCTYPE 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>
|
||||
</html>
|
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
// appele avec index.php ne pas metre si controleur fonctionnel
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
||||
$twig = new \Twig\Environment($loader, [
|
||||
'cache' => false,
|
||||
]);
|
||||
//
|
||||
|
||||
echo $twig->render('quote.html', array(
|
||||
'srcImg' => "../default.jpg",
|
||||
'nameCarac' => "default",
|
||||
'quoteContent' => "je test la page",
|
||||
'sourceName' => "une source",
|
||||
'dateSortie' => "1999",
|
||||
'nbLike' => "0",
|
||||
'comment'=> array(
|
||||
array(
|
||||
'user'=>'toto',
|
||||
'content'=>'12345674fkjgvhgtfoidshfziutgfos'
|
||||
),
|
||||
array(
|
||||
'user'=> 'tata',
|
||||
'content'=>'azertyuiopqsdfghjklmwxcvbn'
|
||||
)
|
||||
)));
|
||||
?>
|
@ -0,0 +1,36 @@
|
||||
<html>
|
||||
<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">
|
||||
{% if comment|length > 0%} <div>
|
||||
{% for com in comment %}
|
||||
<p class="userCom">{{ com.user }}</p>
|
||||
<p class="com">{{ com.content }}</p>
|
||||
{% endfor %} </div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue