From: Hypolite Petovan Date: Tue, 19 Mar 2019 01:02:58 +0000 (-0400) Subject: [frio] Add punctuation wrap on several profile fields X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f97db3add93d1abf8fb99d0951c1304810da48cb;p=friendica.git [frio] Add punctuation wrap on several profile fields - Add sub/punct_wrap.tpl template --- 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}}