Merge pull request #17 from LeOSW42/copilot/recomment-css-html-files

Recomment all CSS and HTML templates
This commit is contained in:
2026-01-24 19:41:07 +01:00
committed by GitHub
26 changed files with 380 additions and 273 deletions

View File

@@ -1,8 +1,9 @@
<!-- Template: blocks/d.footer.html --> <!-- Footer -->
<footer> <footer>
<div class="flex"> <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> <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"> <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/cgv">CGV</a> &mdash;
<a href="<?=$config['rel_root_folder']?>wiki/legal">Mentions Légales</a> &mdash; <a href="<?=$config['rel_root_folder']?>wiki/legal">Mentions Légales</a> &mdash;
<a href="<?=$config['rel_root_folder']?>contact">Contact</a> <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> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0"> <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"> <link rel="shortcut icon" href="<?=$config['views_url']?>img/favicon.png">
<!-- Stylesheets -->
<?php if (isset($head['css'])) { <?php if (isset($head['css'])) {
foreach(explode(";",$head['css']) as $css) { ?> foreach(explode(";",$head['css']) as $css) { ?>
<link rel="stylesheet" href="<?=$config['views_url']?>css/<?=$css?>"/> <link rel="stylesheet" href="<?=$config['views_url']?>css/<?=$css?>"/>
@@ -13,6 +14,7 @@
<?php } ?> <?php } ?>
<link rel="stylesheet" href="<?=$config['views_url']?>third/fontawesome-free-5.4.1-web/css/all.min.css"/> <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> <script type="text/javascript" src="<?=$config['views_url']?>third/jquery-3.3.1.min.js"></script>
<?php if (isset($head['third'])) { <?php if (isset($head['third'])) {
foreach(explode(";",$head['third']) as $third) { ?> foreach(explode(";",$head['third']) as $third) { ?>
@@ -26,6 +28,7 @@
<?php } <?php }
} ?> } ?>
<!-- Metadata -->
<?php if (isset($head['title'])) { ?> <?php if (isset($head['title'])) { ?>
<title><?=$head['title']?> &mdash; Kabano</title> <title><?=$head['title']?> &mdash; Kabano</title>
<?php } <?php }

View File

@@ -1,10 +1,11 @@
<!-- Template: blocks/d.nav.html --> <!-- Header navigation -->
<header> <header>
<div id="Hcontent"> <div id="Hcontent">
<a href="<?=$config['rel_root_folder']?>" id="logo"> <a href="<?=$config['rel_root_folder']?>" id="logo">
<img alt="Kabano logo" src="<?=$config['views_url'].'img/'?>header.svg"> <img alt="Kabano logo" src="<?=$config['views_url'].'img/'?>header.svg">
</a> </a>
<nav> <nav>
<!-- Main menu -->
<input type="checkbox" id="togglemenu"><label for="togglemenu" class="hamburger on-bar"><i class="icon fas fa-bars"></i></label> <input type="checkbox" id="togglemenu"><label for="togglemenu" class="hamburger on-bar"><i class="icon fas fa-bars"></i></label>
<ul id="menu"> <ul id="menu">
<li class="on-bar has-sub with-subtitle"><a class="on-bar" href="#">Restauration<br> <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> <a class="on-bar" href="#"><i class="icon fas fa-user-secret"></i></a>
<?php } ?> <?php } ?>
<ul> <ul>
<!-- Account actions -->
<?php if($user->rank == 'visitor') { ?> <?php if($user->rank == 'visitor') { ?>
<li id="connectform"> <li id="connectform">
<form action="<?=$config['rel_root_folder']?>user/login" method="post"> <form action="<?=$config['rel_root_folder']?>user/login" method="post">
@@ -54,10 +56,9 @@
</li> </li>
<li class="on-bar has-sub menu-icon"><a class="on-bar" href="#"><i class="icon fas fa-question"></i></a> <li class="on-bar has-sub menu-icon"><a class="on-bar" href="#"><i class="icon fas fa-question"></i></a>
<ul> <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']?>blog">Blog</a></li>
<li><a href="<?=$config['rel_root_folder']?>contact">Contact</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> <li><a href="<?=$config['rel_root_folder']?>wiki/about">À propos</a></li>
</ul> </ul>
</li> </li>

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Template: d.admin.wiki-files.html --> <!-- Page: admin wiki files -->
<html lang="fr"> <html lang="fr">
<?php include('blocks/d.head.html'); ?> <?php include('blocks/d.head.html'); ?>
@@ -8,14 +8,17 @@
<?php include('blocks/d.nav.html'); ?> <?php include('blocks/d.nav.html'); ?>
<!-- Files table -->
<section id="wiki_files"> <section id="wiki_files">
<h1><?=$head['title']?></h1> <h1><?=$head['title']?></h1>
<!-- Pagination summary -->
<p class="subtitle">Fichiers attachés <?=$first?> à <?=$last?> sur les <?=$filenb?> présents</p> <p class="subtitle">Fichiers attachés <?=$first?> à <?=$last?> sur les <?=$filenb?> présents</p>
<br> <br>
<br> <br>
<!-- Upload form -->
<form action="<?=$config['rel_root_folder']?>admin/wiki-files/upload/" method="post" enctype="multipart/form-data" id="send_file"> <form action="<?=$config['rel_root_folder']?>admin/wiki-files/upload/" method="post" enctype="multipart/form-data" id="send_file">
<div> <div>
<label for="file">Envoyer un fichier :</label> <label for="file">Envoyer un fichier :</label>
@@ -24,7 +27,7 @@
<input type="submit" value="Envoyer"> <input type="submit" value="Envoyer">
</form> </form>
<!-- File list -->
<table> <table>
<tr class="first"> <tr class="first">
<th> <th>
@@ -63,6 +66,7 @@
</tr> </tr>
<?php } ?> <?php } ?>
</table> </table>
<!-- Pagination controls -->
<div class="pagebuttons"> <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 } <?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 } ?> 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> <!DOCTYPE html>
<!-- Template: d.blog.edit.html --> <!-- Page: blog editor -->
<html lang="fr"> <html lang="fr">
<?php include('blocks/d.head.html'); ?> <?php include('blocks/d.head.html'); ?>
@@ -8,15 +8,19 @@
<?php include('blocks/d.nav.html'); ?> <?php include('blocks/d.nav.html'); ?>
<!-- Blog edit form -->
<section> <section>
<?php if(isset($new) AND $new==1) { ?> <?php if(isset($new) AND $new==1) { ?>
<!-- Create article -->
<form class="form" action="<?=$config['rel_root_folder']?>blog/new" method="post"> <form class="form" action="<?=$config['rel_root_folder']?>blog/new" method="post">
<?php } <?php }
else { ?> else { ?>
<!-- Update article -->
<form class="form" action="<?=$config['rel_root_folder']?>blog/<?=$blogArticle->permalink?>/edit" method="post"> <form class="form" action="<?=$config['rel_root_folder']?>blog/<?=$blogArticle->permalink?>/edit" method="post">
<?php } ?> <?php } ?>
<h1> <h1>
<!-- Locale and title -->
<select name="locale" id="locale"> <select name="locale" id="locale">
<?php foreach($locales->objs as $locale) { ?> <?php foreach($locales->objs as $locale) { ?>
<option <?=$blogArticle->locale==$locale->name?'selected':''?> value="<?=$locale->name?>"><?=$locale->display_name?></option> <option <?=$blogArticle->locale==$locale->name?'selected':''?> value="<?=$locale->name?>"><?=$locale->display_name?></option>
@@ -26,18 +30,22 @@
</h1> </h1>
<?php if(isset($error) AND $error=="permalink") { ?> <?php if(isset($error) AND $error=="permalink") { ?>
<!-- Permalink error -->
<p style="color: red;">L'URL sélectionnée est déjà prise.</p> <p style="color: red;">L'URL sélectionnée est déjà prise.</p>
<?php } ?> <?php } ?>
<!-- Article content -->
<textarea rows="30" name="content" id="content" placeholder="Contenu de l'article"><?=$blogArticle->content?></textarea> <textarea rows="30" name="content" id="content" placeholder="Contenu de l'article"><?=$blogArticle->content?></textarea>
<?php if(isset($new) AND $new==1) { ?> <?php if(isset($new) AND $new==1) { ?>
<!-- Permalink settings -->
<div id="permalink_container"> <div id="permalink_container">
<label id="permalink_label" for="permalink"><?=$config['web_root_folder']?>blog/</label> <label id="permalink_label" for="permalink"><?=$config['web_root_folder']?>blog/</label>
<input type="text" name="permalink" id="permalink" placeholder="URL" required> <input type="text" name="permalink" id="permalink" placeholder="URL" required>
</div> </div>
<?php } ?> <?php } ?>
<!-- Article options -->
<label for="is_commentable"> <label for="is_commentable">
<input type="checkbox" name="is_commentable" id="is_commentable" <input type="checkbox" name="is_commentable" id="is_commentable"
<?php if($blogArticle->is_commentable == 't') { ?> <?php if($blogArticle->is_commentable == 't') { ?>
@@ -47,10 +55,12 @@
<span>Autoriser les commentaires</span> <span>Autoriser les commentaires</span>
</label> </label>
<!-- Form submission -->
<input name="submit" id="submit" type="submit" value="Envoyer"> <input name="submit" id="submit" type="submit" value="Envoyer">
</form> </form>
</section> </section>
<!-- Permalink generation -->
<script type="text/javascript"> <script type="text/javascript">
$( "#name" ).keyup(function() { $( "#name" ).keyup(function() {
permalink = $( "#name" ).val(); permalink = $( "#name" ).val();

View File

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

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Template: d.community.html --> <!-- Page: community contributions -->
<html lang="fr"> <html lang="fr">
<?php include('blocks/d.head.html'); ?> <?php include('blocks/d.head.html'); ?>
@@ -8,17 +8,20 @@
<?php include('blocks/d.nav.html'); ?> <?php include('blocks/d.nav.html'); ?>
<!-- Main content -->
<section> <section>
<h1>Contribuer au projet Kabano</h1> <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> <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> <br>
<!-- Contribution: add POI -->
<div class="action"> <div class="action">
<?php if($user->rankIsHigher("registered")) { ?> <?php if($user->rankIsHigher("registered")) { ?>
<div class="title"><i class="fas fa-home"></i> <div class="title"><i class="fas fa-home"></i>
<a href="<?=$config['rel_root_folder']?>poi/new">Ajouter un hébergement de montagne</a> <a href="<?=$config['rel_root_folder']?>poi/new">Ajouter un hébergement de montagne</a>
</div> </div>
<?php } else { ?> <?php } else { ?>
<!-- Login required -->
<div class="title" id="js_open_1"><i class="fas fa-home"></i> <div class="title" id="js_open_1"><i class="fas fa-home"></i>
<p>Ajouter un hébergement de montagne</p> <p>Ajouter un hébergement de montagne</p>
</div> </div>
@@ -28,6 +31,7 @@
<?php } ?> <?php } ?>
</div> </div>
<!-- Contribution: comments -->
<div class="action"> <div class="action">
<div class="title" id="js_open_2"><i class="fas fa-comment"></i> <div class="title" id="js_open_2"><i class="fas fa-comment"></i>
<p>Ajouter un commentaire sur un hébergement</p> <p>Ajouter un commentaire sur un hébergement</p>
@@ -37,6 +41,7 @@
</div> </div>
</div> </div>
<!-- Contribution: maintenance -->
<div class="action"> <div class="action">
<div class="title" id="js_open_3"><i class="fas fa-wrench"></i> <div class="title" id="js_open_3"><i class="fas fa-wrench"></i>
<p>Faire une demande de travaux</p> <p>Faire une demande de travaux</p>
@@ -48,6 +53,7 @@
</section> </section>
<!-- Description toggles -->
<script type="text/javascript"> <script type="text/javascript">
$( "#js_open_1" ).click(function() { $( "#js_open_1" ).click(function() {
$( "#js_openned_1" ).show(400); $( "#js_openned_1" ).show(400);

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Template: d.contact.html --> <!-- Page: contact -->
<html lang="fr"> <html lang="fr">
<?php include('blocks/d.head.html'); ?> <?php include('blocks/d.head.html'); ?>
@@ -8,9 +8,11 @@
<?php include('blocks/d.nav.html'); ?> <?php include('blocks/d.nav.html'); ?>
<!-- Contact form -->
<section> <section>
<h1>Me contacter</h1> <h1>Me contacter</h1>
<form class="form" action="<?=$config['rel_root_folder']?>contact" method="post"> <form class="form" action="<?=$config['rel_root_folder']?>contact" method="post">
<!-- Error messages -->
<?php if($error=="name") { ?> <?php if($error=="name") { ?>
<p style="color: red;">Veuillez renseigner votre nom.</p> <p style="color: red;">Veuillez renseigner votre nom.</p>
<?php } ?> <?php } ?>
@@ -33,15 +35,18 @@
<?php if($error=="none") { ?> <?php if($error=="none") { ?>
<p style="color: green;">Message bien envoyé.</p> <p style="color: green;">Message bien envoyé.</p>
<?php } ?> <?php } ?>
<!-- Fields -->
<input type="text" name="name" id="name" placeholder="Nom" value="<?=$contact['name']?>"> <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="email" name="email" id="email" placeholder="Adresse mail" value="<?=$contact['email']?>">
<input type="text" name="subject" id="subject" placeholder="Sujet" value="<?=$contact['subject']?>"> <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> <textarea name="message" id="message" rows="12" placeholder="Contenu de votre message"><?=$contact['message']?></textarea>
<!-- Anti-spam -->
<?php if($user->rankIsHigher("registered")) { ?> <?php if($user->rankIsHigher("registered")) { ?>
<input type="hidden" name="captcha" value="-2"> <input type="hidden" name="captcha" value="-2">
<input type="submit" name="submit" value="Envoyer"> <input type="submit" name="submit" value="Envoyer">
<?php } <?php }
else { ?> else { ?>
<!-- Required wait -->
<p id="captcha"> <p id="captcha">
<input type="hidden" id="captchahidden" name="captcha" value="10"> <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> <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> <!DOCTYPE html>
<!-- Template: d.index.html --> <!-- Page: homepage -->
<html lang="fr"> <html lang="fr">
<?php include('blocks/d.head.html'); ?> <?php include('blocks/d.head.html'); ?>
@@ -8,6 +8,7 @@
<?php include('blocks/d.nav.html'); ?> <?php include('blocks/d.nav.html'); ?>
<!-- Hero image -->
<aside id="indexFullW"> <aside id="indexFullW">
<div id="AScontent"> <div id="AScontent">
<div id="imglegend"> <div id="imglegend">
@@ -16,6 +17,7 @@
</div> </div>
</aside> </aside>
<!-- Load wiki content -->
<?php <?php
require_once($config['models_folder']."d.wiki.php"); require_once($config['models_folder']."d.wiki.php");
$wikiPage = new Kabano\WikiPage(); $wikiPage = new Kabano\WikiPage();
@@ -23,10 +25,12 @@
$wikiPage->md2html(); $wikiPage->md2html();
?> ?>
<!-- Main content -->
<section id="index"> <section id="index">
<h1><?=$wikiPage->name?></h1> <h1><?=$wikiPage->name?></h1>
<?php if($user->rankIsHigher('moderator')) { ?> <?php if($user->rankIsHigher('moderator')) { ?>
<!-- Edit shortcut -->
<span class="subtitle"> <span class="subtitle">
<a href="<?=$config['rel_root_folder']?>wiki/index/edit"><i class="fas fa-pencil-alt"></i> Éditer la page</a> <a href="<?=$config['rel_root_folder']?>wiki/index/edit"><i class="fas fa-pencil-alt"></i> Éditer la page</a>
</span> </span>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Template: d.map.html --> <!-- Page: map view -->
<html lang="fr"> <html lang="fr">
<?php include('blocks/d.head.html'); ?> <?php include('blocks/d.head.html'); ?>
@@ -8,15 +8,16 @@
<?php include('blocks/d.nav.html'); ?> <?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> <div id="mapid" style="height: 100%;"></div>
<!-- Credits panel -->
<div id="footer-credits" style="display: none;"> <div id="footer-credits" style="display: none;">
<i class="fa fa-times close-link" aria-hidden="true"></i> <i class="fa fa-times close-link" aria-hidden="true"></i>
<p><i id="map-credits"></i></p> <p><i id="map-credits"></i></p>
</div> </div>
<!-- Legend panel -->
<div id="footer-legend" style="display: none;"> <div id="footer-legend" style="display: none;">
<i class="fa fa-times close-link" aria-hidden="true"></i> <i class="fa fa-times close-link" aria-hidden="true"></i>
<?php foreach($poi_types as $type) { ?> <?php foreach($poi_types as $type) { ?>
@@ -26,10 +27,11 @@
<?php include('blocks/d.footer.html'); ?> <?php include('blocks/d.footer.html'); ?>
<!-- Map configuration -->
<script> <script>
var root = "<?=$config['rel_root_folder']?>"; var root = "<?=$config['rel_root_folder']?>";
// Icônes des POIs (déjà présentes dans ton système) // POI icons
window.poi_icons = { window.poi_icons = {
<?php foreach($poi_types as $type) { ?> <?php foreach($poi_types as $type) { ?>
"<?=$type[3]?>": "<?=$config['views_url']?>img/<?=$type[3]?>.svg", "<?=$type[3]?>": "<?=$config['views_url']?>img/<?=$type[3]?>.svg",

View File

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

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Template: d.poi.view.html --> <!-- Page: point of interest view -->
<html lang="fr"> <html lang="fr">
<?php include('blocks/d.head.html'); ?> <?php include('blocks/d.head.html'); ?>
@@ -19,12 +19,15 @@
$isCommentable = $poi->is_commentable == 't'; $isCommentable = $poi->is_commentable == 't';
?> ?>
<!-- Map canvas -->
<div id="mapid"></div> <div id="mapid"></div>
<!-- POI details panel -->
<div id="sticky"> <div id="sticky">
<section <?=$isArchiveOrPrivate ? 'class="archive"' : ''?>> <section <?=$isArchiveOrPrivate ? 'class="archive"' : ''?>>
<i id="slide-icon" class="fas fa-chevron-up"></i> <i id="slide-icon" class="fas fa-chevron-up"></i>
<!-- POI header -->
<h1 class="flex_line"> <h1 class="flex_line">
<span class="poi-icon-wrapper" data-tooltip="<?=htmlspecialchars($poi_types[$poi->poi_type][4] ?? '')?>"> <span class="poi-icon-wrapper" data-tooltip="<?=htmlspecialchars($poi_types[$poi->poi_type][4] ?? '')?>">
<img class="poi-icon" <img class="poi-icon"
@@ -34,6 +37,7 @@
<span><?=$poi->name?></span> <span><?=$poi->name?></span>
</h1> </h1>
<!-- POI card -->
<div class="poi-idcard"> <div class="poi-idcard">
<div class="poi-id-main"> <div class="poi-id-main">
@@ -63,6 +67,7 @@
</div> </div>
<?php if ($canViewHistory) { ?> <?php if ($canViewHistory) { ?>
<!-- History and actions -->
<span class="subtitle"> <span class="subtitle">
<?php if ($hasHistory) { ?> <?php if ($hasHistory) { ?>
<select id="PoiHistory"> <select id="PoiHistory">
@@ -116,8 +121,7 @@
?> ?>
<div id="specific_form" class="view-mode"> <div id="specific_form" class="view-mode">
<!-- Detail fields -->
<!-- AUTRES CHAMPS (texte, nombre, lien) -->
<?php foreach ($otherFields as $key => $label): ?> <?php foreach ($otherFields as $key => $label): ?>
<?php <?php
$value = $poiValues[$key] ?? null; $value = $poiValues[$key] ?? null;
@@ -150,7 +154,7 @@
<?php endforeach; ?> <?php endforeach; ?>
<!-- TABLEAU DES BOOLÉENS --> <!-- Boolean grid -->
<?php if (!empty($boolFields)): ?> <?php if (!empty($boolFields)): ?>
<?php <?php
$boolIcons = [ $boolIcons = [
@@ -162,14 +166,14 @@
?> ?>
<div class="bool-grid"> <div class="bool-grid">
<!-- Ligne des labels --> <!-- Boolean labels -->
<div class="bool-row labels"> <div class="bool-row labels">
<?php foreach ($boolFields as $key => $label): ?> <?php foreach ($boolFields as $key => $label): ?>
<div class="bool-label"><?= $label ?></div> <div class="bool-label"><?= $label ?></div>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<!-- Ligne des valeurs --> <!-- Boolean values -->
<div class="bool-row values"> <div class="bool-row values">
<?php foreach ($boolFields as $key => $label): ?> <?php foreach ($boolFields as $key => $label): ?>
<?php <?php
@@ -189,6 +193,7 @@
<?php if ($isCommentable) { ?> <?php if ($isCommentable) { ?>
<!-- Comments -->
<div id="new_comment"> <div id="new_comment">
<form class="form" action="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/new_comment" method="post"> <form class="form" action="<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/new_comment" method="post">
<div id="new_comment_label" <?=$isVisitor ? "class='sent' " : ""?>> <div id="new_comment_label" <?=$isVisitor ? "class='sent' " : ""?>>
@@ -208,6 +213,7 @@
</div> </div>
<?php if (isset($poi_comments) && $poi_comments->number > 0) { ?> <?php if (isset($poi_comments) && $poi_comments->number > 0) { ?>
<!-- Comment list -->
<div id="comments"> <div id="comments">
<?php foreach ($poi_comments->objs as $comment) { ?> <?php foreach ($poi_comments->objs as $comment) { ?>
<?php $canManageComment = $canModerate || $user->id == $comment->author; ?> <?php $canManageComment = $canModerate || $user->id == $comment->author; ?>
@@ -265,6 +271,7 @@
<?php include('blocks/d.footer.html'); ?> <?php include('blocks/d.footer.html'); ?>
</div> </div>
<!-- Map variables -->
<script> <script>
var poi_lat = <?=$poi->lat?>; var poi_lat = <?=$poi->lat?>;
var poi_lon = <?=$poi->lon?>; var poi_lon = <?=$poi->lon?>;
@@ -274,6 +281,7 @@
</script> </script>
<?php if ($canViewHistory) { ?> <?php if ($canViewHistory) { ?>
<!-- History selector -->
<script type="text/javascript"> <script type="text/javascript">
$( "#PoiHistory" ).change(function() { $( "#PoiHistory" ).change(function() {
window.location.href = "<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/"+$( this ).val(); window.location.href = "<?=$config['rel_root_folder']?>poi/<?=$poi->permalink?>/"+$( this ).val();
@@ -282,6 +290,7 @@
<?php } ?> <?php } ?>
<?php if ($canOpenCommentForm) { ?> <?php if ($canOpenCommentForm) { ?>
<!-- Comment form toggle -->
<script type="text/javascript"> <script type="text/javascript">
$( "#new_comment_label" ).click(function() { $( "#new_comment_label" ).click(function() {
$( "#new_comment_form" ).show(400); $( "#new_comment_form" ).show(400);
@@ -291,6 +300,7 @@
</script> </script>
<?php } ?> <?php } ?>
<!-- Scroll helper -->
<script type="text/javascript"> <script type="text/javascript">
$( "#slide-icon" ).click(function() { $( "#slide-icon" ).click(function() {
$( "html, body" ).animate({scrollTop: "300px"}); $( "html, body" ).animate({scrollTop: "300px"});

View File

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

View File

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

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Template: d.user.password_lost.html --> <!-- Page: password reset -->
<html lang="fr"> <html lang="fr">
<?php include('blocks/d.head.html'); ?> <?php include('blocks/d.head.html'); ?>
@@ -10,6 +10,7 @@
<section> <section>
<h1>Envoi d'un mot de passe</h1> <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"> <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) { ?> <?php if(isset($_GET['error']) AND $_GET['error']==1) { ?>
<p style="color: red;">Cette adresse mail n'existe pas.</p> <p style="color: red;">Cette adresse mail n'existe pas.</p>

View File

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

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Template: d.user.profile.html --> <!-- Page: user profile -->
<html lang="fr"> <html lang="fr">
<?php include('blocks/d.head.html'); ?> <?php include('blocks/d.head.html'); ?>
@@ -10,11 +10,13 @@
<section id="profile"> <section id="profile">
<?php if ($userProfile->id != 0) { ?> <?php if ($userProfile->id != 0) { ?>
<!-- Profile header -->
<h1><?=$userProfile->name?></h1> <h1><?=$userProfile->name?></h1>
<?php if($user->rankIsHigher("moderator") || $user->id == $userProfile->id) { ?> <?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> <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 } ?> <?php } ?>
<article> <article>
<!-- Profile info -->
<div id="profilepart"> <div id="profilepart">
<?php if(isset($mailsent) AND $mailsent==1) { ?> <?php if(isset($mailsent) AND $mailsent==1) { ?>
<p style="color: #006600;">Le message a bien été envoyé.</p> <p style="color: #006600;">Le message a bien été envoyé.</p>
@@ -49,6 +51,7 @@
<div style="clear:both;"></div> <div style="clear:both;"></div>
</div> </div>
<?php if ($userProfile->id != $user->id) { ?> <?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" > <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> <textarea rows="12" name="message" id="message" placeholder="Votre message"></textarea>
<p><i>Votre adresse email sera transmise à votre destinataire.</i></p> <p><i>Votre adresse email sera transmise à votre destinataire.</i></p>

View File

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

View File

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

View File

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