Andrei | зафиксировал изменения по рефакторингу

web_10
parent 5c7182812d
commit fb27b4b04c
  1. 2
      wp-content/themes/cosmopet/global-functions/multisite-functions.php
  2. 8
      wp-content/themes/cosmopet/templates/profile/profile-orders.twig
  3. 14
      wp-content/themes/cosmopet/templates/profile/profile.twig

@ -35,4 +35,4 @@ add_filter('timber/twig', function (\Twig\Environment $twig) {
add_filter('woocommerce_currency_symbol', function($currency_symbol, $currency) {
return $currency === 'AED' ? 'AED' : $currency_symbol;
})
})

@ -0,0 +1,8 @@
{% extends 'profile/profile-base.twig' %}
{% block profile_content%}
<div class="cabinet__orders cabinet-content {% if fn('is_wc_endpoint_url') %}active hide{% endif %}">
{% include 'profile/order-list.twig' %}
</div>
</div>
{% endblock %}

@ -0,0 +1,14 @@
{% set profile_pg = 1 %}
{% extends 'profile/profile-base.twig' %}
{% block profile_content%}
<div class="cabinet__orders cabinet-content {% if fn('is_wc_endpoint_url') %}active hide{% endif %}">
{% include 'profile/order-list.twig' %}
</div>
</div>
</main>
{# TO_DO нужен ли тут <main>? #}
{% endblock %}
Loading…
Cancel
Save