apprenez l'HTML !

This commit is contained in:
Florian Bouillon 2019-02-25 11:05:17 +01:00
parent 4065deb683
commit 864f71074a
3 changed files with 6 additions and 22 deletions

View File

@ -12,7 +12,7 @@
<div class="bloc_principal">
<div class="cover-black">
<div class="bloc_principal_titre">
<h1>L'actualité de nos campus...</h1>
<h1>L'actualité de nos campus...</h1>
</div>
<div class="test2">
<h2 id="titre-home">Ceci est un magnifique titre</h2>
@ -30,7 +30,6 @@
</div>
</div>
</div>
</div>
<h3 id="titre-between">Articles récents</h3>
<div class="row articles">
<tag type="loop" for="posts" limit="6">
@ -49,14 +48,15 @@
</div>
<div class="text">
<loop column="content" />
</p>
</p>
</div>
</div>
</div>
</tag>
</div>
</main>
<footer>
<!-- <tag type="includes" file="footer" /> -->
<tag type="includes" file="footer" />
</footer>
</body>

View File

@ -27,7 +27,7 @@ $search = function () {
$router->addRoute("/^\/search\/$/", $search); // route "/search/*"
$post = function() {
$edit = function() {
$_POST = array_merge($_POST, $_GET); //debug uniquement
var_dump($_POST);
/*
@ -78,4 +78,4 @@ $post = function() {
$prepared->execute();
};
$router->addRoute("/^\/post\/" . $postCharacters . "+\/edit\/*$/", $post);
$router->addRoute("/^\/post\/" . $postCharacters . "+\/edit\/*$/", $edit);

View File

@ -273,34 +273,18 @@ function loadTags($ctnt) {
$head->item(0)->appendChild($t);
}
$test = array();
$list = $dom->getElementsByTagName("tag");
//charge et supprimme les tags
while($lst = $list->item(0)) {
$tgs = ucfirst($lst->getAttribute("type"));
array_push($test, $tgs);
$tg = new $tgs($dom, $lst, false);
$tg->render();
// var_dump("--------- 1 ---------");
// for ($i=0; $i < $list->count(); $i++) {
// var_dump($list->item($i)->getAttribute("type"));
// }
// echo (htmlspecialchars($dom->saveHTML()));
// var_dump($list[0]->parentNode->nodeName);
$lst->parentNode->removeChild($lst);
// var_dump("--------- 2 ---------");
// for ($i=0; $i < $list->count(); $i++) {
// var_dump($list->item($i)->getAttribute("type"));
// }
// echo (htmlspecialchars($dom->saveHTML()));
$list = $dom->getElementsByTagName("tag");
}