forked from LiveCarta/LiveCartaWP
Merge branch 'wordpress' of https://github.com/Teqniksoft/LawCarta_book into wordpress
This commit is contained in:
@@ -78,6 +78,11 @@ $lawCartaUrl = "$scheme$host$port";
|
||||
eventer(messageEvent, function (ev) {
|
||||
if (ev.origin.indexOf('<?= $lawCartaUrl ?>') !== -1) {
|
||||
document.getElementById('header-menu').insertAdjacentHTML('beforeend', ev.data);
|
||||
if ($('#is-guest').text() == 'true') {
|
||||
$('.guest-data').show();
|
||||
} else {
|
||||
$('.home-label').text('Dashboard').attr('href', '<?= $lawCartaUrl?>/dashboard');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user