From fb27b4b04c3c28e4b362e1b7c8e140745ca21322 Mon Sep 17 00:00:00 2001 From: maksim Date: Tue, 5 Aug 2025 11:15:17 +0300 Subject: [PATCH] =?UTF-8?q?Andrei=20|=20=D0=B7=D0=B0=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D1=81=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BB=20=D0=B8=D0=B7=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=20=D1=80?= =?UTF-8?q?=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D0=BD=D0=B3?= =?UTF-8?q?=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global-functions/multisite-functions.php | 2 +- .../cosmopet/templates/profile/profile-orders.twig | 8 ++++++++ .../themes/cosmopet/templates/profile/profile.twig | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 wp-content/themes/cosmopet/templates/profile/profile-orders.twig create mode 100644 wp-content/themes/cosmopet/templates/profile/profile.twig diff --git a/wp-content/themes/cosmopet/global-functions/multisite-functions.php b/wp-content/themes/cosmopet/global-functions/multisite-functions.php index 3971657..82e2078 100644 --- a/wp-content/themes/cosmopet/global-functions/multisite-functions.php +++ b/wp-content/themes/cosmopet/global-functions/multisite-functions.php @@ -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; -}) \ No newline at end of file +}) diff --git a/wp-content/themes/cosmopet/templates/profile/profile-orders.twig b/wp-content/themes/cosmopet/templates/profile/profile-orders.twig new file mode 100644 index 0000000..f3e9790 --- /dev/null +++ b/wp-content/themes/cosmopet/templates/profile/profile-orders.twig @@ -0,0 +1,8 @@ +{% extends 'profile/profile-base.twig' %} + +{% block profile_content%} +
+ {% include 'profile/order-list.twig' %} +
+ +{% endblock %} \ No newline at end of file diff --git a/wp-content/themes/cosmopet/templates/profile/profile.twig b/wp-content/themes/cosmopet/templates/profile/profile.twig new file mode 100644 index 0000000..4744dc0 --- /dev/null +++ b/wp-content/themes/cosmopet/templates/profile/profile.twig @@ -0,0 +1,14 @@ +{% set profile_pg = 1 %} + +{% extends 'profile/profile-base.twig' %} + +{% block profile_content%} +
+ {% include 'profile/order-list.twig' %} +
+ + + +{# TO_DO нужен ли тут
? #} +{% endblock %} +