{% if app.user %}
{% set location_map_type = (app.user.locationMapType ?? 'leaflet')|trim|lower %}
{% endif %}
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{% set pageTitle = '' %}
<title>{% if pageTitle %} TROPICIEL » {{ pageTitle|raw }} {% else %}TROPICIEL {% endif%}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
{% include 'WebBundle/views/Default/assets/stylesheets.html.twig' %}
{% block extrastylesheets %} {% endblock %}
</head>
<body>
{% if app.user %}
{% include "WebBundle/views/js-translations.html.twig" %}
{% endif %}
<script type="text/javascript">
var apiUrl = "{{ api_url }}";
var newApiUrl = "{{ new_api_url }}";
var newApiUrlPath = "{{ new_api_url_path }}";
{% if app.user %}
var apiKey = "{{ app.user.apiKey }}";
var exportUrl = "{{ path('export') }}";
var id2_name = "{{ app.user.id2Name }}";
var id3_name = "{{ app.user.id3Name }}";
var lang = '{{ app.request.locale }}';
{% endif %}
</script>
{% set isHome = app.request.get('_route') == 'homepage' ? true : false %}
{# {% set blockHeader = block('header') %}#}
{# {% set blockMenu = block('menu') %}#}
{# #}
{% block alerts %}{% endblock %}
<div class="container-fluid">
<div class="row">
{% include "WebBundle/views/Default/partials/top-bar.html.twig" %}
<div class="col-xs-12 m-b-3" id="body-wrapper" class="{{ isHome ? 'home' : '' }}">
{% block content %} {% endblock %}
</div>
</div>
</div>
</body>
{% include "WebBundle/views/Default/assets/javascripts.html.twig" %}
{% block extrascripts %} {% endblock %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ ga_tracking }}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' === document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{% if app.user %}
{% include "WebBundle/views/Default/partials/js-templates.html.twig" %}
{% endif %}
</body>
</html>