NOUVELLE VERSION !!! Des nouvelles classes de partout, et des supers procédures SQL.

This commit is contained in:
Mysaa
2021-06-06 13:03:33 +02:00
parent e59898b0bb
commit 3488323439
59 changed files with 2906 additions and 1403 deletions
+3 -3
View File
@@ -14,10 +14,10 @@
<?php foreach(Article::getNewest(10) as $article){ ?>
<article>
<!-- TODO put class on article node -->
<h2 class="articleTitle"><?php echo $article->getTitle(); ?></h2>
<?php if($article->getPicPath() != ''){?><a class="articlePic" href="<?php echo $article->getPicPath(); ?>"><img src="<?php echo $article->getPicPath(); ?>" width="128" /></a><?php }?>
<h2 class="articleTitle"><?php echo $article['title']; ?></h2>
<?php if($article['picPath'] != ''){?><a class="articlePic" href="<?php echo $article['picPath']; ?>"><img src="<?php echo $article['picPath'] ?>" width="128" /></a><?php }?>
<div class="articleText"><?php echo ($article->getShort() == '')?$article->getText():$article->getShort(); ?></div>
<div class="articleText"><?php echo ($article['short'] == '')?$article['text']:$article['short']; ?></div>
</article>
<?php } ?>