vendor/dvdw/theme/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% set isLightMode = page.header.navigation.active.customFields['custom_layout_mode'] == 'lightmode'
  3.     or page.product %}
  4. {% set isDarkMode = page.header.navigation.active.customFields['custom_layout_mode'] == 'darkmode' %}
  5. {#{% set isTransparentMode = page.event != null %}#}
  6. {% set isTransparentMode = page.header.navigation.active.customFields['custom_layout_mode'] == 'transparentmode'
  7.     or page.dvdwEvent %}
  8. {% set project = 'dvdw' %}
  9. {% if 'dvdwTheme.projectDvdwFilter'|trans|lower|sw_sanitize in context.salesChannel.translated.name|lower %}
  10.     {% set project = 'dvdw' %}
  11. {% elseif 'dvdwTheme.projectJvdwFilter'|trans|lower|sw_sanitize in context.salesChannel.translated.name|lower %}
  12.     {% set project = 'jvdw' %}
  13. {% endif %}
  14. {% block base_body_classes %}
  15.     {{ parent() }} {% if isLightMode %} is-light-mode{% endif %}{% if isTransparentMode %} is-transparent-mode{% endif %}{% if isDarkMode %} is-dark-mode{% endif %}
  16. {% endblock %}
  17. {% block base_header %}
  18.     {% set headerBg = page.header.navigation.active.customFields['custom_header_banner_bg'] %}
  19.     <header class="header-main {% if headerBg %} bg-header-gradient{% endif %}">
  20.         {% block base_header_inner %}
  21.             {{ parent() }}
  22.         {% endblock %}
  23.     </header>
  24. {% endblock %}
  25. {% block base_navigation %}
  26. {#  remove content#}
  27. {% endblock %}
  28. {% block base_offcanvas_navigation %}
  29.     {% if page.header.navigation %}
  30.         <div class="d-none js-navigation-offcanvas-initial-content{% if context.salesChannel.navigationCategoryId == page.header.navigation.active.id %} is-root{% endif %}">
  31.             {% block base_offcanvas_navigation_inner %}
  32.                 {{ parent() }}
  33. {#                {% sw_include '@DvdwTheme/storefront/layout/navigation/offcanvas/navigation.html.twig' with { navigation: page.header.navigation } %}#}
  34.             {% endblock %}
  35.         </div>
  36.     {% endif %}
  37. {% endblock %}
  38. {% block base_footer_inner %}
  39.     {{ parent() }}
  40.     {% sw_include '@DvdwTheme/storefront/component/custom/social-media-bar.html.twig' %}
  41. {% endblock %}
  42. {% block base_breadcrumb %}
  43. {#    remove content#}
  44. {% endblock %}
  45. {% block base_main %}
  46.     {# TODO: DELETE AFTER DEV #}
  47.     {% sw_include '@DvdwTheme/storefront/temporary-dev/dev-page-wrapper.html.twig' ignore missing %}
  48.     {% sw_include '@DvdwTheme/storefront/temporary-dev/dev-grid.html.twig' ignore missing %}
  49.     {% set bgGradient = page.header.navigation.active.customFields['content_background_mode'] === 'gradient' %}
  50.     <main class="content-main{% if bgGradient %} bg-gradient{% endif %}">
  51.         {% block base_flashbags %}
  52.             {{ parent() }}
  53.         {% endblock %}
  54.         {% block base_main_inner %}
  55.             {{ parent() }}
  56.         {% endblock %}
  57.     </main>
  58. {% endblock %}