Use `tel:` links for LEGAL_NOTICE_(PHONE|FAX)
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 18 May 2020 15:17:25 +0000 (17:17 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 18 May 2020 15:21:35 +0000 (17:21 +0200)
Closes #7

templates/legalNotice.tpl

index 2e7e4f8d78ef2ac3ccc0bb9b74227d66e70a9c01..492042489f7342bb1be6b5a2fea85dc2488a94ba 100644 (file)
                
                {if LEGAL_NOTICE_PHONE}
                        <dt>{lang}wcf.legalNotice.phone{/lang}</dt>
-                       <dd>{LEGAL_NOTICE_PHONE}</dd>
+                       <dd><a href="tel:{LEGAL_NOTICE_PHONE|rawurlencode}">{LEGAL_NOTICE_PHONE}</a></dd>
                {/if}
                
                {if LEGAL_NOTICE_FAX}
                        <dt>{lang}wcf.legalNotice.fax{/lang}</dt>
-                       <dd>{LEGAL_NOTICE_FAX}</dd>
+                       <dd><a href="tel:{LEGAL_NOTICE_FAX|rawurlencode}">{LEGAL_NOTICE_FAX}</a></dd>
                {/if}
                
                {if LEGAL_NOTICE_REPRESENTATIVE}