templates/fe/base.html.twig line 85

Open in your IDE?
  1. {% apply spaceless %}
  2. {% set cr = app.request.attributes.get('_route') %}
  3. {% set locale = app.request.get('_locale') %}
  4. <!doctype html>
  5. <html lang="{% if locale == '' %}en{% else %}{{ app.request.get('_locale') }}{% endif %}"
  6. dir="{{ locale == "ar" ? 'rtl': "ltr" }}">
  7. <head>
  8. <title>
  9. {% block title %}{% endblock %} | {{ getSiteSetting("website-title") }}
  10. </title>
  11. {% block criticalCSS %}{% endblock %}
  12. <style>
  13. {% set primaryColor = getSiteSetting("website-primary-color") %}
  14. {% set headerColor = getSiteSetting("website-header-color") %}
  15. {% set headerTextColor = getSiteSetting("website-header-text-color") %}
  16. {% set footerColor = getSiteSetting("website-footer-color") %}
  17. {% set footerTextColor = getSiteSetting("website-footer-text-color") %}
  18. :root {
  19. --primary-color: {{ primaryColor }} !important;
  20. --primary-color-rgb: {{ convertHexToRgb(primaryColor) }};
  21. --text-on-primary-color: #ffffff !important;
  22. --header-color: {{ headerColor }};
  23. --header-text-color: {{ headerTextColor }};
  24. --footer-color: {{ footerColor }};
  25. --footer-text-color: {{ footerTextColor }};
  26. }
  27. .m-header-topbar-logo{
  28. width: 220px !important;
  29. }
  30. .m-header-topbar-delivery{
  31. justify-content: end !important;
  32. }
  33. .m-header-topbar-logo a svg{
  34. max-width: 100%;
  35. }
  36. .m-header{
  37. background-color: var(--header-color) !important;
  38. }
  39. .m-footer{
  40. background-color: var(--footer-color) !important;
  41. }
  42. .m-header-topbar-icon svg path{
  43. fill: var(--header-text-color) !important;
  44. }
  45. .m-header-topbar-delivery-dropdown-button {
  46. color: var(--header-text-color) !important;
  47. }
  48. .m-footer-widget-title,
  49. .m-footer-widget-content,
  50. .m-footer-widget-content a{
  51. color: var(--footer-text-color) !important;
  52. }
  53. .m-footer-widget-content-social-icons svg path{
  54. fill: var(--footer-text-color) !important;
  55. }
  56. </style>
  57. <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
  58. <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  59. <meta property="og:site_name"
  60. content="{{ getSiteSetting("website-title") }}"/>
  61. {% block stylesheets %}{% endblock %}
  62. {% include "fe/_favicon.html.twig" %}
  63. {% block metaTag %}{% endblock %}
  64. {# SITE SETTINGS #}
  65. {% if 'Google' not in app.request.headers.get('User-Agent') %}
  66. {{ render(controller("App\\CMSBundle\\Controller\\FrontEnd\\SiteSettingController::siteSettingHead") ) }}
  67. {% endif %}
  68. {# END SITE SETTINGS #}
  69. </head>
  70. <body>
  71. {% if 'Google' not in app.request.headers.get('User-Agent') %}
  72. {{ render(controller("App\\CMSBundle\\Controller\\FrontEnd\\SiteSettingController::siteSettingBody") ) }}
  73. {% endif %}
  74. {% include 'fe/_header.html.twig' %}
  75. <div class="m-body">
  76. <div class="l-backdrop ui-backdrop" data-m-body-backdrop="true"></div>
  77. {% block content %}{% endblock %}
  78. </div>
  79. {% block modals %}{% endblock %}
  80. {{ render(controller('App\\HomeBundle\\Controller\\HeaderFooterController::footer')) }}
  81. {% include 'fe/_modals.html.twig' %}
  82. <div class="l-toasts" data-toasts="true"></div>
  83. {% include 'fe/_global_variables.html.twig' %}
  84. {% block javascripts %}
  85. {% endblock %}
  86. </body>
  87. </html>
  88. {% endapply %}