]> git.mxchange.org Git - friendica.git/commitdiff
Add initial RTL support for post bodies
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 1 May 2021 19:13:53 +0000 (15:13 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 1 May 2021 19:13:53 +0000 (15:13 -0400)
view/templates/wall_thread.tpl
view/theme/frio/templates/wall_thread.tpl
view/theme/quattro/templates/wall_thread.tpl
view/theme/smoothly/templates/wall_thread.tpl
view/theme/vier/templates/wall_thread.tpl

index 0d2561869f0568e94d1bc802221ec9252eb0949d..1a6a8c0717585f935179c527fe7497d66e1bfaf7 100644 (file)
@@ -59,7 +59,7 @@
                        <div class="wall-item-title p-name" id="wall-item-title-{{$item.id}}">{{$item.title}}</div>
                        <div class="wall-item-title-end"></div>
                        <div class="wall-item-body" id="wall-item-body-{{$item.id}}">
-                               <span class="e-content">{{$item.body_html nofilter}}<span>
+                               <span class="e-content" dir="auto">{{$item.body_html nofilter}}<span>
                                <div class="body-tag">
                                {{if !$item.suppress_tags}}
                                        {{foreach $item.tags as $tag}}
index 52a0e7c486c74dc7bd34bcd81a9e111e3187b358..2d9d0a8ab43e44df258852b5aab417c670290cf1 100644 (file)
@@ -246,7 +246,7 @@ as the value of $top_child_total (this is done at the end of this file)
                        <span class="wall-item-title" id="wall-item-title-{{$item.id}}"><h4 class="media-heading"><a href="{{$item.plink.href}}" class="{{$item.sparkle}} p-name">{{$item.title}}</a></h4><br /></span>
                        {{/if}}
 
-                       <div class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}" id="wall-item-body-{{$item.id}}">{{$item.body_html nofilter}}</div>
+                       <div class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}" id="wall-item-body-{{$item.id}}" dir="auto">{{$item.body_html nofilter}}</div>
                </div>
 
                <!-- TODO -->
index e3ed4f26ca0739c7358431cbb75e16e196091968..870be320784cf9bc3ad9e738171868e6688ce9b1 100644 (file)
@@ -54,7 +54,7 @@
                </div>
                <div class="wall-item-content">
                        {{if $item.title}}<h2><a href="{{$item.plink.href}}" class="{{$item.sparkle}} p-name">{{$item.title}}</a></h2>{{/if}}
-                       <div class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}">{{$item.body_html nofilter}}</div>
+                       <div class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}" dir="auto">{{$item.body_html nofilter}}</div>
                </div>
        </div>
        <div class="wall-item-bottom">
index 53f918813f8a9f92b19636a6eb1414be0c3a946e..a381722b1251e95a62da38739afb7f0367be8ecd 100644 (file)
@@ -63,7 +63,7 @@
                        <div class="wall-item-title p-name" id="wall-item-title-{{$item.id}}">{{$item.title}}</div>
                        <div class="wall-item-title-end"></div>
                        <div class="wall-item-body" id="wall-item-body-{{$item.id}}">
-                               <span class="e-content">{{$item.body_html nofilter}}</span>
+                               <span class="e-content" dir="auto">{{$item.body_html nofilter}}</span>
                                <div class="body-tag">
                                {{if !$item.suppress_tags}}
                                        {{foreach $item.tags as $tag}}
index 73997e7c539694aac465ecefd521fb8ae10f22f6..f5e13137a3a0ed195c658ee2180de8f313ff4f0f 100644 (file)
@@ -74,7 +74,7 @@
 
                <div itemprop="description" class="wall-item-content">
                        {{if $item.title}}<h2><a href="{{$item.plink.href}}" class="{{$item.sparkle}} p-name">{{$item.title}}</a></h2>{{/if}}
-                       <div class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}">{{$item.body_html nofilter}}</div>
+                       <div class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}" dir="auto">{{$item.body_html nofilter}}</div>
                </div>
        </div>
        <div class="wall-item-bottom">