This commit is contained in:
Jerry
2023-02-24 14:28:31 +01:00
parent 170cff4e88
commit 5c943f767c

View File

@@ -63,19 +63,6 @@ $scripts = [];
</script> </script>
<?php endif;?> <?php endif;?>
<script>
(function(){ // early redirect if needed
if (typeof frontSettings === 'undefined' || frontSettings.isGuest) return;
if (typeof isHomeTemplate != 'undefined' && isHomeTemplate === true) {
var urlParams = new URLSearchParams(window.location.search);
var redirectGetParam = urlParams.get('law') ? '?law=1' : '';
window.location.href = lawCartaDomain + '/dashboard' + redirectGetParam;
}
})();
</script>
<?php $scripts[] = ['type' => 'script', 'source' =>"https://www.googleoptimize.com/optimize.js?id=OPT-TCXZSGK"]; ?> <?php $scripts[] = ['type' => 'script', 'source' =>"https://www.googleoptimize.com/optimize.js?id=OPT-TCXZSGK"]; ?>
<?php $scripts[] = ['type' => 'comment', 'source' =>'Google Tag Manager']; ?> <?php $scripts[] = ['type' => 'comment', 'source' =>'Google Tag Manager']; ?>
<?php $scripts[] = ['type' => 'script', 'source' =>"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': <?php $scripts[] = ['type' => 'script', 'source' =>"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
@@ -264,7 +251,6 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
} }
let desktopLinks = ''; let desktopLinks = '';
if (isGuest) desktopLinks += '<a href="' + linksObject.home + '" class="menu-link movable' + isPageSelected.home +'"><span class="text">Home</span></a>';
if (!isGuest) desktopLinks += '<a href="' + linksObject.dashboard + '" class="menu-link movable"><span class="text">Dashboard</span></a>'; if (!isGuest) desktopLinks += '<a href="' + linksObject.dashboard + '" class="menu-link movable"><span class="text">Dashboard</span></a>';
desktopLinks += '<a href="' + linksObject.catalog + '" class="menu-link movable"><span class="text">Catalog</span></a>'; desktopLinks += '<a href="' + linksObject.catalog + '" class="menu-link movable"><span class="text">Catalog</span></a>';
if (!isGuest) desktopLinks += '<a href="' + linksObject.library + '" class="menu-link movable"><span class="text">My Library</span></a>'; if (!isGuest) desktopLinks += '<a href="' + linksObject.library + '" class="menu-link movable"><span class="text">My Library</span></a>';