Ajout intermédiaire #1

Merged
leo merged 17 commits from poi-dev into master 2020-11-10 09:59:48 +00:00
3 changed files with 94 additions and 2 deletions
Showing only changes of commit 529a261351 - Show all commits

View File

@ -20,12 +20,15 @@ $controller->prefix = "d.";
$notfound = 0;
$session = 1;
if($controller->splitted_url[0]=="") $controller->splitted_url[0]="index";
// Routing to the correct page from the correct link
switch ($controller->splitted_url[0])
{
case "index": case "" :
case "index":
case "community" :
$controller->name="";
$view->name="index";
$view->name=$controller->splitted_url[0];
break;
case "user" :
$controller->name="users";

View File

@ -346,4 +346,40 @@ footer a:hover {
section .thumb {
margin: 0 10px;
border: 1px solid #aaa;
}
/*********************************/
/** Community portal page **/
/*********************************/
.action {
clear: both;
margin: 50px auto 0 auto;
width: 90%;
background: #efefef;
border: 1px solid #ccc;
border-bottom: 3px solid #ccc;
}
.action p {
margin: 0;
}
.action .title {
background: #ccc;
cursor: pointer;
font-weight: 500;
font-size: 1.1em;
}
.action .title a, .action .title p {
padding: 15px 10px;
margin: 0;
color: inherit;
display: block;
}
.action .description {
display: none;
}
.action .description p {
padding: 10px 20px;
}

53
views/d.community.html Executable file
View File

@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="fr">
<? include('blocks/d.head.html'); ?>
<body>
<? include('blocks/d.nav.html'); ?>
<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="/wiki/licences">nos licences libres</a>.</p>
<br>
<div class="action">
<div class="title">
<a href="#">Ajouter un hébergement de montagne</a>
</div>
</div>
<div class="action">
<div class="title" id="js_open_1">
<p>Ajouter un commentaire sur un hébergement</p>
</div>
<div class="description" id="js_openned_1">
<p>Rendez-vous sur la page hébergement où vous souhaitez laisser un commentaire, puis ajoutez un commentaire en bas de page.</p>
</div>
</div>
<div class="action">
<div class="title" id="js_open_2">
<p>Faire une demande de travaux</p>
</div>
<div class="description" id="js_openned_2">
<p>Cette fonctionnalité n'est pas encore disponible.</p>
</div>
</div>
</section>
<script type="text/javascript">
$( "#js_open_1" ).click(function() {
$( "#js_openned_1" ).show(400);
});
$( "#js_open_2" ).click(function() {
$( "#js_openned_2" ).show(400);
});
</script>
<? include('blocks/d.footer.html'); ?>
</body>
</html>