Community portal page creation
This commit is contained in:
parent
7beb1f25ad
commit
529a261351
|
@ -20,12 +20,15 @@ $controller->prefix = "d.";
|
||||||
$notfound = 0;
|
$notfound = 0;
|
||||||
$session = 1;
|
$session = 1;
|
||||||
|
|
||||||
|
if($controller->splitted_url[0]=="") $controller->splitted_url[0]="index";
|
||||||
|
|
||||||
// Routing to the correct page from the correct link
|
// Routing to the correct page from the correct link
|
||||||
switch ($controller->splitted_url[0])
|
switch ($controller->splitted_url[0])
|
||||||
{
|
{
|
||||||
case "index": case "" :
|
case "index":
|
||||||
|
case "community" :
|
||||||
$controller->name="";
|
$controller->name="";
|
||||||
$view->name="index";
|
$view->name=$controller->splitted_url[0];
|
||||||
break;
|
break;
|
||||||
case "user" :
|
case "user" :
|
||||||
$controller->name="users";
|
$controller->name="users";
|
||||||
|
|
|
@ -346,4 +346,40 @@ footer a:hover {
|
||||||
section .thumb {
|
section .thumb {
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
border: 1px solid #aaa;
|
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;
|
||||||
}
|
}
|
|
@ -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>É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>
|
Loading…
Reference in New Issue