mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
Add RTL support to profile name and description in the VCard
This commit is contained in:
parent
0649d2c393
commit
531e5d7f3e
7 changed files with 31 additions and 31 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
<div class="vcard h-card">
|
||||
|
||||
<div class="fn p-name">{{$profile.name}}</div>
|
||||
<div class="fn p-name" dir="auto">{{$profile.name}}</div>
|
||||
|
||||
{{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
{{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
|
||||
{{if $profile.network_link}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_link nofilter}}</dd></dl>{{/if}}
|
||||
{{if $location}}
|
||||
<dl class="location">
|
||||
<dl class="location" dir="auto">
|
||||
<dt class="location-label">{{$location}}</dt>
|
||||
<dd class="adr h-adr">
|
||||
{{if $profile.address}}<p class="street-address p-street-address">{{$profile.address nofilter}}</p>{{/if}}
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
{{if $homepage}}<dl class="homepage"><dt class="homepage-label">{{$homepage}}</dt><dd class="homepage-url u-url"><a href="{{$profile.homepage}}" rel="me" target="_blank" rel="noopener noreferrer">{{$profile.homepage}}</a></dd></dl>{{/if}}
|
||||
|
||||
{{if $about}}<dl class="about"><dt class="about-label">{{$about}}</dt><dd class="x-network">{{$profile.about nofilter}}</dd></dl>{{/if}}
|
||||
{{if $about}}<dl class="about"><dt class="about-label">{{$about}}</dt><dd class="x-network" dir="auto">{{$profile.about nofilter}}</dd></dl>{{/if}}
|
||||
|
||||
{{include file="diaspora_vcard.tpl"}}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
<div class="vcard h-card">
|
||||
<div class="fn p-name">{{$name}}</div>
|
||||
<div class="fn p-name" dir="auto">{{$name}}</div>
|
||||
{{if $addr}}<div class="p-addr">{{$addr}}</div>{{/if}}
|
||||
{{if $about}}<div class="title p-job-title">{{$about nofilter}}</div>{{/if}}
|
||||
{{if $about}}<div class="title p-about" dir="auto">{{$about nofilter}}</div>{{/if}}
|
||||
{{if $url}}
|
||||
<div id="profile-photo-wrapper"><a href="{{$url}}"><img class="vcard-photo photo u-photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></a></div>
|
||||
{{else}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<div class="vcard h-card">
|
||||
|
||||
<div class="fn p-name">{{$profile.name}}</div>
|
||||
<div class="fn p-name" dir="auto">{{$profile.name}}</div>
|
||||
|
||||
{{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
|||
{{if $profile.network_link}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_link nofilter}}</dd></dl>{{/if}}
|
||||
|
||||
{{if $location}}
|
||||
<dl class="location">
|
||||
<dl class="location" dir="auto">
|
||||
<dt class="location-label">{{$location}}</dt>
|
||||
<dd class="adr h-adr">
|
||||
{{if $profile.address}}<p class="street-address p-street-address">{{$profile.address nofilter}}</p>{{/if}}
|
||||
|
@ -21,7 +21,7 @@
|
|||
</dl>
|
||||
{{/if}}
|
||||
|
||||
{{if $profile.about}}<div class="title">{{$profile.about nofilter}}</div>{{/if}}
|
||||
{{if $profile.about}}<div class="title" dir="auto">{{$profile.about nofilter}}</div>{{/if}}
|
||||
|
||||
{{if $profile.upubkey}}<div class="key" style="display:none;">{{$profile.upubkey}}</div>{{/if}}
|
||||
|
||||
|
|
|
@ -37,11 +37,11 @@
|
|||
|
||||
<div class="panel-body">
|
||||
<div class="profile-header">
|
||||
<h3 class="fn p-name">{{$profile.name}}</h3>
|
||||
<h3 class="fn p-name" dir="auto">{{$profile.name}}</h3>
|
||||
|
||||
{{if $profile.addr}}<div class="p-addr">{{include file="sub/punct_wrap.tpl" text=$profile.addr}}</div>{{/if}}
|
||||
|
||||
{{if $profile.about}}<div class="title">{{$profile.about nofilter}}</div>{{/if}}
|
||||
{{if $profile.about}}<div class="title" dir="auto">{{$profile.about nofilter}}</div>{{/if}}
|
||||
|
||||
{{if $account_type}}<div class="account-type">({{$account_type}})</div>{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
|
||||
<div id="vcard-short-desc" class="media-body">
|
||||
<h4 class="media-heading">{{$name}}</h4>
|
||||
<h4 class="media-heading" dir="auto">{{$name}}</h4>
|
||||
{{if $addr}}<div class="vcard-short-addr">{{$addr}}</div>{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -24,13 +24,13 @@
|
|||
|
||||
<div class="panel-body">
|
||||
<div class="profile-header">
|
||||
<h3 class="fn p-name">{{$name}}</h3>
|
||||
<h3 class="fn p-name" dir="auto">{{$name}}</h3>
|
||||
|
||||
{{if $addr}}<div class="p-addr">{{$addr}}</div>{{/if}}
|
||||
|
||||
{{if $account_type}}<div class="account-type">({{$account_type}})</div>{{/if}}
|
||||
|
||||
{{if $about}}<div class="title">{{$about nofilter}}</div>{{/if}}
|
||||
{{if $about}}<div class="title" dir="auto">{{$about nofilter}}</div>{{/if}}
|
||||
|
||||
{{if $network_link}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$network_link nofilter}}</dd></dl>{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="vcard h-card">
|
||||
|
||||
<div class="tool">
|
||||
<div class="fn p-name">{{$profile.name}}</div>
|
||||
<div class="fn p-name" dir="auto">{{$profile.name}}</div>
|
||||
{{if $profile.edit}}
|
||||
<div class="action">
|
||||
<a class="icon s16 edit ttright" href="#" rel="#profiles-menu" title="{{$profile.edit.3}}"><span>{{$profile.edit.1}}</span></a>
|
||||
|
@ -24,23 +24,23 @@
|
|||
{{if $profile.network_link}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_link nofilter}}</dd></dl>{{/if}}
|
||||
|
||||
{{if $location}}
|
||||
<dl class="location">
|
||||
<dt class="location-label">{{$location}}</dt>
|
||||
<dd class="adr h-adr">
|
||||
{{if $profile.address}}<p class="street-address p-street-address">{{$profile.address nofilter}}</p>{{/if}}
|
||||
{{if $profile.location}}<p class="p-location">{{$profile.location}}</p>{{/if}}
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="location" dir="auto">
|
||||
<dt class="location-label">{{$location}}</dt>
|
||||
<dd class="adr h-adr">
|
||||
{{if $profile.address}}<p class="street-address p-street-address">{{$profile.address nofilter}}</p>{{/if}}
|
||||
{{if $profile.location}}<p class="p-location">{{$profile.location}}</p>{{/if}}
|
||||
</dd>
|
||||
</dl>
|
||||
{{/if}}
|
||||
|
||||
{{if $about}}<div class="title">{{$profile.about nofilter}}</div>{{/if}}
|
||||
{{if $about}}<div class="title" dir="auto">{{$profile.about nofilter}}</div>{{/if}}
|
||||
|
||||
{{if $profile.xmpp}}
|
||||
<dl class="xmpp">
|
||||
<dt class="xmpp-label">{{$xmpp}}</dt>
|
||||
<dd class="xmpp-data">{{$profile.xmpp}}</dd>
|
||||
</dl>
|
||||
{{/if}}
|
||||
{{if $profile.xmpp}}
|
||||
<dl class="xmpp">
|
||||
<dt class="xmpp-label">{{$xmpp}}</dt>
|
||||
<dd class="xmpp-data">{{$profile.xmpp}}</dd>
|
||||
</dl>
|
||||
{{/if}}
|
||||
|
||||
{{if $profile.upubkey}}<div class="key" style="display:none;">{{$profile.upubkey}}</div>{{/if}}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="vcard h-card">
|
||||
|
||||
<div class="tool">
|
||||
<div class="fn p-name">{{$profile.name}}</div>
|
||||
<div class="fn p-name" dir="auto">{{$profile.name}}</div>
|
||||
{{if $profile.edit}}
|
||||
<div class="action">
|
||||
<a class="icon s16 edit ttright" href="{{$profile.edit.0}}" title="{{$profile.edit.3}}"><span>{{$profile.edit.1}}</span></a>
|
||||
|
@ -20,7 +20,7 @@
|
|||
{{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
|
||||
{{if $profile.network_link}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$profile.network_link nofilter}}</dd></dl>{{/if}}
|
||||
{{if $location}}
|
||||
<dl class="location">
|
||||
<dl class="location" dir="auto">
|
||||
<dt class="location-label">{{$location}}</dt>
|
||||
<dd class="adr h-adr">
|
||||
{{if $profile.address}}<p class="street-address p-street-address">{{$profile.address nofilter}}</p>{{/if}}
|
||||
|
@ -44,7 +44,7 @@
|
|||
|
||||
{{if $homepage}}<dl class="homepage"><dt class="homepage-label">{{$homepage}}</dt><dd class="homepage-url"><a href="{{$profile.homepage}}" class="u-url" rel="me" target="_blank" rel="noopener noreferrer">{{$profile.homepage}}</a></dd></dl>{{/if}}
|
||||
|
||||
{{if $about}}<dl class="about"><dt class="about-label">{{$about}}</dt><dd class="x-network">{{$profile.about nofilter}}</dd></dl>{{/if}}
|
||||
{{if $about}}<dl class="about"><dt class="about-label">{{$about}}</dt><dd class="x-network" dir="auto">{{$profile.about nofilter}}</dd></dl>{{/if}}
|
||||
|
||||
{{include file="diaspora_vcard.tpl"}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue