]> git.mxchange.org Git - friendica.git/commitdiff
Update shared_content.tpl
authorRaroun <Raroun@users.noreply.github.com>
Sun, 19 Nov 2023 08:50:30 +0000 (09:50 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Nov 2023 08:50:30 +0000 (09:50 +0100)
Added new behavior here too

view/templates/shared_content.tpl

index c3a808d732e78d529433f550bc4c16df8691cd7e..83e5dd257998fa93882bddd4985203f68224191c 100644 (file)
                        </p>
                </div>
                <div class="preferences">
-                       {{if $network_icon}}
-                               <span class="wall-item-network"><i class="fa fa-{{$network_icon}}" title="{{$network_name}}" aria-hidden="true"></i></span>
-                       {{else}}
-                               <span class="wall-item-network">{{$network_name}}</span>
-                       {{/if}}
-                       {{if $link}}
-                               <a href="{{$link}}" class="plink u-url" aria-label="{{$link_title}}" title="{{$link_title}}">
-                                       <i class="fa fa-external-link"></i>
-                               </a>
-                       {{/if}}
+                       {{if $network_icon && $link}}
+                               <span class="wall-item-network"><a href="{{$link}}" class="plink u-url" aria-label="{{$link_title}}" target="_blank"><i class="fa fa-{{$network_icon}} fakelink" title="{{$network_name}} - {{$link_title}}" aria-hidden="true"></i></a></span>
+                               {{elseif $link}}
+                                               <a href="{{$link}}" class="plink u-url" aria-label="{{$link_title}}" title="{{$network_name}} - {{$link_title}}" target="_blank">{{$network_name}}</a>
+                               {{elseif $network_icon}}
+                                               <span class="wall-item-network"><i class="fa fa-{{$network_icon}}" title="{{$network_name}}" aria-hidden="true"></i></span>
+                               {{else}}
+                                       <span class="wall-item-network" title="{{$app}}">{{$network_name}}</span>
+                       {{/if}}
                </div>
        </div>
        <blockquote class="shared_content" dir="auto">{{$content nofilter}}</blockquote>