hellofacteurV1/www/themes/seb/header.php

153 lines
8.6 KiB
PHP
Executable File

<?php
if(!defined('SITE_URL')) exit;
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html>
<html lang="<?php echo SITE_LANG;?>">
<head>
<meta charset="<?php if(UTF8_OK===true) echo "utf-8"; else echo "iso-8859-1";?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php if(isset($header_author)) : ?>
<meta content="<?=$header_author;?>" name="author">
<?php endif;?>
<?php if(isset($header_description)) : ?>
<meta content="<?=$header_description;?>" name="description">
<?php endif;?>
<?php if(isset($header_robots)) : ?>
<meta content="<?=$header_robots;?>" name="robots">
<?php endif;?>
<title><?=$header_title;?></title>
<!-- Bootstrap -->
<link href="<?=SITE_URL;?>/themes/seb/assets/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="<?=SITE_URL;?>/themes/seb/assets/css/style.css" rel="stylesheet">
<link href="<?=SITE_URL;?>/themes/seb/assets/css/jquery.slitslider.css" rel="stylesheet">
<link href="<?=SITE_URL;?>/themes/seb/assets/css/social-icons.css" rel="stylesheet">
<link href="<?=SITE_URL;?>/themes/seb/assets/css/linecons.css" rel="stylesheet">
<link href="<?=SITE_URL;?>/themes/seb/assets/css/responsive.css" rel="stylesheet">
<link href="<?=SITE_URL;?>/themes/seb/assets/css/font-awesome.min.css" rel="stylesheet">
<!--<link href="<?=SITE_URL;?>/themes/seb/assets/css/jquery-ui.min.css" rel="stylesheet">-->
<link rel="stylesheet" href="<?=SITE_URL;?>/themes/seb/assets/css/pickadate/default.css" id="theme_base">
<link rel="stylesheet" href="<?=SITE_URL;?>/themes/seb/assets/css/pickadate/default.date.css" id="theme_date">
<link rel="stylesheet" href="<?=SITE_URL;?>/themes/seb/assets/css/pickadate/default.time.css" id="theme_time">
<link href="<?=SITE_URL;?>/themes/seb/assets/img/icone.png" type="image/png" rel="icon">
<link href="<?=SITE_URL;?>/favicon.ico" rel="shortcut icon">
<!-- Web Fonts -->
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700.900,300italic,400italic' rel='stylesheet' type='text/css'>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="<?=SITE_URL;?>/themes/seb/assets/js/modernizr.custom.79639.js"></script>
<noscript>
<link href="<?=SITE_URL;?>/themes/seb/assets/css/no-js.css" rel="stylesheet">
</noscript>
<?php
if(isset($header_css))
{
foreach($header_css as $css_info)
echo "<link href=\"".$css_info["url"]."\" rel=\"stylesheet\" />\n";
}
if(isset($header_flux))
{
foreach($header_flux as $flux_info)
echo "<link href=\"".$flux_info["url"]."\" rel=\"alternate\" title=\"".$flux_info["titre"]."\" type=\"application/".$flux_info["type"]."+xml\" />\n";
}
?>
</head>
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<!-- Fixed Navbar -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php
$url_logo=SITE_URL."/themes/seb/assets/img/logo-hello-facteur.png";
$mois=date('m');
$jour=intval(date('d'));
if(($mois=="12")&&($jour>10)||($mois=="01")&&($jour<7))
$url_logo=SITE_URL."/themes/seb/assets/img/logo-hello-facteur-noel.png";
?>
<a class="navbar-brand" href="<?=SITE_URL;?>"><img src="<?=$url_logo;?>" alt="Hello facteur (logo)."></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav navbar-right">
<?php
if(isset($_SESSION["statut"]))
{
if($_SESSION["statut"]=="utilisateur")
{
?>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class='glyphicon glyphicon-list-alt'></span> <span class="fa fa-caret-down"></span> Mon abonnement.</a>
<ul class="dropdown-menu dropdown-user" title="Mes abonnements">
<li><a href="<?=PAGE_ACCUEIL;?>" title="Page d'accueil"><span class='glyphicon glyphicon-home'></span> Ma page d'accueil.</a></li>
<li><a href="<?=PAGE_ABO_LISTE;?>" title="Gérer mes abonnements : sources d'infos, jours de réception, etc."><span class='glyphicon glyphicon-edit'></span> Gérer mes abonnements.</a></li>
<li><a href="<?=PAGE_ABSENCES_LISTE;?>" title="Définir des périodes durant lesquelles vous ne recevrez plus vos abonnements."><span class='glyphicon glyphicon-calendar'></span> Périodes d'absence.</a></li>
<li class="divider"></li>
<li><a href="<?=PAGE_REPERTOIRE_ACCUEIL;?>" title="Chercher une nouvelle source d'infos à laquelle m'abonner."><span class='glyphicon glyphicon-plus'></span> Nouvel abonnement.</a></li>
<li><a href="<?=PAGE_ABSENCE_MAJ;?>" title="Ajoutez une période d'absence."><span class='glyphicon glyphicon-plus'></span> Période d'absence.</a></li>
</ul>
</li>
<?php
}
elseif($_SESSION["statut"]=="administrateur")
{
?>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="fa fa-tasks fa-fw"></span> <span class="fa fa-caret-down"></span> Gérer.</a>
<ul class="dropdown-menu dropdown-user" title="Les hubs.">
<li><a href="<?=PAGE_MAJ_HUB;?>" title="Gérer les hubs."><span class="fa fa-edit"></span> Les hubs.</a></li>
<li><a href="<?=PAGE_MAJ_POSTS;?>" title="Gérer les posts."><span class="fa fa-edit"></span> Les posts.</a></li>
<li><a href="<?=PAGE_MAJ_FLUX;?>" title="Gérer les flux."><span class="fa fa-edit"></span> Les flux.</a></li>
<li><a href="<?=PAGE_MAJ_SOURCE;?>" title="Gérer les sources de flux."><span class="fa fa-edit"></span> Les sources.</a></li>
<li><a href="<?=PAGE_MAJ_RUBRIQUES;?>" title="Gérer les rubriques de flux."><span class="fa fa-edit"></span> Les rubriques.</a></li>
<li><a href="<?=PAGE_MAJ_ANNONCES;?>" title="Gérer les annonces promotionnelles."><span class="fa fa-edit"></span> Les annonces.</a></li>
<li><a href="<?=PAGE_MAJ_COMPTES;?>" title="Gérer les comptes utilisateur."><span class="fa fa-edit"></span> Les utilisateurs.</a></li>
</ul>
</li>
<?php
}
?>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="fa fa-user fa-fw"></span> <span class="fa fa-caret-down"></span> Mon compte.</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="<?=PAGE_MAJ_INFOS_PERSO;?>" title="Modifier mes infos persos (pseudo, présentation, photo...)"><span class='glyphicon glyphicon-edit'></span> Mon profil (présentation, photo...).</a></li>
<li><a href="<?=PAGE_MAJ_IDENTIFIANT;?>" title="Modifier mes identifiants (email et mot de passe)"><span class='glyphicon glyphicon-edit'></span> Mes identifiants (email, mot de passe).</a></li>
<li><a href="<?=PAGE_MAJ_INFOS_PERSO;?>#compte_suppr" title="Supprimer mon compte Hello facteur"><span class='glyphicon glyphicon-edit'></span> Supprimer mon compte.</a></li>
<li class="divider"></li>
<li><a href="<?=PAGE_DECONNEXION;?>" title="Me déconnecter du site" ><i class="fa fa-sign-out fa-fw"></i> Me déconnecter.</a></li>
</ul>
</li>
<?php
}
else
{
?>
<!-- Hidden li included to remove active class from about link when scrolled up past about section -->
<li class="page-scroll"><a href="<?=PAGE_INSCRIPTION;?>" title="Créer votre compte gratuitement" rel='nofollow'><span class="fa fa-edit"></span> Créer mon compte.</a></li>
<li class="page-scroll"><a href="<?=PAGE_CONNEXION;?>" title="Déjà abonné ? connectez-vous !" rel='nofollow'><span class="glyphicon glyphicon-user"></span> Me connecter.</a></li>
<?php
}
?>
<!-- <li class="page-scroll"><a href="<?=PAGE_AJOUT_POST;?>" title="Proposer une actualité locale"><span class="fa fa-edit"></span> Proposer une actualité.</a></li>
<li class="page-scroll"><a href="<?=SITE_URL;?>/blog/" title="Le blog du facteur"><span class="glyphicon glyphicon-pencil"></span> Le Blog.</a></li>-->
<li class="page-scroll"><a href="<?=SITE_URL;?>/blog/faq.html" title="Comment utiliser Hello facteur ? et autres questions."><span class="glyphicon glyphicon-question-sign"></span> Aide.</a></li>
<li class="page-scroll"><a href="<?=PAGE_CONTACT;?>" rel='nofollow'><span class="fa fa-envelope fa-fw"></span> Contact.</a></li>
</ul>
</div><!-- /navbar-collapse -->
</div><!-- /container -->
</nav><!-- /navbar -->
<?php
if(!isset($no_conteneur))
echo "<section id='contenu' class='aboutwrap'><div class='container'>";