custom/plugins/PayonePayment/src/Resources/views/storefront/page/account/sidebar.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/account/sidebar.html.twig' %}
  2. {% block page_account_sidebar_menu_inner %}
  3.     {{ parent() }}
  4.     {% block page_account_sidebar_link_payone_card %}
  5.         {% if constant('PayonePayment\\PaymentMethod\\PayoneCreditCard::UUID') in activePaymentPaymentMethods %}
  6.             {% set css_class %}
  7.                 list-group-item
  8.                 list-group-item-action
  9.                 account-aside-item
  10.                 {% if controllerName is same as('PayoneAccountCard') and controllerAction is same as('cardOverview') %}
  11.                     is-active
  12.                 {% endif %}
  13.             {% endset %}
  14.             <a href="{{ path('frontend.account.payone.card.page') }}" title="{{ "PayonePayment.cardPage.menuName" | trans }}" class="{{ css_class }}">
  15.                 {{ "PayonePayment.cardPage.menuName" | trans }}
  16.             </a>
  17.         {% endif %}
  18.     {% endblock %}
  19.     {% block page_account_sidebar_link_payone_mandate %}
  20.         {% if constant('PayonePayment\\PaymentMethod\\PayoneDebit::UUID') in activePaymentPaymentMethods %}
  21.             {% set css_class %}
  22.                 list-group-item
  23.                 list-group-item-action
  24.                 account-aside-item
  25.                 {% if controllerName is same as('PayoneAccountMandate') and controllerAction is same as('mandateOverview') %}
  26.                     is-active
  27.                 {% endif %}
  28.             {% endset %}
  29.             <a href="{{ path('frontend.account.payone.mandate.page') }}" title="{{ "PayonePayment.mandatePage.menuName" | trans }}" class="{{ css_class }}">
  30.                 {{ "PayonePayment.mandatePage.menuName" | trans }}
  31.             </a>
  32.         {% endif %}
  33.     {% endblock %}
  34. {% endblock %}