sforkowany z mirror/friendica
Merge pull request #6907 from MrPetovan/bug/6855-wrap-profile-fields
[frio] Add punctuation wrap on several profile fields2022.09-rc
commit
1c244f7621
|
@ -39,7 +39,7 @@
|
||||||
<div class="profile-header">
|
<div class="profile-header">
|
||||||
<h3 class="fn p-name">{{$profile.name}}</h3>
|
<h3 class="fn p-name">{{$profile.name}}</h3>
|
||||||
|
|
||||||
{{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
|
{{if $profile.addr}}<div class="p-addr">{{include file="sub/punct_wrap.tpl" text=$profile.addr}}</div>{{/if}}
|
||||||
|
|
||||||
{{if $profile.pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
|
{{if $profile.pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
{{if $profile.xmpp}}
|
{{if $profile.xmpp}}
|
||||||
<div class="xmpp">
|
<div class="xmpp">
|
||||||
<span class="xmpp-label icon"><i class="fa fa-comments"></i></span>
|
<span class="xmpp-label icon"><i class="fa fa-comments"></i></span>
|
||||||
<span class="xmpp-data">{{$profile.xmpp}}</span>
|
<span class="xmpp-data"><a href="xmpp:{{$profile.xmpp}}" rel="me" target="_blank">{{include file="sub/punct_wrap.tpl" text=$profile.xmpp}}</a></span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
{{if $homepage}}
|
{{if $homepage}}
|
||||||
<div class="homepage detail">
|
<div class="homepage detail">
|
||||||
<span class="homepage-label icon"><i class="fa fa-external-link-square"></i></span>
|
<span class="homepage-label icon"><i class="fa fa-external-link-square"></i></span>
|
||||||
<span class="homepage-url u-url"><a href="{{$profile.homepage}}" rel="me" target="_blank">{{$profile.homepage}}</a></span>
|
<span class="homepage-url u-url"><a href="{{$profile.homepage}}" rel="me" target="_blank">{{include file="sub/punct_wrap.tpl" text=$profile.homepage}}</a></span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
{{$text|regex_replace:"/([@\.\/])/":"<wbr>$1" nofilter}}
|
Ładowanie…
Reference in New Issue