Merge pull request #7937 from Jerryby/wordpress

LAW-6364
This commit is contained in:
bivis
2023-02-28 10:12:31 +03:00
committed by GitHub

View File

@@ -63,19 +63,6 @@ $scripts = [];
</script>
<?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' => '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':
@@ -264,7 +251,6 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
}
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>';
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>';