2017-12-20 20:49:11 +00:00
<!DOCTYPE html>
< html lang = "fr" >
<? include('blocks/d.head.html'); ?>
< body >
<? include('blocks/d.nav.html'); ?>
2018-09-03 20:02:13 +00:00
< section id = "wiki_page" < ? = ! $ wikiPage- > is_archive()?'class="archive"':''?>>
< h1 > <?=$wikiPage->name?> .< / h1 >
2018-10-18 18:33:15 +00:00
<? if($user->rankIsHigher('premium')) { ?>
2017-12-20 20:49:11 +00:00
< span class = "subtitle" >
<? if(isset($wikiHistory_list)) { ?>
< select id = "wikihistory" >
< ? $i = 0;
foreach ($wikiHistory_list as $row) { ?>
2018-09-03 20:02:13 +00:00
< option < ? = $ row- > id==$wikiPage->id?'selected':''?> value="<?=$i?> "><?=$row->is_archive=="f"?'• ':''?> <? echo strftime('%d/%m/%Y %H:%M:%S',strtotime($row->lastedit)) ?> < / option >
2017-12-20 20:49:11 +00:00
< ? $i++;
} ?>
< / select >
< ? }
2018-10-18 18:33:15 +00:00
if ($user->rankIsHigher('moderator') & & isset($wikiHistory_list)) { ?>
2017-12-20 20:49:11 +00:00
—
< ? }
2018-10-18 18:33:15 +00:00
if ($user->rankIsHigher('moderator')) { ?>
2017-12-20 20:49:11 +00:00
< a href = "<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->url?>/edit" > < i class = "fa fa-pencil" > < / i > Éditer la page< / a >
2018-09-03 20:02:13 +00:00
<? if (!$wikiPage->is_archive()) { ?>
2017-12-20 20:49:11 +00:00
—
< a href = "<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->url?>/delete" > < i class = "fa fa-trash" > < / i > Effacer la page< / a >
<? } ?>
<? } ?>
< / span >
<? } ?>
< div id = "wikiContent" >
<?=$wikiPage->content_html?>
< / div >
2018-09-03 20:02:13 +00:00
< p id = "wikiTimestamp" > Page mise à jour le <? echo strftime('%e %B %G, %kh%Mm%Ss',strtotime($wikiPage->update_date())) ?> < small > < abbr title = "Temps Universel Coordonné" > UTC< / abbr > < / small > < / p >
2017-12-20 20:49:11 +00:00
< div style = "clear: both;" > < / div >
< / section >
2018-10-18 18:33:15 +00:00
<? if($user->rankIsHigher('premium')) { ?>
2017-12-20 20:49:11 +00:00
< script type = "text/javascript" >
$( "#wikihistory" ).change(function() {
window.location.href = "<?=$config['rel_root_folder']?> wiki/<?=$wikiPage->url?> /"+$( this ).val();
});
< / script >
<? } ?>
<? include('blocks/d.footer.html'); ?>
< / body >
< / html >