templates/front/layout.html.twig line 25

Open in your IDE?
  1. {% extends '/base.html.twig' %}
  2. {% block seotitle %}{{ parent() }}{% endblock %}
  3. {% block seodesc %}{{ parent() }}{% endblock %}
  4. {% block microformat %}{{ parent() }}{% endblock %}
  5. {% if id is not defined %} {% set id = null %}{% endif %}
  6. {% if datearrivee is not defined %} {% set datearrivee = null %}{% endif %}
  7. {% if duree is not defined %} {% set duree = null %}{% endif %}
  8. {% if nbadultes is not defined %} {% set nbadultes = null %}{% endif %}
  9. {% if nbenfants is not defined %} {% set nbenfants = null %}{% endif %}
  10. {% block stylesheets %}
  11.     {{ parent() }}
  12. {% endblock %}
  13. {% block body %}
  14.     {% block top %}
  15.         <nav id="menuPrincipal" class="navbar navbar-fixed-top navbar-fixed-top2{% if searchBloc is defined and searchBloc %} searchBloc{% endif %}">
  16.             <div id="topnav">
  17.                 <div class="container text-right">
  18.                 {{ render(controller('App\\Controller\\PageController::menu', {'code': 'nav_top'})) }}
  19.                 </div>
  20.             </div>
  21.             {% block menu %}
  22.                 {% set route_name = app.request.attributes.get('_route') %}
  23.                 {% set route_params = app.request.attributes.get('_route_params') %}
  24.                 {% set params = null %}
  25.                 {% if route_params is not null and app.request.query.all is iterable  %}
  26.                     {% set params = route_params|merge(app.request.query.all) %}
  27.                 {% endif %}
  28.                 {{ render(controller('App\\Controller\\DefaultController::menu', {}, {'route_name': route_name, 'params': params})) }}
  29.             {% endblock %}
  30.             {% block titre_produit %}{% endblock %}
  31.             {% if searchBloc is defined and searchBloc %}
  32.             {% block recherche %}
  33.             {% include "/front/Default/recherche.html.twig"  with {'id': id, 'datearrivee': datearrivee, 'duree': duree, 'nbadultes': nbadultes, 'nbenfants': nbenfants } %}
  34.             {% endblock %}
  35.             {% endif %}
  36.         </nav>
  37.         
  38.     {% endblock %}
  39.     <main {% if page_code is defined and page_code == "home" %}id="home"{% else %}id="page"{% endif %}>
  40.         {% for flashbag in app.session.flashbag.all() %}
  41.             {% for msg in flashbag %}
  42.                 {% if msg.type is defined %}
  43.                     <div class="alert alert-{{ msg.type }}">
  44.                         <strong>{{ msg.title }}</strong>
  45.                         <br/>{{ msg.message |raw }}
  46.                     </div>
  47.                 {% endif %}
  48.                 {% endfor %}
  49.         {% endfor %}
  50.         
  51.         {% block contenu %}
  52.         
  53.         {% endblock %}
  54.     </main>
  55.     
  56.     {% block footer %}
  57.         {{ render(controller('App\\Controller\\DefaultController::footer')) }}
  58.     {% endblock %}
  59. {% endblock %}
  60. {% block javascripts %} 
  61.     {{ parent() }}
  62.     <script type="text/javascript" src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
  63.     <script type="text/javascript" src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>
  64.     {% set resas = app.session.get("resas") %}
  65.     {% set travellers = app.session.get("travellers") %}
  66. {% endblock %}