]> git.mxchange.org Git - friendica.git/commitdiff
Improve "direction" icons on "vier", new direction "global"
authorMichael <heluecht@pirati.ca>
Mon, 14 Sep 2020 10:43:16 +0000 (10:43 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 14 Sep 2020 10:43:16 +0000 (10:43 +0000)
include/conversation.php
view/theme/frio/templates/sub/direction.tpl
view/theme/vier/templates/sub/direction.tpl

index a995ea4ad17ee322c022c470556f6300204674b9..8bfada619f8f9486e9ad377f67076d1464c13299 100644 (file)
@@ -769,6 +769,10 @@ function conversation_fetch_comments($thread_items, $pinned) {
                        case Item::PT_STORED:
                                $row['direction'] = ['direction' => 8, 'title' => DI::l10n()->t('Stored')];
                                break;
+                       default:
+                               if ($row['uid'] == 0) {
+                                       $row['direction'] = ['direction' => 9, 'title' => DI::l10n()->t('Global')];
+                               }
                }
 
                if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id']) &&
index 78731943329b21ebd4d26b54290f7973e5cc6525..50c7d5b8d44eb165da1e6ddd955c40f665fb20f6 100644 (file)
@@ -17,6 +17,8 @@
                <i class="fa fa-at" aria-hidden="true" title="{{$direction.title}}"></i>
        {{elseif $direction.direction == 8}}
                <i class="fa fa-share" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 9}}
+               <i class="fa fa-globe" aria-hidden="true" title="{{$direction.title}}"></i>
        {{/if}}
 </span>
 {{/if}}
index 4ebe21677278b36dbe8b27b936b627f57b1aa780..c4f959beb75a3845bd11ac1393e3c2a5aed874da 100644 (file)
@@ -6,17 +6,19 @@
        {{elseif $direction.direction == 2}}
                <i class="icon-download" aria-hidden="true" title="{{$direction.title}}"></i>
        {{elseif $direction.direction == 3}}
-               <i class="icon-share" aria-hidden="true" title="{{$direction.title}}"></i>
+               <i class="icon-retweet" aria-hidden="true" title="{{$direction.title}}"></i>
        {{elseif $direction.direction == 4}}
                <i class="icon-tag" aria-hidden="true" title="{{$direction.title}}"></i>
        {{elseif $direction.direction == 5}}
                <i class="icon-commenting" aria-hidden="true" title="{{$direction.title}}"></i>
        {{elseif $direction.direction == 6}}
-               <i class="icon-ok-sign" aria-hidden="true" title="{{$direction.title}}"></i>
+               <i class="icon-user" aria-hidden="true" title="{{$direction.title}}"></i>
        {{elseif $direction.direction == 7}}
                <i class="icon-forward" aria-hidden="true" title="{{$direction.title}}"></i>
        {{elseif $direction.direction == 8}}
                <i class="icon-share" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 9}}
+               <i class="icon-globe" aria-hidden="true" title="{{$direction.title}}"></i>
        {{/if}}
 </span>
 {{/if}}