-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticle.php
49 lines (36 loc) · 2.65 KB
/
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
47
48
49
<?php include(dirname(__FILE__).'/header.php'); ?>
<main class="w3-row w3-theme" role="main">
<section class="w3-col l8 s12 ">
<article class="w3-card-4 w3-margin w3-theme-light w3-padding" role="article" id="post-<?php echo $plxShow->artId(); ?>">
<header>
<h1 class="w3-margin-0 w3-text-theme-dark">
<b><?php $plxShow->artTitle(); ?></b>
</h1>
<p class="article-info-header w3-margin-0 w3-margin-bottom">
<span class="article-author w3-margin-right"><i class="fa fa-user" aria-hidden="true" ></i> <?php $plxShow->artAuthor() ?> </span>
<span class="article date w3-margin-right w3-tooltip"><i class="fa fa-calendar"></i> <time datetime="<?php $plxShow->artDate('#num_year(4)-#num_month-#num_day'); ?>"><?php $plxShow->artDate('#num_day #month #num_year(4)'); ?></time></span>
<span class="article-comments"><i class="fa fa-comment" aria-hidden="true"></i> <a href="#comments"><?php $plxShow->artNbCom(); ?></a></span>
</p>
</header>
<section>
<?php $plxShow->artThumbnail(); ?>
<?php $plxShow->artContent(); ?>
</section>
<footer>
<p class="article-date-footer">
<?php if($plxMotor->plxRecord_arts->f('date_update')!=$plxMotor->plxRecord_arts->f('date_creation'))
{ echo '<span class="article-date-publication-footer w3-tooltip"><i class="fa fa-calendar"></i> <span class="w3-text ">Publié le</span> <time datetime="'; $plxShow->artDate('#num_year(4)-#num_month-#num_day') ; echo '">' ; $plxShow->artDate('#num_day #month #num_year(4)') ; echo '</time></span>';
echo '<span class="article-date-update-footer w3-tooltip"><i class="fa fa-history fa-flip-horizontal w3-margin-left" aria-hidden="true"></i> <span class="w3-text ">Mis à jour le </span> '; $plxShow->artUpdateDate('#num_day #month #num_year(4)') ; echo'</span>'; } ?>
</p>
<p class="article-info-footer w3-margin-0 w3-margin-top">
<span class="article-category w3-margin-right"><i class="fa fa-folder-open" aria-hidden="true" ></i> <?php $plxShow->artCat() ?></span>
<span class="article-tag w3-margin-right"><i class="fa fa-tags" aria-hidden="true" ></i> <?php $plxShow->artTags() ?></span>
</p >
</footer>
</article>
<?php $plxShow->artAuthorInfos('<div class="article w3-card-4 w3-margin w3-theme-light w3-padding" ><i class="fa fa-user" aria-hidden="true"></i> #art_author <div class="author-infos">#art_authorinfos</div> </div>'); ?>
<?php include(dirname(__FILE__).'/commentaires.php'); ?>
</section>
<?php include(dirname(__FILE__).'/sidebar.php'); ?>
</main>
<?php include(dirname(__FILE__).'/footer.php'); ?>