71 lines
3.1 KiB
Twig
71 lines
3.1 KiB
Twig
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{% block title "Ğ1-Marché " %}</title>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"
|
|
integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
|
|
<link rel="shortcut icon" type="image/x-icon" href="\images\favicon.ico">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Kalam&display=swap">
|
|
<link rel="stylesheet" href="\css\style.css">
|
|
<style>
|
|
body {
|
|
padding-top: 5rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="fond">
|
|
|
|
<nav class="navbar fixed-top navbar-expand-sm navbar-dark bg-dark">
|
|
<a class="navbar-brand" href="#">Ğ1-Marché</a>
|
|
<ul class="navbar-nav mr-auto">
|
|
<li class="nav-item">
|
|
<a class="nav-link {% if regions %} active{% endif %}" href="{{ path('gmarche.index') }}">Accueil</a>
|
|
</li>
|
|
{% if antenne_name %}
|
|
<button class="btn-custom">Produits</button>
|
|
{% endif %}
|
|
<li class="nav-item">
|
|
<a class="nav-link {% if explodeUrl()[1]=='contact' %} active{% endif %}" href="{{ path('contact') }}">Qui sommes-nous ?</a>
|
|
</li>
|
|
</ul>
|
|
<div class="navbar-nav">
|
|
<div class="navbar-text" style="color:lightgray;">
|
|
{{ "now"|date('d/m/y') }}
|
|
</div>
|
|
{% if current_user() %}
|
|
<div class="navbar-text"><span><img src="\avatar_user.png" width="22" height="22" /></span> {{ current_user().username }}</div>
|
|
|
|
<form method="post" action="{{ path('auth.logout') }}">
|
|
<!-- csrf_input() }}-->
|
|
<button class="btn btn-danger">Se déconnecter</button>
|
|
</form>
|
|
{% else %}
|
|
<div class="nav-item active">
|
|
<a class="nav-link" href="{{ path('auth.login') }}">Se connecter</a>
|
|
</div>
|
|
<div class="nav-item active">
|
|
<a class="nav-link" href="{{ path('account.signup') }}">S'inscrire</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container">
|
|
{% if flash('success') %}
|
|
<div class="alert alert-success">
|
|
{{ flash('success') }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!--<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>-->
|
|
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
|
{% block body %}{% endblock %}
|
|
|
|
</div><!-- /.container -->
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
|
|
|
|
</body>
|
|
</html> |