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,8 +1,9 @@
<!-- 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>

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 }

View File

@@ -1,10 +1,11 @@
<!-- 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>
@@ -33,6 +34,7 @@
<a class="on-bar" href="#"><i class="icon fas fa-user-secret"></i></a>
<?php } ?>
<ul>
<!-- Account actions -->
<?php if($user->rank == 'visitor') { ?>
<li id="connectform">
<form action="<?=$config['rel_root_folder']?>user/login" method="post">
@@ -54,10 +56,9 @@
</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>-->
<!-- 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>

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) { ?>

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>";

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>

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();

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 { ?>

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 } ?>

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();

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 } ?>

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>

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,11 +226,13 @@ $( "#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>
<!-- Map variables -->
<script>
<?php if($poi->lat != null && $poi->lon != null) { ?>
var poi_lat = <?=$poi->lat?>;
var poi_lon = <?=$poi->lon?>;
@@ -226,9 +240,10 @@ $( "#name" ).change(function() {
var poi_type = "<?=$poi->poi_type?>";
var is_new = <?= isset($new) && $new == 1 ? "true" : "false" ?>;
var root = "<?=$config['rel_root_folder']?>";
</script>
</script>
<!-- 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.poi.view.html -->
<!-- Page: point of interest view -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -19,12 +19,15 @@
$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>
<!-- POI header -->
<h1 class="flex_line">
<span class="poi-icon-wrapper" data-tooltip="<?=htmlspecialchars($poi_types[$poi->poi_type][4] ?? '')?>">
<img class="poi-icon"
@@ -34,6 +37,7 @@
<span><?=$poi->name?></span>
</h1>
<!-- POI card -->
<div class="poi-idcard">
<div class="poi-id-main">
@@ -63,6 +67,7 @@
</div>
<?php if ($canViewHistory) { ?>
<!-- History and actions -->
<span class="subtitle">
<?php if ($hasHistory) { ?>
<select id="PoiHistory">
@@ -116,8 +121,7 @@
?>
<div id="specific_form" class="view-mode">
<!-- AUTRES CHAMPS (texte, nombre, lien) -->
<!-- Detail fields -->
<?php foreach ($otherFields as $key => $label): ?>
<?php
$value = $poiValues[$key] ?? null;
@@ -150,7 +154,7 @@
<?php endforeach; ?>
<!-- TABLEAU DES BOOLÉENS -->
<!-- Boolean grid -->
<?php if (!empty($boolFields)): ?>
<?php
$boolIcons = [
@@ -162,14 +166,14 @@
?>
<div class="bool-grid">
<!-- Ligne des labels -->
<!-- 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 -->
<!-- Boolean values -->
<div class="bool-row values">
<?php foreach ($boolFields as $key => $label): ?>
<?php
@@ -189,6 +193,7 @@
<?php if ($isCommentable) { ?>
<!-- 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' " : ""?>>
@@ -208,6 +213,7 @@
</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; ?>
@@ -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,6 +281,7 @@
</script>
<?php if ($canViewHistory) { ?>
<!-- History selector -->
<script type="text/javascript">
$( "#PoiHistory" ).change(function() {
window.location.href = "<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/"+$( this ).val();
@@ -282,6 +290,7 @@
<?php } ?>
<?php if ($canOpenCommentForm) { ?>
<!-- Comment form toggle -->
<script type="text/javascript">
$( "#new_comment_label" ).click(function() {
$( "#new_comment_form" ).show(400);
@@ -291,6 +300,7 @@
</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 } ?>

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>

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>

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">

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>

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 } ?>

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>

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();