templates/layout/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Jewelry Rewards :: {% block title %}{% endblock %}</title>
  7. <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('build/images/favicon/apple-touch-icon.png') }}">
  8. <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('build/images/favicon/favicon-32x32.png') }}">
  9. <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('build/images/favicon/favicon-16x16.png') }}">
  10. <link rel="manifest" href="{{ asset('build/images/favicon/site.webmanifest') }}">
  11. <link rel="mask-icon" href="{{ asset('build/images/favicon/safari-pinned-tab.svg') }}" color="#5bbad5">
  12. <link rel="shortcut icon" href="{{ asset('build/images/favicon/favicon.ico') }}">
  13. <meta name="msapplication-TileColor" content="#da532c">
  14. <meta name="msapplication-config" content="{{ asset('build/images/favicon/browserconfig.xml') }}">
  15. <meta name="theme-color" content="#ffffff">
  16. {% block stylesheets %}
  17. {{ encore_entry_link_tags('app') }}
  18. {% endblock %}
  19. {% block javascripts %}
  20. {{ encore_entry_script_tags('app') }}
  21. {% endblock %}
  22. </head>
  23. <body>
  24. {% include('layout/header.html.twig') %}
  25. {% set flashMessages = [] %}
  26. {% for type, messages in app.flashes(['success', 'danger', 'warning']) %}
  27. {% for message in messages %}
  28. {% set flashMessages = flashMessages|merge([{type, message}]) %}
  29. {% endfor %}
  30. {% endfor %}
  31. {% if flashMessages|length > 0 %}
  32. <div class="container mt-3">
  33. <div class="row flash-messages">
  34. <div class="col-12">
  35. {% for flashItem in flashMessages %}
  36. <div class="alert alert-{{ flashItem.type }}">
  37. {{ flashItem.message }}
  38. </div>
  39. {% endfor %}
  40. </div>
  41. </div>
  42. </div>
  43. {% endif %}
  44. {% if app.request.get('_route') == 'homepage' %}
  45. {% include "layout/hero.html.twig" with {'hero': block("hero")} %}
  46. {% endif %}
  47. <main class="{% if app.request.get('_route') != 'homepage' %}inner-page{% endif %}">
  48. <div class="container">
  49. {% block body %}{% endblock %}
  50. </div>
  51. </main>
  52. {% include('layout/footer.html.twig') %}
  53. </body>
  54. </html>