templates/WebBundle/views/base.html.twig line 1

Open in your IDE?
  1. {% if app.user %}
  2.     {% set location_map_type = (app.user.locationMapType ?? 'leaflet')|trim|lower %}
  3. {% endif %}
  4. <!DOCTYPE html>
  5. <!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  6. <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
  7. <!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
  8. <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  9.     <head>
  10.         <meta charset="utf-8">
  11.         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  12.         {% set pageTitle = '' %}
  13.         <title>{% if pageTitle %} TROPICIEL &raquo; {{ pageTitle|raw }} {% else %}TROPICIEL {% endif%}</title>
  14.         <meta name="description" content="">
  15.         <meta name="viewport" content="width=device-width">
  16.         {% include 'WebBundle/views/Default/assets/stylesheets.html.twig' %}
  17.         {% block extrastylesheets %} {% endblock %}
  18.     </head>
  19.     <body>
  20.     {% if app.user %}
  21.         {% include "WebBundle/views/js-translations.html.twig" %}
  22.     {% endif %}
  23.     <script type="text/javascript">
  24.     var apiUrl = "{{ api_url }}";
  25.     var newApiUrl = "{{ new_api_url }}";
  26.     var newApiUrlPath = "{{ new_api_url_path }}";
  27.     {% if app.user %}
  28.     var apiKey = "{{ app.user.apiKey }}";
  29.         var exportUrl = "{{ path('export') }}";
  30.         var id2_name = "{{ app.user.id2Name }}";
  31.         var id3_name = "{{ app.user.id3Name }}";
  32.         var lang = '{{ app.request.locale }}';
  33.     {% endif %}
  34.     </script>
  35.     {% set isHome = app.request.get('_route') == 'homepage' ? true : false %}
  36. {#        {% set blockHeader = block('header') %}#}
  37. {#        {% set blockMenu = block('menu') %}#}
  38. {#        #}
  39.         {% block alerts %}{% endblock %}
  40.         <div class="container-fluid">
  41.             <div class="row">
  42.                 {% include "WebBundle/views/Default/partials/top-bar.html.twig" %}
  43.                 <div class="col-xs-12 m-b-3" id="body-wrapper" class="{{ isHome ? 'home' : '' }}">
  44.                     {% block content %} {% endblock %}
  45.                 </div>
  46.             </div>
  47.         </div>
  48.     </body>
  49.     {% include "WebBundle/views/Default/assets/javascripts.html.twig" %}
  50.     {% block extrascripts %} {% endblock %}
  51.     <script type="text/javascript">
  52.         var _gaq = _gaq || [];
  53.         _gaq.push(['_setAccount', '{{ ga_tracking }}']);
  54.         _gaq.push(['_trackPageview']);
  55.         (function() {
  56.             var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  57.             ga.src = ('https:' === document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  58.             var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  59.         })();
  60.     </script>
  61.     {% if app.user %}
  62.         {% include "WebBundle/views/Default/partials/js-templates.html.twig" %}
  63.     {% endif %}
  64.   </body>
  65. </html>