28 lines
863 B
PHP
28 lines
863 B
PHP
<?php session_start(); ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<?php include 'includes/meta.php'; ?>
|
|
</head>
|
|
<body>
|
|
<?php include 'includes/header.php'; ?>
|
|
|
|
<h1>Bernard</h1>
|
|
|
|
<p><font size=4>J'ai le plaisir de vous souhaiter la bienvenue au sein de notre site: bernard.890m.com</font></p>
|
|
|
|
<?php foreach(Article::getNewest(10) as $article){ ?>
|
|
<article>
|
|
<!-- TODO put class on article node -->
|
|
<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['short'] == '')?$article['text']:$article['short']; ?></div>
|
|
</article>
|
|
<?php } ?>
|
|
|
|
|
|
<?php include 'includes/footer.php'; ?>
|
|
</body>
|
|
</html>
|