Recomment CSS and HTML templates

Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-24 18:35:07 +00:00
parent 8dd9897ca4
commit 3159b34e70
26 changed files with 380 additions and 273 deletions

View File

@@ -1,11 +1,12 @@
<!-- Template: blocks/d.footer.html -->
<!-- Footer -->
<footer>
<div class="flex">
<p class="flex-element"><a target="_blank" href="https://www.facebook.com/kabano09"><i class="fab fa-facebook-square"></i></a> Léo Serre &mdash; <script>document.write("06 " + "1" + "8 6" + "2 3" + "2 ");</script>&#48;&#53;</p>
<div id="footernav" class="flex-element">
<!-- Footer links -->
<a href="<?=$config['rel_root_folder']?>wiki/cgv">CGV</a> &mdash;
<a href="<?=$config['rel_root_folder']?>wiki/legal">Mentions Légales</a> &mdash;
<a href="<?=$config['rel_root_folder']?>contact">Contact</a>
</div>
</div>
</footer>
</footer>

View File

@@ -1,8 +1,9 @@
<!-- Template: blocks/d.head.html -->
<!-- Head: metadata and assets -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<link rel="shortcut icon" href="<?=$config['views_url']?>img/favicon.png">
<!-- Stylesheets -->
<?php if (isset($head['css'])) {
foreach(explode(";",$head['css']) as $css) { ?>
<link rel="stylesheet" href="<?=$config['views_url']?>css/<?=$css?>"/>
@@ -13,6 +14,7 @@
<?php } ?>
<link rel="stylesheet" href="<?=$config['views_url']?>third/fontawesome-free-5.4.1-web/css/all.min.css"/>
<!-- Scripts -->
<script type="text/javascript" src="<?=$config['views_url']?>third/jquery-3.3.1.min.js"></script>
<?php if (isset($head['third'])) {
foreach(explode(";",$head['third']) as $third) { ?>
@@ -26,6 +28,7 @@
<?php }
} ?>
<!-- Metadata -->
<?php if (isset($head['title'])) { ?>
<title><?=$head['title']?> &mdash; Kabano</title>
<?php }
@@ -44,4 +47,4 @@
else { ?>
<meta name="keywords" content="kabano, cabanes, refuges, bivouac, montagne, randonnée, métallerie, agricole">
<?php } ?>
</head>
</head>

View File

@@ -1,19 +1,20 @@
<!-- Template: blocks/d.nav.html -->
<!-- Header navigation -->
<header>
<div id="Hcontent">
<a href="<?=$config['rel_root_folder']?>" id="logo">
<img alt="Kabano logo" src="<?=$config['views_url'].'img/'?>header.svg">
</a>
<nav>
<!-- Main menu -->
<input type="checkbox" id="togglemenu"><label for="togglemenu" class="hamburger on-bar"><i class="icon fas fa-bars"></i></label>
<ul id="menu">
<li class="on-bar has-sub with-subtitle"><a class="on-bar" href="#">Restauration<br>
<span class="subtitle">de refuges pastoraux</span></a>
<ul>
<li><a href="<?=$config['rel_root_folder']?>wiki/restauration-de-refuges">Activités</a></li>
<li><a href="<?=$config['rel_root_folder']?>wiki/portfolio-restauration">Réalisations</a></li>
</ul>
</li>
<li><a href="<?=$config['rel_root_folder']?>wiki/restauration-de-refuges">Activités</a></li>
<li><a href="<?=$config['rel_root_folder']?>wiki/portfolio-restauration">Réalisations</a></li>
</ul>
</li>
<li class="on-bar with-subtitle"><a class="on-bar" href="<?=$config['rel_root_folder']?>wiki/metallerie">Métallerie<br>
<span class="subtitle">agricole</span></a></li>
<li class="on-bar has-sub with-subtitle">
@@ -24,20 +25,21 @@
<li><a href="<?=$config['rel_root_folder']?>community">Contribuer</a></li>
</ul>
</li>
<li class="on-bar has-sub menu-icon">
<?php if ($user->id == 0) { ?>
<a class="on-bar" href="#"><i class="icon fas fa-user"></i></a>
<?php } elseif ($user->is_avatar_present == 't') { ?>
<a class="on-bar" href="#"><img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$user->id?>_s.jpg"></a>
<?php } else { ?>
<li class="on-bar has-sub menu-icon">
<?php if ($user->id == 0) { ?>
<a class="on-bar" href="#"><i class="icon fas fa-user"></i></a>
<?php } elseif ($user->is_avatar_present == 't') { ?>
<a class="on-bar" href="#"><img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$user->id?>_s.jpg"></a>
<?php } else { ?>
<a class="on-bar" href="#"><i class="icon fas fa-user-secret"></i></a>
<?php } ?>
<ul>
<?php if($user->rank == 'visitor') { ?>
<li id="connectform">
<form action="<?=$config['rel_root_folder']?>user/login" method="post">
<input type="text" name="login" placeholder="Nom d'utilisateur">
<input type="password" name="password" placeholder="Mot de passe">
<?php } ?>
<ul>
<!-- Account actions -->
<?php if($user->rank == 'visitor') { ?>
<li id="connectform">
<form action="<?=$config['rel_root_folder']?>user/login" method="post">
<input type="text" name="login" placeholder="Nom d'utilisateur">
<input type="password" name="password" placeholder="Mot de passe">
<input type="submit" name="submit" value="Se connecter">
</form>
</li>
@@ -49,19 +51,18 @@
<li><a href="<?=$config['rel_root_folder']?>admin">Administration</a></li>
<?php } ?>
<li><a href="<?=$config['rel_root_folder']?>user/logout">Se déconnecter</a></li>
<?php } ?>
</ul>
</li>
<li class="on-bar has-sub menu-icon"><a class="on-bar" href="#"><i class="icon fas fa-question"></i></a>
<ul>
<!--<li><a href="<?=$config['rel_root_folder']?>wiki/help">Aide</a></li>-->
<?php } ?>
</ul>
</li>
<li class="on-bar has-sub menu-icon"><a class="on-bar" href="#"><i class="icon fas fa-question"></i></a>
<ul>
<!-- Help and info -->
<li><a href="<?=$config['rel_root_folder']?>blog">Blog</a></li>
<li><a href="<?=$config['rel_root_folder']?>contact">Contact</a></li>
<!--<li><a href="<?=$config['rel_root_folder']?>wiki/api">API Développeurs</a></li>-->
<li><a href="<?=$config['rel_root_folder']?>wiki/about">À propos</a></li>
</ul>
</li>
</ul>
</ul>
</li>
</ul>
</nav>
</div>
</header>
</header>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.admin.backup.html -->
<!-- Page: admin backups -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -11,6 +11,7 @@
<section>
<h1><?=$head['title']?></h1>
<br>
<!-- Command output -->
<pre><?php
foreach($output as $line) {
echo $line."<br>";
@@ -18,6 +19,7 @@
?></pre>
<br>
<!-- Download links -->
<?php $i=0;
foreach($backup_file as $file) {
if (file_exists($file ?? '')) { ?>
@@ -29,6 +31,7 @@
}?>
<br>
<!-- Archive list -->
<h4>Archives des anciennes sauvegardes</h4>
<ul style="padding: 1em 0 1em 40px;">
<?php foreach($backup_files as $file) { ?>
@@ -40,4 +43,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.admin.git-pull.html -->
<!-- Page: admin git pull -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -11,6 +11,7 @@
<section>
<h1><?=$head['title']?></h1>
<br>
<!-- Command output -->
<pre><?php
foreach($output as $line) {
echo $line."<br>";
@@ -21,4 +22,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.admin.html -->
<!-- Page: admin dashboard -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,14 +8,17 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Admin actions -->
<section>
<h1>Administration</h1>
<br>
<?php if($user->rankIsHigher("administrator")) { ?>
<!-- Administrator tools -->
<a href="<?=$config['rel_root_folder']?>admin/git-pull" class="button"><i class="fas fa-sync-alt"></i> Mettre à jour</a> <small>Met à jour le logiciel depuis le dépôt GIT.</small><br><br>
<a href="<?=$config['rel_root_folder']?>admin/sql-backup" class="button"><i class="fas fa-file-export"></i> Sauvegarde SQL</a><a href="<?=$config['rel_root_folder']?>admin/files-backup" class="button"><i class="fas fa-file-export"></i> Archive des médias</a><small>Génère un dump SQL et une archive de fichiers téléchargeable.</small><br><br>
<?php } ?>
<?php if($user->rankIsHigher("moderator")) { ?>
<!-- Moderator tools -->
<a href="<?=$config['rel_root_folder']?>admin/logs" class="button"><i class="fas fa-history"></i> Voir les logs</a> <small>Permet d'accéder aux 200 dernières lignes des logs bruts des actions sur la base de données.</small><br><br>
<a href="<?=$config['rel_root_folder']?>admin/wiki-files" class="button"><i class="fas fa-paperclip"></i> Fichiers attachés</a><small>Gérer les fichiers attachés pour le wiki : liste, ajout, suppression...</small><br><br>
<a href="<?=$config['rel_root_folder']?>admin/stats" class="button"><i class="fas fa-chart-line"></i> Statistiques</a><small>Analyser les logs et afficher les statistiques.</small><br><br>
@@ -25,4 +28,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.admin.logs.html -->
<!-- Page: admin logs -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,8 +8,10 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Logs viewer -->
<section>
<h1><?=$head['title']?></h1>
<!-- Log file selector -->
<span class="subtitle">
<select id="logfile">
<?php $i = 0;
@@ -23,6 +25,7 @@
</span>
<br>
<br>
<!-- Log content -->
<pre><?php
foreach($output as $line) {
echo $line."<br>";
@@ -30,6 +33,7 @@
?></pre>
</section>
<!-- Log file navigation -->
<script type="text/javascript">
$( "#logfile" ).change(function() {
window.location.href = "<?=$config['rel_root_folder']?>admin/logs/"+$( this ).val();
@@ -39,4 +43,4 @@ $( "#logfile" ).change(function() {
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.admin.stats.html -->
<!-- Page: admin statistics -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,13 +8,16 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Statistics summary -->
<section>
<h1><?=$head['title']?></h1>
<br>
<!-- Command output -->
<pre><?php
print_r($output);
?></pre>
<br>
<!-- Report link -->
<?php if (file_exists($report)) { ?>
<a href='<?=$config['rel_root_folder']?>tmp/report.html' target='_blank'><i class="fas fa-chart-line"></i> Voir le rapport</a>
<?php } else { ?>
@@ -25,4 +28,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.admin.wiki-files.html -->
<!-- Page: admin wiki files -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,14 +8,17 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Files table -->
<section id="wiki_files">
<h1><?=$head['title']?></h1>
<!-- Pagination summary -->
<p class="subtitle">Fichiers attachés <?=$first?> à <?=$last?> sur les <?=$filenb?> présents</p>
<br>
<br>
<!-- Upload form -->
<form action="<?=$config['rel_root_folder']?>admin/wiki-files/upload/" method="post" enctype="multipart/form-data" id="send_file">
<div>
<label for="file">Envoyer un fichier :</label>
@@ -24,7 +27,7 @@
<input type="submit" value="Envoyer">
</form>
<!-- File list -->
<table>
<tr class="first">
<th>
@@ -63,6 +66,7 @@
</tr>
<?php } ?>
</table>
<!-- Pagination controls -->
<div class="pagebuttons">
<?php if ($page != 0) { ?><a class="previous" href="<?=$config['rel_root_folder']?>admin/wiki-files/<?=$page?>?orderby=<?=$orderby?>&amp;order=<?=$order?>"><i class="fas fa-chevron-left fa-fw"></i></a><?php }
if (($page+1)*$rows_per_pages < $filenb) { ?><a class="next" href="<?=$config['rel_root_folder']?>admin/wiki-files/<?=$page+2?>?orderby=<?=$orderby?>&amp;order=<?=$order?>"><i class="fas fa-chevron-right fa-fw"></i></a><?php } ?>
@@ -73,4 +77,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.blog.edit.html -->
<!-- Page: blog editor -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,15 +8,19 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Blog edit form -->
<section>
<?php if(isset($new) AND $new==1) { ?>
<!-- Create article -->
<form class="form" action="<?=$config['rel_root_folder']?>blog/new" method="post">
<?php }
else { ?>
<!-- Update article -->
<form class="form" action="<?=$config['rel_root_folder']?>blog/<?=$blogArticle->permalink?>/edit" method="post">
<?php } ?>
<h1>
<!-- Locale and title -->
<select name="locale" id="locale">
<?php foreach($locales->objs as $locale) { ?>
<option <?=$blogArticle->locale==$locale->name?'selected':''?> value="<?=$locale->name?>"><?=$locale->display_name?></option>
@@ -26,18 +30,22 @@
</h1>
<?php if(isset($error) AND $error=="permalink") { ?>
<!-- Permalink error -->
<p style="color: red;">L'URL sélectionnée est déjà prise.</p>
<?php } ?>
<!-- Article content -->
<textarea rows="30" name="content" id="content" placeholder="Contenu de l'article"><?=$blogArticle->content?></textarea>
<?php if(isset($new) AND $new==1) { ?>
<!-- Permalink settings -->
<div id="permalink_container">
<label id="permalink_label" for="permalink"><?=$config['web_root_folder']?>blog/</label>
<input type="text" name="permalink" id="permalink" placeholder="URL" required>
</div>
<?php } ?>
<!-- Article options -->
<label for="is_commentable">
<input type="checkbox" name="is_commentable" id="is_commentable"
<?php if($blogArticle->is_commentable == 't') { ?>
@@ -47,10 +55,12 @@
<span>Autoriser les commentaires</span>
</label>
<!-- Form submission -->
<input name="submit" id="submit" type="submit" value="Envoyer">
</form>
</section>
<!-- Permalink generation -->
<script type="text/javascript">
$( "#name" ).keyup(function() {
permalink = $( "#name" ).val();
@@ -73,4 +83,4 @@ $( "#name" ).change(function() {
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.blog.list.html -->
<!-- Page: blog list -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,8 +8,10 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Blog listing -->
<section id="blog_list">
<h1>Blog</h1>
<!-- Actions and pagination -->
<p class="subtitle">
<?php if ($user->rankIsHigher("moderator")) { ?>
<a href="<?=$config['rel_root_folder']?>blog/new"><i class="fas fa-plus"></i> Nouvel article</a> &mdash;
@@ -18,6 +20,7 @@
Articles <?=$first?> à <?=$last?> sur <?=$blogArticles->number?>
</p>
<!-- Article cards -->
<div id="articles_list">
<?php foreach ($blogArticles->objs as $row) { ?>
@@ -43,6 +46,7 @@
</div>
<!-- Pagination controls -->
<div class="pagebuttons">
<?php if ($page != 0) { ?><a class="previous" href="<?=$config['rel_root_folder']?>blog/<?=$page?>"><i class="fas fa-chevron-left fa-fw"></i></a><?php }
if (($page+1)*$articles_per_pages < $blogArticles->number) { ?><a class="next" href="<?=$config['rel_root_folder']?>blog/<?=$page+2?>"><i class="fas fa-chevron-right fa-fw"></i></a><?php } ?>
@@ -53,4 +57,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.blog.view.html -->
<!-- Page: blog article -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -9,6 +9,7 @@
<?php include('blocks/d.nav.html'); ?>
<?php
// Droits et état de l'article
$isArchiveOrPrivate = $blogArticle->is_archive == "t" || $blogArticle->is_public == "f";
$canViewHistory = $user->rankIsHigher('premium');
$canModerate = $user->rankIsHigher('moderator');
@@ -19,9 +20,11 @@
$isCommentable = $blogArticle->is_commentable == "t";
?>
<!-- Blog article -->
<section id="blog_article" <?=$isArchiveOrPrivate ? 'class="archive"' : ''?>>
<h1><?=$blogArticle->name?></h1>
<?php if ($canViewHistory) { ?>
<!-- History and actions -->
<span class="subtitle">
<?php if ($hasHistory) { ?>
<select id="bloghistory">
@@ -54,10 +57,12 @@
</span>
<?php } ?>
<!-- Article content -->
<div id="blogContent">
<?=$blogArticle->content_html?>
</div>
<!-- Signature -->
<p id="blogTimestamp">Article écrit par
<?php if ($user->rankIsHigher("blocked")) { ?>
<a href="<?=$config['rel_root_folder']?>user/p/<?=$blogArticle->author?>"><?=$blogArticle->author_name?></a>
@@ -66,9 +71,10 @@
<?php } ?>
le <?php echo datefmt_format($user->datetime_format,date_create($blogArticle->creation_date, new DateTimeZone("UTC"))) ?></p>
<!-- COMMENTS -->
<!-- Comments -->
<?php if ($isCommentable) { ?>
<!-- Comment form -->
<div id="new_comment">
<form class="form" action="<?=$config['rel_root_folder']?>blog/<?=$blogArticle->permalink?>/new_comment" method="post">
<div id="new_comment_label" <?=$isVisitor ? "class='sent' " : ""?>>
@@ -87,6 +93,7 @@
</form>
</div>
<!-- Comment list -->
<?php foreach ($blogArticles_comments->objs as $comment) { ?>
<?php $canManageComment = $canModerate || $user->id == $comment->author; ?>
@@ -118,12 +125,14 @@
<?php }
} ?>
<!-- Footer spacing -->
<br>
<br>
<div style="clear: both;"> </div>
</section>
<?php if ($canViewHistory) { ?>
<!-- History switch -->
<script type="text/javascript">
$( "#bloghistory" ).change(function() {
window.location.href = "<?=$config['rel_root_folder']?>blog/<?=$blogArticle->permalink?>/"+$( this ).val();
@@ -131,6 +140,7 @@
</script>
<?php } ?>
<?php if ($canOpenCommentForm) { ?>
<!-- Comment form toggle -->
<script type="text/javascript">
$( "#new_comment_label" ).click(function() {
$( "#new_comment_form" ).show(400);

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.community.html -->
<!-- Page: community contributions -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,17 +8,20 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Main content -->
<section>
<h1>Contribuer au projet Kabano</h1>
<p>&Eacute;tant un projet collaboratif, Kabano se repose sur vos contributions pour diffuser des informations au plus proche de la réalité. En participant au projet Kabano, vous acceptez de placer vos collaborations sous <a href="<?=$config['rel_root_folder']?>wiki/licences">nos licences libres</a>.</p>
<br>
<!-- Contribution: add POI -->
<div class="action">
<?php if($user->rankIsHigher("registered")) { ?>
<div class="title"><i class="fas fa-home"></i>
<a href="<?=$config['rel_root_folder']?>poi/new">Ajouter un hébergement de montagne</a>
</div>
<?php } else { ?>
<!-- Login required -->
<div class="title" id="js_open_1"><i class="fas fa-home"></i>
<p>Ajouter un hébergement de montagne</p>
</div>
@@ -28,6 +31,7 @@
<?php } ?>
</div>
<!-- Contribution: comments -->
<div class="action">
<div class="title" id="js_open_2"><i class="fas fa-comment"></i>
<p>Ajouter un commentaire sur un hébergement</p>
@@ -37,6 +41,7 @@
</div>
</div>
<!-- Contribution: maintenance -->
<div class="action">
<div class="title" id="js_open_3"><i class="fas fa-wrench"></i>
<p>Faire une demande de travaux</p>
@@ -48,6 +53,7 @@
</section>
<!-- Description toggles -->
<script type="text/javascript">
$( "#js_open_1" ).click(function() {
$( "#js_openned_1" ).show(400);

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.contact.html -->
<!-- Page: contact -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,9 +8,11 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Contact form -->
<section>
<h1>Me contacter</h1>
<form class="form" action="<?=$config['rel_root_folder']?>contact" method="post">
<!-- Error messages -->
<?php if($error=="name") { ?>
<p style="color: red;">Veuillez renseigner votre nom.</p>
<?php } ?>
@@ -33,15 +35,18 @@
<?php if($error=="none") { ?>
<p style="color: green;">Message bien envoyé.</p>
<?php } ?>
<!-- Fields -->
<input type="text" name="name" id="name" placeholder="Nom" value="<?=$contact['name']?>">
<input type="email" name="email" id="email" placeholder="Adresse mail" value="<?=$contact['email']?>">
<input type="text" name="subject" id="subject" placeholder="Sujet" value="<?=$contact['subject']?>">
<textarea name="message" id="message" rows="12" placeholder="Contenu de votre message"><?=$contact['message']?></textarea>
<!-- Anti-spam -->
<?php if($user->rankIsHigher("registered")) { ?>
<input type="hidden" name="captcha" value="-2">
<input type="submit" name="submit" value="Envoyer">
<?php }
else { ?>
<!-- Required wait -->
<p id="captcha">
<input type="hidden" id="captchahidden" name="captcha" value="10">
<span id="captchatext">Merci d'attendre <b id="captchasec">10 s</b> avant de pouvoir me contacter.<br>
@@ -56,4 +61,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.index.html -->
<!-- Page: homepage -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,6 +8,7 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Hero image -->
<aside id="indexFullW">
<div id="AScontent">
<div id="imglegend">
@@ -16,6 +17,7 @@
</div>
</aside>
<!-- Load wiki content -->
<?php
require_once($config['models_folder']."d.wiki.php");
$wikiPage = new Kabano\WikiPage();
@@ -23,10 +25,12 @@
$wikiPage->md2html();
?>
<!-- Main content -->
<section id="index">
<h1><?=$wikiPage->name?></h1>
<?php if($user->rankIsHigher('moderator')) { ?>
<!-- Edit shortcut -->
<span class="subtitle">
<a href="<?=$config['rel_root_folder']?>wiki/index/edit"><i class="fas fa-pencil-alt"></i> Éditer la page</a>
</span>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.map.html -->
<!-- Page: map view -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,15 +8,16 @@
<?php include('blocks/d.nav.html'); ?>
<!-- <div id="advert">En cours de création<span class="dots"><span>.</span><span>.</span><span>.</span></span><br>En attendant je vous recommande <a href="https://www.refuges.info/" target="_blank">refuges.info</a></div>
-->
<!-- Map -->
<div id="mapid" style="height: 100%;"></div>
<!-- Credits panel -->
<div id="footer-credits" style="display: none;">
<i class="fa fa-times close-link" aria-hidden="true"></i>
<p><i id="map-credits"></i></p>
</div>
<!-- Legend panel -->
<div id="footer-legend" style="display: none;">
<i class="fa fa-times close-link" aria-hidden="true"></i>
<?php foreach($poi_types as $type) { ?>
@@ -26,10 +27,11 @@
<?php include('blocks/d.footer.html'); ?>
<!-- Map configuration -->
<script>
var root = "<?=$config['rel_root_folder']?>";
// Icônes des POIs (déjà présentes dans ton système)
// POI icons
window.poi_icons = {
<?php foreach($poi_types as $type) { ?>
"<?=$type[3]?>": "<?=$config['views_url']?>img/<?=$type[3]?>.svg",

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.poi.edit.html -->
<!-- Page: point of interest editor -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,17 +8,22 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Map canvas -->
<div id="mapid"></div>
<!-- POI form panel -->
<div id="sticky">
<section>
<i id="slide-icon" class="fas fa-chevron-up"></i>
<?php if(isset($new) AND $new==1) { ?>
<!-- Create POI -->
<form class="form" action="<?=$config['rel_root_folder']?>poi/new" method="post">
<?php }
else { ?>
<!-- Update POI -->
<form class="form" action="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/edit" method="post">
<?php } ?>
<!-- Basic fields -->
<h1 class="flex_line">
<input type="text" value="<?=$poi->name?>" name="name" id="name" placeholder="Nom de l'hébergement" required>
<select name="locale" id="locale">
@@ -28,6 +33,7 @@
</select>
</h1>
<!-- Location fields -->
<div class="flex_line">
<input type="number" class="noarrow" step="any" value="<?=$poi->lat?>" name="lat" id="lat" placeholder="Latitude" required>
<input type="number" class="noarrow" step="any" value="<?=$poi->lon?>" name="lon" id="lon" placeholder="Longitude" required>
@@ -35,6 +41,7 @@
<div id="elevation_icon" style="display:none;" title="Calculer l'altitude"><i class="fas fa-search-location"></i></div>
</div>
<!-- Type selector -->
<div class="flex_line" id="type_selector">
<?php foreach($poi_types as $type) { ?>
<input type="radio" name="poi_type" value="<?=$type[3]?>" id="<?=$type[3]?>" required
@@ -43,6 +50,7 @@
<?php } ?>
</div>
<!-- Dynamic form data -->
<script type="text/javascript">
<?php
$poi_params = $poi->parameters ?? new stdClass();
@@ -185,16 +193,20 @@ $(document).ready(function(){
});
});
</script>
<!-- Type description -->
<p id="abstract"></p>
<!-- Dynamic fields -->
<div id="specific_form"></div>
<?php if(isset($new) AND $new==1) { ?>
<!-- Permalink -->
<div id="permalink_container">
<label id="permalink_label" for="permalink"><?=$config['web_root_folder']?>poi/</label>
<input type="text" name="permalink" id="permalink" placeholder="URL" required>
</div>
<?php } ?>
<!-- Permalink generation -->
<script type="text/javascript">
$( "#name" ).keyup(function() {
permalink = $( "#name" ).val();
@@ -214,22 +226,25 @@ $( "#name" ).change(function() {
});
</script>
<!-- Form submission -->
<input name="submit" id="submit" type="submit" value="<?= isset($new) && $new == 1 ? "Ajouter l'hébergement" : "Mettre à jour l'hébergement" ?>">
</form>
</section>
<script>
<?php if($poi->lat != null && $poi->lon != null) { ?>
var poi_lat = <?=$poi->lat?>;
var poi_lon = <?=$poi->lon?>;
<?php } ?>
var poi_type = "<?=$poi->poi_type?>";
var is_new = <?= isset($new) && $new == 1 ? "true" : "false" ?>;
var root = "<?=$config['rel_root_folder']?>";
</script>
<!-- Map variables -->
<script>
<?php if($poi->lat != null && $poi->lon != null) { ?>
var poi_lat = <?=$poi->lat?>;
var poi_lon = <?=$poi->lon?>;
<?php } ?>
var poi_type = "<?=$poi->poi_type?>";
var is_new = <?= isset($new) && $new == 1 ? "true" : "false" ?>;
var root = "<?=$config['rel_root_folder']?>";
</script>
<script type="text/javascript">
<!-- Scroll helper -->
<script type="text/javascript">
$( "#slide-icon" ).click(function() {
$( "html, body" ).animate({scrollTop: "300px"});
});
@@ -238,4 +253,4 @@ $( "#slide-icon" ).click(function() {
<?php include('blocks/d.footer.html'); ?>
</div>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.poi.view.html -->
<!-- Page: point of interest view -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -19,81 +19,86 @@
$isCommentable = $poi->is_commentable == 't';
?>
<!-- Map canvas -->
<div id="mapid"></div>
<!-- POI details panel -->
<div id="sticky">
<section <?=$isArchiveOrPrivate ? 'class="archive"' : ''?>>
<i id="slide-icon" class="fas fa-chevron-up"></i>
<h1 class="flex_line">
<span class="poi-icon-wrapper" data-tooltip="<?=htmlspecialchars($poi_types[$poi->poi_type][4] ?? '')?>">
<img class="poi-icon"
src="<?=$config['rel_root_folder']?>views/img/<?=$poi->poi_type?>.svg"
alt="">
</span>
<span><?=$poi->name?></span>
</h1>
<!-- POI header -->
<h1 class="flex_line">
<span class="poi-icon-wrapper" data-tooltip="<?=htmlspecialchars($poi_types[$poi->poi_type][4] ?? '')?>">
<img class="poi-icon"
src="<?=$config['rel_root_folder']?>views/img/<?=$poi->poi_type?>.svg"
alt="">
</span>
<span><?=$poi->name?></span>
</h1>
<div class="poi-idcard">
<!-- POI card -->
<div class="poi-idcard">
<div class="poi-id-main">
<div class="poi-id-coords">
<span class="poi-id-label">📍 Coordonnées</span>
<a href="geo:<?=$poi->lat?>,<?=$poi->lon?>" class="poi-id-value">
<?=$poi->lat?>, <?=$poi->lon?>
</a>
<?php if ($poi->ele !== null && $poi->ele !== '') { ?>
<span class="poi-id-elev">⛰️ <?=$poi->ele?> m</span>
<?php } ?>
</div>
<div class="poi-id-main">
<div class="poi-id-coords">
<span class="poi-id-label">📍 Coordonnées</span>
<a href="geo:<?=$poi->lat?>,<?=$poi->lon?>" class="poi-id-value">
<?=$poi->lat?>, <?=$poi->lon?>
</a>
<?php if ($poi->ele !== null && $poi->ele !== '') { ?>
<span class="poi-id-elev">⛰️ <?=$poi->ele?> m</span>
<?php } ?>
</div>
<div class="poi-id-type">
<span class="poi-id-label">🏷️ Type</span>
<span class="poi-id-value">
<?=$poi_types[$poi->poi_type][1] ?? $poi->poi_type?>
</span>
</div>
</div>
<div class="poi-id-type">
<span class="poi-id-label">🏷️ Type</span>
<span class="poi-id-value">
<?=$poi_types[$poi->poi_type][1] ?? $poi->poi_type?>
</span>
</div>
</div>
<div class="poi-id-dates">
<span>Créé : <?=$poi->creation_date?></span>
<span>Mis à jour : <?=$poi->update_date?></span>
</div>
<div class="poi-id-dates">
<span>Créé : <?=$poi->creation_date?></span>
<span>Mis à jour : <?=$poi->update_date?></span>
</div>
</div>
</div>
<?php if ($canViewHistory) { ?>
<span class="subtitle">
<?php if ($hasHistory) { ?>
<select id="PoiHistory">
<?php $historyIndex = 0; ?>
<?php foreach ($PoiHistory->objs as $row) { ?>
<?php
$isSelected = $row->version_id == $poi->version_id ? 'selected' : '';
$isActive = $row->is_archive == "f" ? '&bull; ' : '';
$formattedDate = datefmt_format(
$user->datetimeshort_format,
date_create($row->update_date, new DateTimeZone("UTC"))
);
?>
<option <?=$isSelected?> value="<?=$historyIndex?>"><?=$isActive?><?=$formattedDate?></option>
<?php $historyIndex++; ?>
<?php } ?>
</select>
<?php }
if ($canModerate && $hasHistory) { ?>
&mdash;
<?php }
if ($canModerate) { ?>
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/edit"><i class="fas fa-pencil-alt"></i> Éditer le point</a> &mdash;
<?php if ($poi->is_public == 't') { ?>
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/delete"><i class="fas fa-trash"></i> Effacer le point</a>
<?php } else { ?>
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/restore"><i class="fas fa-eye"></i> Restaurer le point</a>
<?php } ?>
<?php } ?>
</span>
<?php } ?>
<?php if ($canViewHistory) { ?>
<!-- History and actions -->
<span class="subtitle">
<?php if ($hasHistory) { ?>
<select id="PoiHistory">
<?php $historyIndex = 0; ?>
<?php foreach ($PoiHistory->objs as $row) { ?>
<?php
$isSelected = $row->version_id == $poi->version_id ? 'selected' : '';
$isActive = $row->is_archive == "f" ? '&bull; ' : '';
$formattedDate = datefmt_format(
$user->datetimeshort_format,
date_create($row->update_date, new DateTimeZone("UTC"))
);
?>
<option <?=$isSelected?> value="<?=$historyIndex?>"><?=$isActive?><?=$formattedDate?></option>
<?php $historyIndex++; ?>
<?php } ?>
</select>
<?php }
if ($canModerate && $hasHistory) { ?>
&mdash;
<?php }
if ($canModerate) { ?>
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/edit"><i class="fas fa-pencil-alt"></i> Éditer le point</a> &mdash;
<?php if ($poi->is_public == 't') { ?>
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/delete"><i class="fas fa-trash"></i> Effacer le point</a>
<?php } else { ?>
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/restore"><i class="fas fa-eye"></i> Restaurer le point</a>
<?php } ?>
<?php } ?>
</span>
<?php } ?>
<br>
<br>
@@ -115,143 +120,144 @@
}
?>
<div id="specific_form" class="view-mode">
<div id="specific_form" class="view-mode">
<!-- Detail fields -->
<?php foreach ($otherFields as $key => $label): ?>
<?php
$value = $poiValues[$key] ?? null;
$type = $key[0];
?>
<!-- AUTRES CHAMPS (texte, nombre, lien) -->
<?php foreach ($otherFields as $key => $label): ?>
<?php
$value = $poiValues[$key] ?? null;
$type = $key[0];
?>
<div class="field field-<?= $type ?>">
<label><?= $label ?></label>
<div class="field field-<?= $type ?>">
<label><?= $label ?></label>
<?php if ($type === 'n'): ?>
<span class="inline-value"><?= $value !== null ? $value : "<em>—</em>" ?></span>
<?php if ($type === 'n'): ?>
<span class="inline-value"><?= $value !== null ? $value : "<em>—</em>" ?></span>
<?php elseif ($type === 't'): ?>
<div class="field-value">
<?= $value ? nl2br(htmlspecialchars($value)) : "<em>Aucune information.</em>" ?>
</div>
<?php elseif ($type === 't'): ?>
<div class="field-value">
<?= $value ? nl2br(htmlspecialchars($value)) : "<em>Aucune information.</em>" ?>
</div>
<?php elseif ($type === 'l'): ?>
<span class="inline-value">
<?php if ($value): ?>
<a href="<?= htmlspecialchars($value) ?>" target="_blank"><?= $value ?></a>
<?php else: ?>
<em></em>
<?php endif; ?>
</span>
<?php elseif ($type === 'l'): ?>
<span class="inline-value">
<?php if ($value): ?>
<a href="<?= htmlspecialchars($value) ?>" target="_blank"><?= $value ?></a>
<?php else: ?>
<em></em>
<?php endif; ?>
</span>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php endforeach; ?>
<!-- TABLEAU DES BOOLÉENS -->
<?php if (!empty($boolFields)): ?>
<?php
$boolIcons = [
0 => "<span class='boolean-pill boolean-no'>❌</span>",
1 => "<span class='boolean-pill boolean-maybe'>❓</span>",
2 => "<span class='boolean-pill boolean-yes'>✔️</span>",
-1 => "<span class='boolean-pill boolean-unknown'></span>"
];
?>
<div class="bool-grid">
<!-- Boolean grid -->
<?php if (!empty($boolFields)): ?>
<?php
$boolIcons = [
0 => "<span class='boolean-pill boolean-no'>❌</span>",
1 => "<span class='boolean-pill boolean-maybe'>❓</span>",
2 => "<span class='boolean-pill boolean-yes'>✔️</span>",
-1 => "<span class='boolean-pill boolean-unknown'></span>"
];
?>
<div class="bool-grid">
<!-- Ligne des labels -->
<div class="bool-row labels">
<?php foreach ($boolFields as $key => $label): ?>
<div class="bool-label"><?= $label ?></div>
<?php endforeach; ?>
</div>
<!-- Boolean labels -->
<div class="bool-row labels">
<?php foreach ($boolFields as $key => $label): ?>
<div class="bool-label"><?= $label ?></div>
<?php endforeach; ?>
</div>
<!-- Ligne des valeurs -->
<div class="bool-row values">
<?php foreach ($boolFields as $key => $label): ?>
<?php
$value = $poiValues[$key] ?? 2;
$icon = $boolIcons[$value];
?>
<div class="bool-cell">
<?= $icon ?>
</div>
<?php endforeach; ?>
</div>
<!-- Boolean values -->
<div class="bool-row values">
<?php foreach ($boolFields as $key => $label): ?>
<?php
$value = $poiValues[$key] ?? 2;
$icon = $boolIcons[$value];
?>
<div class="bool-cell">
<?= $icon ?>
</div>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php if ($isCommentable) { ?>
<div id="new_comment">
<form class="form" action="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/new_comment" method="post">
<div id="new_comment_label" <?=$isVisitor ? "class='sent' " : ""?>>
<?php if ($isArchiveOrPrivate) { ?>
<p>Impossible de commenter un point non publié</p>
<?php } else if ($canWriteComment) { ?>
<input name="submit" type="submit" value="Envoyer">
<p>Ajouter un nouveau commentaire</p>
<?php } else { ?>
<p>Veuillez vous connecter pour ajouter un commentaire</p>
<?php } ?>
</div>
<div id="new_comment_form">
<textarea id="comment" name="comment" rows="5" placeholder="Votre commentaire"></textarea>
</div>
</form>
</div>
<!-- Comments -->
<div id="new_comment">
<form class="form" action="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/new_comment" method="post">
<div id="new_comment_label" <?=$isVisitor ? "class='sent' " : ""?>>
<?php if ($isArchiveOrPrivate) { ?>
<p>Impossible de commenter un point non publié</p>
<?php } else if ($canWriteComment) { ?>
<input name="submit" type="submit" value="Envoyer">
<p>Ajouter un nouveau commentaire</p>
<?php } else { ?>
<p>Veuillez vous connecter pour ajouter un commentaire</p>
<?php } ?>
</div>
<div id="new_comment_form">
<textarea id="comment" name="comment" rows="5" placeholder="Votre commentaire"></textarea>
</div>
</form>
</div>
<?php if (isset($poi_comments) && $poi_comments->number > 0) { ?>
<!-- Comment list -->
<div id="comments">
<?php foreach ($poi_comments->objs as $comment) { ?>
<?php $canManageComment = $canModerate || $user->id == $comment->author; ?>
<?php $canManageComment = $canModerate || $user->id == $comment->author; ?>
<article <?php if($comment->is_archive == 't' || $comment->is_public == 'f') echo 'class="comment_archive" '; ?>>
<div class="comment_title">
<div class="comment_title">
<?php if ($comment->author_obj->is_avatar_present == 't') { ?>
<img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$comment->author_obj->id?>_s.jpg">
<?php } else { ?>
<i class="icon fas fa-user-secret"></i>
<?php } ?>
<?php if ($comment->author_obj->is_avatar_present == 't') { ?>
<img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$comment->author_obj->id?>_s.jpg">
<?php } else { ?>
<i class="icon fas fa-user-secret"></i>
<?php } ?>
<?php if ($user->rankIsHigher("blocked")) { ?>
<a class="username" href="<?=$config['rel_root_folder']?>user/p/<?=$comment->author_obj->id?>">
<?=$comment->author_obj->name?>
</a>
<?php } else { ?>
<?=$comment->author_obj->name?>
<?php } ?>
<?php if ($user->rankIsHigher("blocked")) { ?>
<a class="username" href="<?=$config['rel_root_folder']?>user/p/<?=$comment->author_obj->id?>">
<?=$comment->author_obj->name?>
</a>
<?php } else { ?>
<?=$comment->author_obj->name?>
<?php } ?>
le <?php echo datefmt_format($user->datetime_format, date_create($comment->update_date, new DateTimeZone("UTC"))) ?>
le <?php echo datefmt_format($user->datetime_format, date_create($comment->update_date, new DateTimeZone("UTC"))) ?>
<?php if ($canManageComment && $comment->is_public == 't') { ?>
<span class="delete_link">
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/delete_comment/<?=$comment->id?>">
<i class="fas fa-trash"></i> Effacer le commentaire
</a>
</span>
<?php } ?>
<?php if ($canManageComment && $comment->is_public == 't') { ?>
<span class="delete_link">
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/delete_comment/<?=$comment->id?>">
<i class="fas fa-trash"></i> Effacer le commentaire
</a>
</span>
<?php } ?>
<?php if ($canManageComment && $comment->is_public == 'f') { ?>
<span class="delete_link">
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/restore_comment/<?=$comment->id?>">
<i class="fas fa-eye"></i> Restaurer le commentaire
</a>
</span>
<?php } ?>
<?php if ($canManageComment && $comment->is_public == 'f') { ?>
<span class="delete_link">
<a href="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/restore_comment/<?=$comment->id?>">
<i class="fas fa-eye"></i> Restaurer le commentaire
</a>
</span>
<?php } ?>
</div>
</div>
<div class="comment_content">
<?=$comment->comment_html?>
</div>
</article>
<div class="comment_content">
<?=$comment->comment_html?>
</div>
</article>
<?php } ?>
<br></div>
@@ -265,6 +271,7 @@
<?php include('blocks/d.footer.html'); ?>
</div>
<!-- Map variables -->
<script>
var poi_lat = <?=$poi->lat?>;
var poi_lon = <?=$poi->lon?>;
@@ -274,23 +281,26 @@
</script>
<?php if ($canViewHistory) { ?>
<script type="text/javascript">
$( "#PoiHistory" ).change(function() {
window.location.href = "<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/"+$( this ).val();
});
</script>
<!-- History selector -->
<script type="text/javascript">
$( "#PoiHistory" ).change(function() {
window.location.href = "<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/"+$( this ).val();
});
</script>
<?php } ?>
<?php if ($canOpenCommentForm) { ?>
<script type="text/javascript">
$( "#new_comment_label" ).click(function() {
$( "#new_comment_form" ).show(400);
$( "#new_comment_label input" ).show(0);
$( "#new_comment_label").addClass('sent');
});
</script>
<!-- Comment form toggle -->
<script type="text/javascript">
$( "#new_comment_label" ).click(function() {
$( "#new_comment_form" ).show(400);
$( "#new_comment_label input" ).show(0);
$( "#new_comment_label").addClass('sent');
});
</script>
<?php } ?>
<!-- Scroll helper -->
<script type="text/javascript">
$( "#slide-icon" ).click(function() {
$( "html, body" ).animate({scrollTop: "300px"});

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.user.login.html -->
<!-- Page: user login -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -10,7 +10,9 @@
<section>
<h1>Connexion</h1>
<!-- Login form -->
<form class="form" action="<?=$config['rel_root_folder']?>user/login" method="post" id="login">
<!-- Status messages -->
<?php if(isset($_GET['error']) AND $_GET['error']==1) { ?>
<p style="color: red;">Erreur lors de la connexion, merci de réessayer.</p>
<?php } ?>
@@ -32,4 +34,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.user.member_list.html -->
<!-- Page: member list -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,6 +8,7 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Member table -->
<section id="member_list">
<h1>Liste des membres</h1>
<p class="subtitle">Membres <?=$first?> à <?=$last?> sur les <?=$users->number?> inscrits</p>
@@ -68,4 +69,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.user.password_lost.html -->
<!-- Page: password reset -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -10,6 +10,7 @@
<section>
<h1>Envoi d'un mot de passe</h1>
<!-- Reset form -->
<form class="form" action="<?=$config['rel_root_folder']?>user/password_lost" method="post" id="password_lodt">
<?php if(isset($_GET['error']) AND $_GET['error']==1) { ?>
<p style="color: red;">Cette adresse mail n'existe pas.</p>
@@ -22,4 +23,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.user.profile.edit.html -->
<!-- Page: profile editor -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,10 +8,12 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Profile form -->
<section id="profile">
<?php if ($userProfile->id != 0) { ?>
<h1><?=$userProfile->name?></h1>
<article>
<!-- Status messages -->
<?php if(isset($nameError) AND $nameError==1) { ?>
<p style="color: #660000;">Veuillez choisir un autre nom d'utilisateur.</p>
<?php } ?>
@@ -21,6 +23,7 @@
<?php if(isset($updated) AND $updated==1) { ?>
<p style="color: #006600;">Le profil a été mis à jour.</p>
<?php } ?>
<!-- Profile fields -->
<form action="<?=$config['rel_root_folder']?>user/p/<?=$userProfile->id?>/edit" method="post" class="edituser" enctype="multipart/form-data">
<aside class="<?=$userProfile->is_avatar_present=='t'?'':'no'?>avatar">
<div id="picturebuttonscontainer">
@@ -79,4 +82,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.user.profile.html -->
<!-- Page: user profile -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -10,11 +10,13 @@
<section id="profile">
<?php if ($userProfile->id != 0) { ?>
<!-- Profile header -->
<h1><?=$userProfile->name?></h1>
<?php if($user->rankIsHigher("moderator") || $user->id == $userProfile->id) { ?>
<a class="subtitle" id="editprofile" href="<?=$config['rel_root_folder']?>user/p/<?=$userProfile->id?>/edit"><i class="fas fa-pencil-alt"></i> Éditer les paramètres du compte</a>
<?php } ?>
<article>
<!-- Profile info -->
<div id="profilepart">
<?php if(isset($mailsent) AND $mailsent==1) { ?>
<p style="color: #006600;">Le message a bien été envoyé.</p>
@@ -49,6 +51,7 @@
<div style="clear:both;"></div>
</div>
<?php if ($userProfile->id != $user->id) { ?>
<!-- Contact form -->
<form style="display:none;" class="form" id="contact" action="<?=$config['rel_root_folder']?>user/p/<?=$userProfile->id?>" method="post" >
<textarea rows="12" name="message" id="message" placeholder="Votre message"></textarea>
<p><i>Votre adresse email sera transmise à votre destinataire.</i></p>
@@ -64,4 +67,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.user.signin.html -->
<!-- Page: user signin -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -10,7 +10,9 @@
<section>
<h1>Inscription</h1>
<!-- Signup form -->
<form class="form" action="<?=$config['rel_root_folder']?>user/signin" method="post" id="signin">
<!-- Status messages -->
<?php if(isset($_GET['error']) AND $_GET['error']=="name") { ?>
<p style="color: red;">Veuillez choisir un autre nom d'utilisateur.</p>
<?php } ?>
@@ -39,4 +41,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.wiki.edit.html -->
<!-- Page: wiki editor -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,6 +8,7 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Wiki form -->
<section>
<form class="form" action="<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->permalink?>/edit" method="post">
<h1>
@@ -28,4 +29,4 @@
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.wiki.view.html -->
<!-- Page: wiki view -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -15,9 +15,11 @@
$hasHistory = isset($wikiHistory);
?>
<!-- Wiki content -->
<section id="wiki_page" <?=$isArchiveOrPrivate ? 'class="archive"' : ''?>>
<h1><?=$wikiPage->name?></h1>
<?php if ($canViewHistory) { ?>
<!-- History and actions -->
<span class="subtitle">
<?php if ($hasHistory) { ?>
<select id="wikihistory">
@@ -50,16 +52,19 @@
</span>
<?php } ?>
<!-- Page body -->
<div id="wikiContent">
<?=$wikiPage->content_html?>
</div>
<!-- Timestamp -->
<p id="wikiTimestamp">Page mise à jour le <?php echo datefmt_format($user->datetime_format,date_create($wikiPage->update_date, new DateTimeZone("UTC"))) ?></p>
<div style="clear: both;"> </div>
</section>
<?php if ($canViewHistory) { ?>
<!-- History selector -->
<script type="text/javascript">
$( "#wikihistory" ).change(function() {
window.location.href = "<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->permalink?>/"+$( this ).val();