adding API qrcode in account
This commit is contained in:
parent
6fa46137f5
commit
31fe769091
@ -1,13 +1,10 @@
|
|||||||
{if !$GLOBAL.config.website.api.disabled}
|
{if !$GLOBAL.website.api.disabled}
|
||||||
{include file="global/block_header.tpl" BLOCK_HEADER="API String"}
|
|
||||||
<p>This code will allow you to import the full API string into your mobile application.</p>
|
|
||||||
<script type="text/javascript" src="{$PATH}/js/jquery.qrcode.min.js"></script>
|
<script type="text/javascript" src="{$PATH}/js/jquery.qrcode.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
{literal}
|
{literal}
|
||||||
//Wrap it within $(document).ready() to invoke the function after DOM loads.
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#qrcodeholder').qrcode({
|
$('#qrcodeholder').qrcode({
|
||||||
text : "{/literal}|http{if $smarty.server.HTTPS eq '1'}s{/if}://{$smarty.server.SERVER_NAME}{$smarty.server.PHP_SELF}?page=api|{$GLOBAL.userdata.api_key}|{$GLOBAL.userdata.id}|{literal}",
|
text : "{/literal}|http{if $smarty.server.HTTPS|default:"0" eq '1'}s{/if}://{$smarty.server.SERVER_NAME}{$smarty.server.PHP_SELF}?page=api|{$GLOBAL.userdata.api_key}|{$GLOBAL.userdata.id}|{literal}",
|
||||||
render : "canvas", // 'canvas' or 'table'. Default value is 'canvas'
|
render : "canvas", // 'canvas' or 'table'. Default value is 'canvas'
|
||||||
background : "#ffffff",
|
background : "#ffffff",
|
||||||
foreground : "#000000",
|
foreground : "#000000",
|
||||||
@ -17,6 +14,11 @@
|
|||||||
});
|
});
|
||||||
{/literal}
|
{/literal}
|
||||||
</script>
|
</script>
|
||||||
<div id="qrcodeholder"></div>
|
<article class="module width_quarter">
|
||||||
{include file="global/block_footer.tpl"}
|
<header><h3>API String</h3></header>
|
||||||
|
<div class="module_content">
|
||||||
|
<p>This code will allow you to import the full API string into your mobile application.</p>
|
||||||
|
<div id="qrcodeholder"></div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user