add tawk to and example walled garden

This commit is contained in:
Ibnu Maksum
2022-09-07 15:07:40 +07:00
parent b7394762b3
commit 40d77bba7b
10 changed files with 97 additions and 7 deletions

View File

@ -55,6 +55,8 @@
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
</div>
</div>
<pre>/ip hotspot walled-garden
add dst-host=:^midtrans.com</pre>
</div>
</div>

View File

@ -72,6 +72,18 @@
</div>
</div>
</div>
<div class="panel-heading">Tawk.to Chat Widget</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">https://tawk.to/chat/</label>
<div class="col-md-6">
<input type="text" class="form-control" id="tawkto" name="tawkto" value="{$_c['tawkto']}" placeholder="62f1ca7037898912e961f5/1ga07df">
<p class="help-block">From Direct Chat Link.</p>
<pre>/ip hotspot walled-garden
add dst-host=:^tawk.to</pre>
</div>
</div>
</div>
<div class="panel-heading">Invoice</div>
<div class="panel-body">
<div class="form-group">

View File

@ -44,6 +44,8 @@
<a class="btn btn-info waves-effect waves-light" href="https://tripay.co.id/?ref=TP19304" target="_blank">Daftar Tripay</a>
</div>
</div>
<pre>/ip hotspot walled-garden
add dst-host=:^tripay.co.id</pre>
</div>
</div>

View File

@ -41,6 +41,8 @@
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
</div>
</div>
<pre>/ip hotspot walled-garden
add dst-host=:^xendit.co</pre>
</div>
</div>

View File

@ -101,6 +101,21 @@
</form>
</div>
</div>
{if $_c['tawkto'] != ''}
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(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);
})();
</script>
<!--End of Tawk.to Script-->
{/if}
<script src="scripts/vendors.js"></script>
</body>
</html>

View File

@ -74,6 +74,21 @@
</form>
</div>
</div>
{if $_c['tawkto'] != ''}
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(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);
})();
</script>
<!--End of Tawk.to Script-->
{/if}
<script src="scripts/vendors.js"></script>
</body>
</html>

View File

@ -97,6 +97,21 @@
</form>
</div>
</div>
{if $_c['tawkto'] != ''}
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(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);
})();
</script>
<!--End of Tawk.to Script-->
{/if}
<script src="scripts/vendors.js"></script>
</body>
</html>

View File

@ -11,8 +11,8 @@
<div class="left small">Fixed Header</div>
<div class="md-switch right">
<label>
<input type="checkbox" id="fixedHeader">
<span>&nbsp;</span>
<input type="checkbox" id="fixedHeader">
<span>&nbsp;</span>
</label>
</div>
</li>
@ -20,8 +20,8 @@
<div class="left small">Nav Full</div>
<div class="md-switch right">
<label>
<input type="checkbox" id="navFull">
<span>&nbsp;</span>
<input type="checkbox" id="navFull">
<span>&nbsp;</span>
</label>
</div>
</li>
@ -55,10 +55,26 @@
<script src="{$_theme}/scripts/form-elements.init.js"></script>
<script src="ui/lib/js/bootbox.min.js"></script>
{if isset($xfooter)}
{$xfooter}
{/if}
{if $_c['tawkto'] != ''}
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(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);
})();
</script>
<!--End of Tawk.to Script-->
{/if}
</body>
</html>

View File

@ -57,5 +57,4 @@
</div>
</div>
</div>
{include file="sections/user-footer.tpl"}