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-10-30 20:29:46 +00:00
< section id = "wiki_page" < ? = $ wikiPage- > is_archive=="t"||$wikiPage->is_public=="f"?'class="archive"':''?>>
2018-09-03 20:02:13 +00:00
< 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" >
2018-10-22 21:09:20 +00:00
<? if(isset($wikiHistory)) { ?>
2017-12-20 20:49:11 +00:00
< select id = "wikihistory" >
< ? $i = 0;
2018-10-22 21:09:20 +00:00
foreach ($wikiHistory->objs as $row) { ?>
< option < ? = $ row- > id==$wikiPage->id?'selected':''?> value="<?=$i?> "><?=$row->is_archive=="f"?'• ':''?> <? echo strftime('%d/%m/%Y %H:%M:%S',strtotime($row->update_date)) ?> < / option >
2017-12-20 20:49:11 +00:00
< ? $i++;
} ?>
< / select >
< ? }
2018-10-22 21:09:20 +00:00
if ($user->rankIsHigher('moderator') & & isset($wikiHistory)) { ?>
2017-12-20 20:49:11 +00:00
—
< ? }
2018-10-18 18:33:15 +00:00
if ($user->rankIsHigher('moderator')) { ?>
2018-10-30 20:29:46 +00:00
< a href = "<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->permalink?>/edit" > < i class = "fas fa-pencil-alt" > < / i > Éditer la page< / a > —
<? if ($wikiPage->is_public=="t") { ?>
2018-10-22 21:09:20 +00:00
< a href = "<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->permalink?>/delete" > < i class = "fas fa-trash" > < / i > Effacer la page< / a >
2018-10-30 20:29:46 +00:00
<? } else { ?>
< a href = "<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->permalink?>/restore" > < i class = "fas fa-eye" > < / i > Restaurer la page< / a >
<? }?>
2017-12-20 20:49:11 +00:00
<? } ?>
< / span >
<? } ?>
< div id = "wikiContent" >
<?=$wikiPage->content_html?>
< / div >
2018-10-22 21:09:20 +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() {
2018-10-22 21:09:20 +00:00
window.location.href = "<?=$config['rel_root_folder']?> wiki/<?=$wikiPage->permalink?> /"+$( this ).val();
2017-12-20 20:49:11 +00:00
});
< / script >
<? } ?>
<? include('blocks/d.footer.html'); ?>
< / body >
< / html >