From 0fb2ccbc274ca6eb5db1189cfa7089827ef550ef Mon Sep 17 00:00:00 2001 From: Philipp Walker Date: Wed, 3 Dec 2008 13:01:06 +0100 Subject: [PATCH] Added callto:// links for phone numbers darcs-hash:20081203120106-f230f-2f05d0c18ce2595f5cac08837d117797d5f632f6.gz --- inc/smarty/plugins/modifier.escape.php | 13 +++++++++---- templates/entry_show.tpl | 6 +++--- templates/list_entry.tpl | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) 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}  -- 2.39.5