From 1c412ad8abe296a3644fcf910a88ec1b0043f61e Mon Sep 17 00:00:00 2001 From: maksim Date: Mon, 23 Jun 2025 09:15:09 +0300 Subject: [PATCH] =?UTF-8?q?Task=206875=20|=20=D0=A0=D0=B5=D0=B3=D0=B8?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B4=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0=D0=BC=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wp-content/themes/cosmopet/functions.php | 1 + .../cosmopet/modules/forms/module.template.twig | 0 .../themes/cosmopet/temp-functions/menu-logic.php | 11 +++++++++++ 3 files changed, 12 insertions(+) delete mode 100644 wp-content/themes/cosmopet/modules/forms/module.template.twig create mode 100644 wp-content/themes/cosmopet/temp-functions/menu-logic.php diff --git a/wp-content/themes/cosmopet/functions.php b/wp-content/themes/cosmopet/functions.php index 49caa1f..9eafee4 100644 --- a/wp-content/themes/cosmopet/functions.php +++ b/wp-content/themes/cosmopet/functions.php @@ -16,6 +16,7 @@ require_once __DIR__ . '/temp-functions/blog-logic.php'; require_once __DIR__ . '/temp-functions/filters-logic.php'; require_once __DIR__ . '/temp-functions/custom-admin-panel-logic.php'; require_once __DIR__ . '/temp-functions/login-logic.php'; +require_once __DIR__ . '/temp-functions/menu-logic.php'; // include_module('forms'); // include_module('shop'); diff --git a/wp-content/themes/cosmopet/modules/forms/module.template.twig b/wp-content/themes/cosmopet/modules/forms/module.template.twig deleted file mode 100644 index e69de29..0000000 diff --git a/wp-content/themes/cosmopet/temp-functions/menu-logic.php b/wp-content/themes/cosmopet/temp-functions/menu-logic.php new file mode 100644 index 0000000..ebac216 --- /dev/null +++ b/wp-content/themes/cosmopet/temp-functions/menu-logic.php @@ -0,0 +1,11 @@ + 'Основное меню', + 'cats-menu' => 'Меню для кошек', + 'dogs-menu' => 'Меню для собак', + ]); +} +add_action('after_setup_theme', 'register_custom_menus'); \ No newline at end of file