modif certain problème quote

pull/21/head
kevin.modejar 5 months ago
parent 5f742119aa
commit 0bef52622b

@ -37,7 +37,7 @@ Class FrontControler{
'' => '[^/\.]++' '' => '[^/\.]++'
*/ */
$router->map('GET|POST', '/quote/[i:idQuote]?', 'VisitorControler','quote'); $router->map('GET|POST', '/quote/[i:idQuote]', 'VisitorControler','quote');
$router->map('GET|POST', '/login', 'VisitorControler','login'); $router->map('GET|POST', '/login', 'VisitorControler','login');
$router->map('GET|POST', '/signin', 'VisitorControler','signin'); $router->map('GET|POST', '/signin', 'VisitorControler','signin');

@ -20,9 +20,8 @@ Class VisitorControler{
public function quote(array $arg){ public function quote(array $arg){
global $vues; global $vues;
$id=$arg['idQuote'] ?? 1; $id=$arg['idQuote'];
$q = $this->qMod->searchId($id); $q = $this->qMod->searchId($id);
//echo "{$id}";
require_once $vues['quote']; require_once $vues['quote'];
} }

@ -4,6 +4,7 @@
echo $twig->render('head.html.twig', array( echo $twig->render('head.html.twig', array(
'title' => "Accueil", 'title' => "Accueil",
'style' => "public/styles/styleAccueil.css", 'style' => "public/styles/styleAccueil.css",
'scripts' => array("public/script/theme-toggle.js")
)); ));
echo $twig->render('bandeau.html.twig'); echo $twig->render('bandeau.html.twig');

@ -5,6 +5,7 @@
echo $twig->render('head.html.twig', array( echo $twig->render('head.html.twig', array(
'title' => "Login", 'title' => "Login",
'style' => "public/styles/styleLogin.css", 'style' => "public/styles/styleLogin.css",
'scripts' => array("public/script/theme-toggle.js")
)); ));
echo $twig->render('bandeau.html.twig'); echo $twig->render('bandeau.html.twig');

@ -5,6 +5,7 @@
echo $twig->render('head.html.twig', array( echo $twig->render('head.html.twig', array(
'title' => "Quote", 'title' => "Quote",
'style' => "../public/styles/styleQuote.css", 'style' => "../public/styles/styleQuote.css",
'scripts' => array("../public/script/theme-toggle.js")
)); ));
echo $twig->render('bandeau.html.twig'); echo $twig->render('bandeau.html.twig');
echo $twig->render('quote.html', array( echo $twig->render('quote.html', array(
@ -14,7 +15,6 @@
'sourceName' => $q->getTitleSrc(), 'sourceName' => $q->getTitleSrc(),
'dateSortie' => $q->getDateSrc(), 'dateSortie' => $q->getDateSrc(),
'nbLike' => $q->getLike(), 'nbLike' => $q->getLike(),
'timeCode' =>"1h45",
)); ));
?> ?>

@ -5,6 +5,7 @@
echo $twig->render('head.html.twig', array( echo $twig->render('head.html.twig', array(
'title' => "Sign in", 'title' => "Sign in",
'style' => "public/styles/styleSignin.css", 'style' => "public/styles/styleSignin.css",
'scripts' => array("public/script/theme-toggle.js")
)); ));
echo $twig->render('bandeau.html.twig'); echo $twig->render('bandeau.html.twig');

@ -6,6 +6,10 @@
<title>{{ title }}</title> <title>{{ title }}</title>
<link rel="stylesheet" href="{{ style }}"> <link rel="stylesheet" href="{{ style }}">
<link id="favicon" rel="icon" href="public/images/iconeSombre.ico" /> <link id="favicon" rel="icon" href="public/images/iconeSombre.ico" />
<script src="public/script/theme-toggle.js"></script> {% if scripts|length > 0 %}
{% for script in scripts %}
<script src="{{ script }}"></script>
{% endfor %}
{% endif %}
</head> </head>

@ -5,7 +5,7 @@
<div class="card-content"> <div class="card-content">
<h2 class="quote">“{{quoteContent}}”</h2> <h2 class="quote">“{{quoteContent}}”</h2>
<ul class="infoQuote"> <ul class="infoQuote">
<li>- {{sourceName}} ({{timeCode}})</li> <li>- {{sourceName}}</li>
<li>- {{nameCarac}}</li> <li>- {{nameCarac}}</li>
<li>- {{dateSortie}}</li> <li>- {{dateSortie}}</li>
</ul> </ul>

Loading…
Cancel
Save