initial commit after server failure
This commit is contained in:
7
views/blocks/d.footer.html
Executable file
7
views/blocks/d.footer.html
Executable file
@@ -0,0 +1,7 @@
|
||||
<footer>
|
||||
<div id="footernav">
|
||||
<a href="<?=$config['rel_root_folder']?>wiki/legal">Mentions Légales</a> —
|
||||
<a href="<?=$config['rel_root_folder']?>contact">Contact</a>
|
||||
</div>
|
||||
<p><i>Applications mobiles bientôt disponibles.</i></p>
|
||||
</footer>
|
||||
46
views/blocks/d.head.html
Executable file
46
views/blocks/d.head.html
Executable file
@@ -0,0 +1,46 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, height=device-height">
|
||||
<link rel="shortcut icon" href="<?=$config['views_url']?>img/favicon.png">
|
||||
<? if (isset($head['css'])) {
|
||||
foreach(explode(";",$head['css']) as $css) { ?>
|
||||
<link rel="stylesheet" href="<?=$config['views_url']?>css/<?=$css?>"/>
|
||||
<? }
|
||||
}
|
||||
else { ?>
|
||||
<link rel="stylesheet" href="<?=$config['views_url']?>css/d.index.css"/>
|
||||
<? } ?>
|
||||
<link rel="stylesheet" href="<?=$config['views_url']?>third/font-awesome-4.7.0/css/font-awesome.min.css"/>
|
||||
|
||||
<script type="text/javascript" src="<?=$config['views_url']?>third/jquery-3.1.1.min.js"></script>
|
||||
<? if (isset($head['third'])) {
|
||||
foreach(explode(";",$head['third']) as $third) { ?>
|
||||
<script type="text/javascript" src="<?=$config['views_url']?>third/<?=$third?>"></script>
|
||||
<? }
|
||||
} ?>
|
||||
<script type="text/javascript" src="<?=$config['views_url']?>js/d.header.js"></script>
|
||||
<? if (isset($head['js'])) {
|
||||
foreach(explode(";",$head['js']) as $js) { ?>
|
||||
<script type="text/javascript" src="<?=$config['views_url']?>js/<?=$js?>"></script>
|
||||
<? }
|
||||
} ?>
|
||||
|
||||
<? if (isset($head['title'])) { ?>
|
||||
<title><?=$head['title']?> — Kabano</title>
|
||||
<? }
|
||||
else { ?>
|
||||
<title>Cabanes et bivouac en montagne</title>
|
||||
<? } ?>
|
||||
<? if (isset($head['description'])) { ?>
|
||||
<meta name="description" content="<?=$head['description']?>">
|
||||
? }
|
||||
else { ?>
|
||||
<meta name="description" content="Annuaire collaboratif des hébergements pour les activitées de plein air : cabanes, refuges, campings...">
|
||||
<? } ?>
|
||||
<? if (isset($head['keywords'])) { ?>
|
||||
<meta name="keywords" content="<?=$head['keywords']?>">
|
||||
<? }
|
||||
else { ?>
|
||||
<meta name="keywords" content="kabano, huts, mountain, hiking, cabanes, refuges, bivouac, montagne, randonnée">
|
||||
<? } ?>
|
||||
</head>
|
||||
52
views/blocks/d.nav.html
Executable file
52
views/blocks/d.nav.html
Executable file
@@ -0,0 +1,52 @@
|
||||
<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>
|
||||
<ul>
|
||||
<li class="on-bar"><a class="on-bar" href="<?=$config['rel_root_folder']?>map">Carte</a></li>
|
||||
<li class="on-bar"><a class="on-bar" href="<?=$config['rel_root_folder']?>search">Recherche</a></li>
|
||||
<li class="on-bar"><a class="on-bar" href="<?=$config['rel_root_folder']?>news">Nouveautés</a></li>
|
||||
<li class="on-bar"><a class="on-bar" href="<?=$config['rel_root_folder']?>community">Contribuer</a></li>
|
||||
<li class="on-bar has-sub">
|
||||
<? if (isset($user->avatar) AND $user->avatar=='t') { ?>
|
||||
<a class="on-bar" href="#"><img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$user->id?>_s.jpg"></a>
|
||||
<? } elseif (isset($user->avatar) AND $user->avatar=='f') { ?>
|
||||
<a class="on-bar" href="#"><i class="icon fa fa-user-secret"></i></a>
|
||||
<? } else { ?>
|
||||
<a class="on-bar" href="#"><i class="icon fa fa-user"></i></a>
|
||||
<? } ?>
|
||||
<ul>
|
||||
<? if($user->role == 0) { ?>
|
||||
<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>
|
||||
<li><a href="<?=$config['rel_root_folder']?>user/signin">S'inscrire</a></li>
|
||||
<? } else { ?>
|
||||
<li><a href="<?=$config['rel_root_folder']?>user/p">Mon profil</a></li>
|
||||
<li><a href="<?=$config['rel_root_folder']?>user/member_list">Liste des membres</a></li>
|
||||
<? if($user->role >= 800) { ?>
|
||||
<li><a href="<?=$config['rel_root_folder']?>admin">Administration</a></li>
|
||||
<? } ?>
|
||||
<li><a href="<?=$config['rel_root_folder']?>user/logout">Se déconnecter</a></li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="on-bar has-sub"><a class="on-bar" href="#"><i class="icon fa fa-question"></i></a>
|
||||
<ul>
|
||||
<li><a href="<?=$config['rel_root_folder']?>wiki/help">Aide</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']?>wiki/api">API Développeurs</a></li>
|
||||
<li><a href="<?=$config['rel_root_folder']?>wiki/about">À propos</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user