diff --git a/system/lan/english.json b/system/lan/english.json index 7031e0bb..7ace29bd 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -852,5 +852,6 @@ "info": "info", "Registration_code": "Registration code", "Admin_can_only_have_single_session_login__it_will_logout_another_session": "Admin can only have single session login, it will logout another session", - "Single_session_Admin": "Single session Admin" + "Single_session_Admin": "Single session Admin", + "Get_Directions": "Get Directions" } \ No newline at end of file diff --git a/ui/ui/customer/footer.tpl b/ui/ui/customer/footer.tpl index e130a3c7..95dacf50 100644 --- a/ui/ui/customer/footer.tpl +++ b/ui/ui/customer/footer.tpl @@ -56,113 +56,142 @@ {if $_c['tawkto'] != ''} - -{/if} + var isLoggedIn = false; + var Tawk_API = { + onLoad: function() { + if (!isLoggedIn) { + isLoggedIn = true; + window.Tawk_API.login({ + name: '{$_user['fullname']}', + email: '{$_user['email']}', + userId: '{$_user['id']}' + }, function(error) { + //do something if there's an error + }); + } + Tawk_API.setAttributes({ + 'id' : '{$_user['id']}', + 'username' : '{$_user['username']}', + 'service_type' : '{$_user['service_type']}', + 'balance' : '{$_user['balance']}', + 'account_type' : '{$_user['account_type']}', + 'phone' : '{$_user['phonenumber']}' + }, function(error) {}); + } + }; + var Tawk_LoadStart = new Date();Tawk_API.visitor = { + name : '{$_user['fullname']}', + email : '{$_user['email']}', + userId: '{$_user['id']}' + }; + (function() { + var s1 = document.createElement("script"), + s0 = document.getElementsByTagName("script")[0]; + s1.async = true; + s1.src = 'https://embed.tawk.to/{$_c['tawkto']}'; + s1.charset = 'UTF-8'; + s1.setAttribute('crossorigin', '*'); + s0.parentNode.insertBefore(s1, s0); + })(); + + + {/if} - -{literal} - + + + {literal} + -{/literal} + setCookie('user_language', ' + {/literal}{$user_language} + {literal}', 365); + + {/literal} - + - \ No newline at end of file + \ No newline at end of file diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index 86c0aeeb..cc8d295c 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -163,7 +163,7 @@ color: #fff; background-color: #169210; border-color: #25e01c; - + } .panel-cron-warning>.panel-heading {