custom/plugins/zenitPlatformShippingBar/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {# Include the shipping bar top position #}
  3. {% block base_header %}
  4.     {% block zenit_shipping_bar_extends_top %}
  5.         {% set zenShippingBar = context.context.extensions['zenitPlatformShippingBar'].config %}
  6.         {% if zenShippingBar.active and zenShippingBar.topBar == 'prepend' and zenShippingBar.paymentExtension == 'noextend' %}
  7.             {% sw_include '@Storefront/storefront//shipping-bar/shipping-bar.html.twig' with {
  8.                 position: 'top',
  9.                 attach: 'prepend',
  10.                 statemanager: zenShippingBar.statemanagerHeader,
  11.                 statemanagerBaseClass: 'd-none',
  12.                 statemanagerIcons: zenShippingBar.statemanagerIconsHeader,
  13.                 statemanagerInformations: zenShippingBar.statemanagerInformationsHeader
  14.             } %}
  15.         {% endif %}
  16.     {% endblock %}
  17.     {{ parent() }}
  18. {% endblock %}
  19. {# Include the shipping bar bottom position #}
  20. {% block base_footer %}
  21.     {% block zenit_shipping_bar_extends_bottom_prepend %}
  22.         {% set zenShippingBar = context.context.extensions['zenitPlatformShippingBar'].config %}
  23.         {% if zenShippingBar.active and zenShippingBar.footerBar == 'prepend' and zenShippingBar.paymentExtension == 'noextend' %}
  24.             {% sw_include '@Storefront/storefront//shipping-bar/shipping-bar.html.twig' with {
  25.                 position: 'bottom',
  26.                 attach: 'prepend',
  27.                 statemanager: zenShippingBar.statemanagerFooter,
  28.                 statemanagerBaseClass: 'd-none',
  29.                 statemanagerIcons: zenShippingBar.statemanagerIconsFooter,
  30.                 statemanagerInformations: zenShippingBar.statemanagerInformationsFooter
  31.             } %}
  32.         {% endif %}
  33.     {% endblock %}
  34.     {{ parent() }}
  35.      {% block zenit_shipping_bar_extends_bottom_append %}
  36.         {% set zenShippingBar = context.context.extensions['zenitPlatformShippingBar'].config %}
  37.         {% if zenShippingBar.active and zenShippingBar.footerBar == 'append' and zenShippingBar.paymentExtension == 'noextend' %}
  38.             {% sw_include '@Storefront/storefront//shipping-bar/shipping-bar.html.twig' with {
  39.                 position: 'bottom',
  40.                 attach: 'append',
  41.                 statemanager: zenShippingBar.statemanagerFooter,
  42.                 statemanagerBaseClass: 'd-none',
  43.                 statemanagerIcons: zenShippingBar.statemanagerIconsFooter,
  44.                 statemanagerInformations: zenShippingBar.statemanagerInformationsFooter
  45.             } %}
  46.         {% endif %}
  47.      {% endblock %}
  48. {% endblock %}