NOUVELLE VERSION !!! Des nouvelles classes de partout, et des supers procédures SQL.
This commit is contained in:
@@ -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 } ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user