From: Philipp Walker Date: Wed, 3 Dec 2008 12:01:06 +0000 (+0100) Subject: Added callto:// links for phone numbers X-Git-Tag: 0.7.1~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0fb2ccbc274ca6eb5db1189cfa7089827ef550ef;p=contagged Added callto:// links for phone numbers darcs-hash:20081203120106-f230f-2f05d0c18ce2595f5cac08837d117797d5f632f6.gz --- diff --git a/inc/smarty/plugins/modifier.escape.php b/inc/smarty/plugins/modifier.escape.php index a2f52b2..f32d7db 100644 --- a/inc/smarty/plugins/modifier.escape.php +++ b/inc/smarty/plugins/modifier.escape.php @@ -33,7 +33,7 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = 'ISO-88 case 'urlpathinfo': return str_replace('%2F','/',rawurlencode($string)); - + case 'quotes': // escape unescaped single quotes return preg_replace("%(?'\\\\',"'"=>"\\'",'"'=>'\\"',"\r"=>'\\r',"\n"=>'\\n',''<\/')); - + case 'mail': // safe way to display e-mail address on a web page return str_replace(array('@', '.'),array(' [AT] ', ' [DOT] '), $string); - + case 'nonstd': // escape non-standard chars, such as ms document quotes $_res = ''; diff --git a/templates/entry_show.tpl b/templates/entry_show.tpl index 25c2b61..36de36c 100644 --- a/templates/entry_show.tpl +++ b/templates/entry_show.tpl @@ -47,7 +47,7 @@ {if $entry.phone} {$lang.phone}: - {$entry.phone|h} + {$entry.phone|h} {/if} {if $entry.switchboard} @@ -106,13 +106,13 @@ {if $entry.homephone} {$lang.homephone}: - {$entry.homephone|h} + {$entry.homephone|h} {/if} {if $entry.mobile} {$lang.mobile}: - {$entry.mobile|h} + {$entry.mobile|h} {/if} {if $entry.birthday} diff --git a/templates/list_entry.tpl b/templates/list_entry.tpl index 847e863..05bcd7a 100644 --- a/templates/list_entry.tpl +++ b/templates/list_entry.tpl @@ -11,7 +11,7 @@ {$entry.organization|h}  - {$entry.phone|h}  + {$entry.phone|h}  {$entry.mail[0]|h}