templates/front/blank_layout.html.twig line 73

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. {% include "front/common/layout.head_common_meta_link.html.twig" %}
  5. {% if fileExists('favicon/favicon-16x16.ico') %}
  6. <link rel="icon" type="image/x-icon" sizes="16x16"
  7. href="{{ path('static_file_folder', {'folder': 'favicon', 'fileName': 'favicon-16x16.ico'}) }}?v={{ version }}">
  8. {% endif %}
  9. {% if fileExists('favicon/favicon-32x132.png') %}
  10. <link rel="icon" type="image/png" sizes="32x32"
  11. href="{{ path('static_file_folder', {'folder': 'favicon', 'fileName': 'favicon-32x132.png'}) }}?v={{ version }}">
  12. {% endif %}
  13. {% if fileExists('favicon/favicon-96x96.png') %}
  14. <link rel="icon" type="image/png" sizes="96x96"
  15. href="{{ path('static_file_folder', {'folder': 'favicon', 'fileName': 'favicon-96x96.png'}) }}?v={{ version }}">
  16. {% endif %}
  17. {% if fileExists('favicon/favicon-180x180.png') %}
  18. <link rel="icon" type="image/png" sizes="180x8180"
  19. href="{{ path('static_file_folder', {'folder': 'favicon', 'fileName': 'favicon-180x180.png'}) }}?v={{ version }}">
  20. {% endif %}
  21. <title>{{ platform_global('seo.title') }}</title>
  22. {% block styles_global_vendor %}
  23. {# Styles spécifique à une page #}
  24. {% endblock styles_global_vendor %}
  25. {# Styles commun à l'ensemble du site #}
  26. {% if platform_front('theme') and platform_front('theme') not in ['', null] %}
  27. <link rel="stylesheet"
  28. href="{{ asset('build/assets/templates/' ~ platform_front('theme') ~'/scss/main.css') }}?v={{ version }}">
  29. {% endif %}
  30. <link rel="stylesheet" href="{{ path('front_common_css_custom') }}">
  31. {% block styles %}
  32. {# Styles spécifique à une page #}
  33. {% endblock styles %}
  34. {# Style global venant du fichier platform.[projet].yaml, doit avoir la priorité absolue sur tous les autres #}
  35. {% if platform_front('css_config.custom_css_files') %}
  36. {% for file in platform_front('css_config.custom_css_files') %}
  37. <link rel="stylesheet" href="{{ asset(file) }}?v={{ version }}">
  38. {% endfor %}
  39. {% endif %}
  40. {% if platform_front('common.custom_css') %}
  41. <style rel="stylesheet">
  42. {{ platform_front('common.custom_css')|raw }}
  43. </style>
  44. {% endif %}
  45. {% block styles_custom %}
  46. {# Styles spécifique à une page et prioritaire par rapport au css global venant de platform.[projet].yaml #}
  47. {% endblock styles_custom %}
  48. {% include "front/common/layout.head_common_js.html.twig" %}
  49. <script>
  50. const cdn = '{{ cdn }}';
  51. </script>
  52. </head>
  53. <body class="{% block bodyclass %}document{% endblock %}">
  54. <div class="wrapper">
  55. {% block header %}{% endblock header %}
  56. <div class="container mt-3" style="background-color: #fff;">
  57. {% block content %}{% endblock content %}
  58. </div>
  59. {% block footer %}
  60. {% if app.user is defined and app.user %}
  61. {{ component('common.footer', 'common.footer') }}
  62. {% else %}
  63. {{ component('security.footer', 'security.footer') }}
  64. {% endif %}
  65. {% endblock footer %}
  66. </div>
  67. {% block gotop %}
  68. <a class="gotop btn btn-yellow d-none">
  69. <i class="glyphicon glyphicon-arrow-up"></i>
  70. </a>
  71. {% endblock gotop %}
  72. {% block scripts %}
  73. <script src="{{ asset('build/assets/js/front/jquery.min.js') }}?v={{ version }}"></script>
  74. <script src="{{ asset('build/assets/bower_components/bootstrap4/dist/js/bootstrap.bundle.min.js') }}?v={{ version }}"></script>
  75. {% endblock scripts %}
  76. </body>
  77. </html>