]> git.mxchange.org Git - friendica.git/commitdiff
Add RTL support to profile name and description in the VCard
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 1 May 2021 19:13:39 +0000 (15:13 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 1 May 2021 19:13:39 +0000 (15:13 -0400)
view/templates/profile/vcard.tpl
view/templates/widget/vcard.tpl
view/theme/duepuntozero/templates/profile/vcard.tpl
view/theme/frio/templates/profile/vcard.tpl
view/theme/frio/templates/widget/vcard.tpl
view/theme/quattro/templates/profile/vcard.tpl
view/theme/vier/templates/profile/vcard.tpl

index c4e9ea1d15f90adb69438ef0700d1cbbedc234ab..b989923b78e5714c34232759ed923e37f745e8bb 100644 (file)
@@ -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"}}
 
index 1bd0690a27dd5ec792e1b678e0a6e1037b4443e7..2cd8d9bb7bb2d5b06c8fadd0c239917821508e8e 100644 (file)
@@ -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}}
index ed6d52249468c41901f06bf3348c7424f8afd59a..cba78da6af932a490c36e04d9a0641775b66f59f 100644 (file)
@@ -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}}
 
index b1d4ada2d5fed7dcd36c4658446c6720d0cf3267..deecd7543759aadb9d6813259cb26d54ed951426 100644 (file)
 
        <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>
index 210edbe4412f056c17fe3b2561187c348f726928..9c89ace8c2769e9a80801e73af55e761764052ef 100644 (file)
@@ -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>
 
        <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>
index 992700f1084bd46b95bc296eb60664c5c33f6b65..a0f0f250259238a7be4fb38d10ff4b7156ed36c5 100644 (file)
@@ -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>
        {{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}}
 
index 06c7a0235b36b86e39d733e19390c70cce6e3327..13e41fcb5edca408e7eadf7bd5b4738a62e745a0 100644 (file)
@@ -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"}}