From dc3b95de9ed932a9d148a40fa187ad47e161a9be Mon Sep 17 00:00:00 2001 From: maksim Date: Thu, 19 Jun 2025 12:35:27 +0300 Subject: [PATCH] =?UTF-8?q?Task=206811=20|=20=D0=B8=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3=20=D1=81=20?= =?UTF-8?q?=D0=BD=D0=B5=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D1=8B=D0=BC=20=D0=BF=D0=BE=D1=80=D1=8F=D0=B4=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=D0=B0=20=D1=8D=D0=BB=D0=B5?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=82=D0=BE=D0=B2=20=D0=B8=20=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=B4=D0=B5=D1=80=D0=B0=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wp-content/themes/cosmopet/page.php | 9 ++++++--- .../themes/cosmopet/templates/profile/profile-base.twig | 9 ++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/cosmopet/page.php b/wp-content/themes/cosmopet/page.php index 747165d..968f7cd 100644 --- a/wp-content/themes/cosmopet/page.php +++ b/wp-content/themes/cosmopet/page.php @@ -25,7 +25,10 @@ elseif (is_account_page() && isset($wp->query_vars['view-subscription'])){ include_module('profile'); include_component('profile', 'subscription_single'); } -$context = Timber::context(); -$context['post'] = Timber::get_post(); -Timber::render('page.twig', $context); \ No newline at end of file +else{ + $context = Timber::context(); + $context['post'] = Timber::get_post(); + + Timber::render('page.twig', $context); +} \ No newline at end of file diff --git a/wp-content/themes/cosmopet/templates/profile/profile-base.twig b/wp-content/themes/cosmopet/templates/profile/profile-base.twig index 45e31c5..3978f42 100644 --- a/wp-content/themes/cosmopet/templates/profile/profile-base.twig +++ b/wp-content/themes/cosmopet/templates/profile/profile-base.twig @@ -1,3 +1,8 @@ +{% set bodyClass = 'bg-white' %} +{% set mainClass = 'wrapper' %} + +{% extends 'layout.twig' %} +{% block content %}
@@ -608,4 +613,6 @@
- \ No newline at end of file + + +{% endblock %} \ No newline at end of file