/
article.php
46 lines (29 loc) · 997 Bytes
/
article.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
include "includes/header.php";
$TheArticle=getTheArticle($_GET['article']);
?>
<div class="container">
<section>
<div class="row">
<div class="col-xs-12 col-md-12">
<h1><?php echo getArticleById($_GET['article']) ?></h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-12">
<article>
<div style="background:url(<?php echo $TheArticle['chemin'] ?>) no-repeat center center;background-size:cover;" class="inlineimg"></div>
<h1><?php echo $TheArticle['Titre'] ?></h1>
<h2><?php echo $TheArticle['date'] ?></h2>
<p><?php echo $TheArticle['text'] ?></p>
<?php if(isset($TheArticle['chemin'])){ ?>
<p><a href='<?php echo $TheArticle['chemin'] ?>'>Lien du média</a></p>
<?php } ?>
</article>
</div>
</div>
</section>
</div>
<?php
include "includes/footer.php";
?>