From f97db3add93d1abf8fb99d0951c1304810da48cb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 18 Mar 2019 21:02:58 -0400 Subject: [PATCH] [frio] Add punctuation wrap on several profile fields - Add sub/punct_wrap.tpl template --- view/theme/frio/templates/profile_vcard.tpl | 6 +++--- view/theme/frio/templates/sub/punct_wrap.tpl | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 view/theme/frio/templates/sub/punct_wrap.tpl diff --git a/view/theme/frio/templates/profile_vcard.tpl b/view/theme/frio/templates/profile_vcard.tpl index 02aa89fccc..b00e823217 100644 --- a/view/theme/frio/templates/profile_vcard.tpl +++ b/view/theme/frio/templates/profile_vcard.tpl @@ -39,7 +39,7 @@

{{$profile.name}}

- {{if $profile.addr}}
{{$profile.addr}}
{{/if}} + {{if $profile.addr}}
{{include file="sub/punct_wrap.tpl" text=$profile.addr}}
{{/if}} {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} @@ -92,7 +92,7 @@ {{if $profile.xmpp}} {{/if}} @@ -119,7 +119,7 @@ {{if $homepage}} {{/if}} diff --git a/view/theme/frio/templates/sub/punct_wrap.tpl b/view/theme/frio/templates/sub/punct_wrap.tpl new file mode 100644 index 0000000000..31382e7a53 --- /dev/null +++ b/view/theme/frio/templates/sub/punct_wrap.tpl @@ -0,0 +1 @@ +{{$text|regex_replace:"/([@\.])/":"$1" nofilter}}