From f017b475fee5ba46663b744cbb9bfa2a48ba96ca Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 26 Jul 2022 15:31:30 +0200 Subject: [PATCH] new header fix --- htdocs/wp-content/themes/lawcarta/header.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php index 436e8de..9678856 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -26,7 +26,7 @@ $scripts = []; window.top.location = lawCartaDomain + '/catalog'; } - + @@ -200,12 +200,12 @@ height="0" width="0" style="display:none;visibility:hidden"> isGuest = frontSettings.isGuest; } - if (!isGuest) { - sharedAccounts = frontSettings.sharedAccounts; - showAccountAccess = frontSettings.showAccountAccess; - showAdmin = frontSettings.showAdmin; - showConfirmationNotice = frontSettings.showConfirmationNotice; - showRoyaltiesAndSales = frontSettings.showRoyaltiesAndSales; + if (!isGuest && frontSettings.menu) { + sharedAccounts = frontSettings.menu.sharedAccounts; + showAccountAccess = frontSettings.menu.showAccountAccess; + showAdmin = frontSettings.menu.showAdmin; + showConfirmationNotice = frontSettings.menu.showConfirmationNotice; + showRoyaltiesAndSales = frontSettings.menu.showRoyaltiesAndSales; } let linksObject = {