custom/plugins/MaxiaTaxSwitch6/src/Resources/views/storefront/layout/header/header.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}
  2. {% block layout_header_search_toggle %}
  3.     {% block layout_header_actions_maxia_tax_switch_before_search %}
  4.         {% set maxiaTaxSwitch = context.extensions.maxiaTaxSwitch %}
  5.         {% if maxiaTaxSwitch.pluginEnabled and maxiaTaxSwitch.showInHeader and maxiaTaxSwitch.headerPosition == 'beforeSearch' %}
  6.             <div class="col-auto maxia-tax-switch-col">
  7.                 {% sw_include '@Storefront/storefront/plugins/maxia_tax_switch/switcher.html.twig' with {
  8.                     displayType: maxiaTaxSwitch.displayTypeHeader,
  9.                     id: 'maxiaTaxSwitchHeader'
  10.                 } %}
  11.             </div>
  12.         {% endif %}
  13.     {% endblock %}
  14.     {{ parent() }}
  15. {% endblock %}
  16. {% block layout_header_actions_account %}
  17.     {% block layout_header_actions_maxia_tax_switch %}
  18.         {% set maxiaTaxSwitch = context.extensions.maxiaTaxSwitch %}
  19.         {% if maxiaTaxSwitch.pluginEnabled and maxiaTaxSwitch.showInHeader and maxiaTaxSwitch.headerPosition == 'beforeAccount' %}
  20.             <div class="col-auto maxia-tax-switch-col">
  21.                 {% sw_include '@Storefront/storefront/plugins/maxia_tax_switch/switcher.html.twig' with {
  22.                     displayType: maxiaTaxSwitch.displayTypeHeader,
  23.                     id: 'maxiaTaxSwitchHeader'
  24.                 } %}
  25.             </div>
  26.         {% endif %}
  27.     {% endblock %}
  28.     {{ parent() }}
  29. {% endblock %}
  30. {% block layout_header_actions_cart %}
  31.     {% block layout_header_actions_maxia_tax_switch_before_cart %}
  32.         {% set maxiaTaxSwitch = context.extensions.maxiaTaxSwitch %}
  33.         {% if maxiaTaxSwitch.pluginEnabled and maxiaTaxSwitch.showInHeader and maxiaTaxSwitch.headerPosition == 'beforeCart' %}
  34.             <div class="col-auto maxia-tax-switch-col">
  35.                 {% sw_include '@Storefront/storefront/plugins/maxia_tax_switch/switcher.html.twig' with {
  36.                     displayType: maxiaTaxSwitch.displayTypeHeader,
  37.                     id: 'maxiaTaxSwitchHeader'
  38.                 } %}
  39.             </div>
  40.         {% endif %}
  41.     {% endblock %}
  42.     {{ parent() }}
  43.     {% block layout_header_actions_maxia_tax_switch_after_cart %}
  44.         {% set maxiaTaxSwitch = context.extensions.maxiaTaxSwitch %}
  45.         {% if maxiaTaxSwitch.pluginEnabled and maxiaTaxSwitch.showInHeader and maxiaTaxSwitch.headerPosition == 'afterCart' %}
  46.             <div class="col-auto maxia-tax-switch-col">
  47.                 {% sw_include '@Storefront/storefront/plugins/maxia_tax_switch/switcher.html.twig' with {
  48.                     displayType: maxiaTaxSwitch.displayTypeHeader,
  49.                     id: 'maxiaTaxSwitchHeader'
  50.                 } %}
  51.             </div>
  52.         {% endif %}
  53.     {% endblock %}
  54. {% endblock %}