templates/public/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block css_plugins %}
  3.     <link href="{{ asset('public/plugins/datepicker/css/bootstrap-datepicker.min.css') }}" rel="stylesheet"/>
  4.     <link href="{{ asset('public/plugins/slickcarousel/slick.css') }}" rel="stylesheet"/>
  5.     <link href="{{ asset('public/plugins/slickcarousel/slick-theme.css') }}" rel="stylesheet"/>
  6. {% endblock %}
  7. {% block title %}
  8.     {% trans %} homeh1 {% endtrans %}
  9. {% endblock %}
  10. {% block body %}
  11. {# locale js variable #}
  12. <script>
  13.     var erasmusLocale = '{{ lang_locale }}';
  14. </script>
  15. {% include 'public/_main_menu.html.twig' with {'menuclass': 'mainpage'} %}
  16. <div class="container-fluid homebanner">
  17.     {% include 'public/_home_search.html.twig' %}
  18. </div>
  19. {# latest listings #}
  20. {% if rooms | length == 12 %}
  21.     <p class="text-center pad2_20">
  22.         {% trans %} latestlistings {% endtrans %}: {% trans %} rooms {% endtrans %} <br>
  23.         <i class="fas fa-arrows-alt-h"></i>
  24.     </p>
  25.     {% include 'public/_home_latest_listings.html.twig' with {'listing':rooms, 'listingtype':'room'} %}
  26. {% endif %}
  27. {# latest listings #}
  28. {% if flats | length == 12 %}
  29.     <p class="text-center pad2_20">
  30.         {% trans %} latestlistings {% endtrans %}: {% trans %} flats {% endtrans %} <br>
  31.         <i class="fas fa-arrows-alt-h"></i>
  32.     </p>
  33.     {% include 'public/_home_latest_listings.html.twig' with {'listing':flats, 'listingtype':'flat'} %}
  34. {% endif %}
  35. {# end latest listings #}
  36. {% if lang_locale == 'es' %}
  37.     {% include 'public/content/_home_es.html.twig' %}
  38. {% endif %}
  39. {% include 'public/_footer.html.twig' %}
  40. {% include 'public/modals/_preview_modal.html.twig' %}
  41. {% endblock %}
  42. {% block custom_js %}
  43.     <script src="{{ asset('public/plugins/datepicker/js/bootstrap-datepicker.min.js') }}"></script>
  44.     <script src="{{ asset('public/plugins/slickcarousel/slick.js') }}"></script>
  45.     <script src="{{ asset('public/js/homepage.js') }}"></script>
  46. {% endblock %}