From 368c8767f0d40970cc2642f7cca26fd30b67d9ab Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 31 May 2024 18:20:12 +0200 Subject: [PATCH] feat(profile): disable ads toggle on certain domains Introduced a condition to disable the advertisements toggle for specific domains, enhancing user experience by clearly distinguishing environments where ad configurations are not applicable. By explicitly disabling the toggle on unsupported domains, it guides users towards intended interactions within the application, reducing potential support inquiries and user frustration related to advertisement settings in non-production environments. --- src/pages/profile/profile.php | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/pages/profile/profile.php b/src/pages/profile/profile.php index fe3669dd..915a758e 100644 --- a/src/pages/profile/profile.php +++ b/src/pages/profile/profile.php @@ -348,13 +348,23 @@ $page->navigation();
- getAdvertisements()) { ?> - - - - + + if (!in_array($_SERVER['HTTP_HOST'], $wishthis_hosts, true)) { ?> + + getAdvertisements()) { ?> + + + + + +