mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:00:16 +00:00
Merge pull request #13633 from Raroun/FR#13624_Frio_Combine_Link_to_Source_with_Platform_icon_in_post_view
[frio]: Combine Link to Source with Platform icon in post view
This commit is contained in:
commit
64cdb6ee80
1 changed files with 37 additions and 33 deletions
|
@ -122,19 +122,18 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
<div class="media-body">{{*this is the media body for comments - this div must be closed at the end of the file *}}
|
||||
{{/if}}
|
||||
|
||||
{{* contact info header*}}
|
||||
{{* contact info header*}}
|
||||
<div class="contact-info">
|
||||
<div class="preferences">
|
||||
{{if $item.network_icon != ""}}
|
||||
<span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
|
||||
{{else}}
|
||||
<span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span>
|
||||
{{/if}}
|
||||
{{if $item.plink}} {{*link to the original source of the item *}}
|
||||
<a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" title="{{$item.plink.title}}" target="_blank">
|
||||
<i class="fa fa-external-link"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{if $item.network_icon && $item.plink}}
|
||||
<span class="wall-item-network"><a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" target="_blank"><i class="fa fa-{{$item.network_icon}} fakelink" title="{{$item.network_name}} - {{$item.plink.title}}" aria-hidden="true"></i></a></span>
|
||||
{{elseif $item.plink}}
|
||||
<a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" title="{{$item.network_name}} - {{$item.plink.title}}" target="_blank">{{$item.network_name}}</a>
|
||||
{{elseif $item.network_icon}}
|
||||
<span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
|
||||
{{else}}
|
||||
<span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{if $item.thread_level==1}}
|
||||
<div class="hidden-sm hidden-xs media-body"><!-- <= For computer -->
|
||||
|
@ -148,13 +147,6 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
<span class="wall-item-name {{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{if $item.connector}}
|
||||
<small><i class="fa fa-plug" title="{{$item.connector}}" aria-hidden="true"></i></small>
|
||||
{{else}}
|
||||
<span class="navicon lock fakelink" onClick="lockview(event, 'item', {{$item.id}});" title="{{$item.privacy}}" data-toggle="tooltip">
|
||||
<small><i class="fa {{if $item.private == 1}}fa-lock{{elseif $item.private == 0}}fa-globe{{else}}fa-low-vision{{/if}}" aria-hidden="true"></i></small>
|
||||
</span>
|
||||
{{/if}}
|
||||
</h4>
|
||||
|
||||
<div class="additional-info text-muted">
|
||||
|
@ -173,7 +165,15 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
• <i class="fa fa-thumb-tack" aria-hidden="true" title="{{$item.pinned}}"></i>
|
||||
<span class="sr-only">{{$item.pinned}}</span>
|
||||
{{/if}}
|
||||
|
||||
{{if $item.connector}}
|
||||
•
|
||||
<small><i class="fa fa-plug" title="{{$item.connector}}" aria-hidden="true"></i></small>
|
||||
{{else}}
|
||||
•
|
||||
<span class="navicon lock fakelink" onClick="lockview(event, 'item', {{$item.id}});" title="{{$item.privacy}}" data-toggle="tooltip">
|
||||
<small><i class="fa {{if $item.private == 1}}fa-lock{{elseif $item.private == 0}}fa-globe{{else}}fa-low-vision{{/if}}" aria-hidden="true"></i></small>
|
||||
</span>
|
||||
{{/if}}
|
||||
</small>
|
||||
</div>
|
||||
|
||||
|
@ -190,13 +190,6 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
<div class="contact-info-xs hidden-lg hidden-md"><!-- <= For smartphone (responsive) -->
|
||||
<h5 class="media-heading">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card"><span>{{$item.name}}</span></a>
|
||||
{{if $item.connector}}
|
||||
<small><i class="fa fa-plug" title="{{$item.connector}}" aria-hidden="true"></i></small>
|
||||
{{else}}
|
||||
<span class="navicon lock fakelink" onClick="lockview(event, 'item', {{$item.id}});" title="{{$item.privacy}}" data-toggle="tooltip">
|
||||
<small><i class="fa {{if $item.private == 1}}fa-lock{{elseif $item.private == 0}}fa-globe{{else}}fa-low-vision{{/if}}" aria-hidden="true"></i></small>
|
||||
</span>
|
||||
{{/if}}
|
||||
<p class="text-muted">
|
||||
<small>
|
||||
<a href="{{$item.plink.orig}}">
|
||||
|
@ -209,6 +202,15 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
{{if $item.direction}}
|
||||
{{include file="sub/direction.tpl" direction=$item.direction}}
|
||||
{{/if}}
|
||||
{{if $item.connector}}
|
||||
•
|
||||
<small><i class="fa fa-plug" title="{{$item.connector}}" aria-hidden="true"></i></small>
|
||||
{{else}}
|
||||
•
|
||||
<span class="navicon lock fakelink" onClick="lockview(event, 'item', {{$item.id}});" title="{{$item.privacy}}" data-toggle="tooltip">
|
||||
<i class="fa {{if $item.private == 1}}fa-lock{{elseif $item.private == 0}}fa-globe{{else}}fa-low-vision{{/if}}" aria-hidden="true"></i>
|
||||
</span>
|
||||
{{/if}}
|
||||
</small>
|
||||
</p>
|
||||
</h5>
|
||||
|
@ -218,13 +220,6 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
<div class="contact-info-comment">
|
||||
<h5 class="media-heading">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card"><span class="fakelink">{{$item.name}}</span></a>
|
||||
{{if $item.connector}}
|
||||
<small><i class="fa fa-plug" title="{{$item.connector}}" aria-hidden="true"></i></small>
|
||||
{{else}}
|
||||
<span class="navicon lock fakelink" onClick="lockview(event, 'item', {{$item.id}});" title="{{$item.privacy}}" data-toggle="tooltip">
|
||||
<small><i class="fa {{if $item.private == 1}}fa-lock{{elseif $item.private == 0}}fa-globe{{else}}fa-low-vision{{/if}}" aria-hidden="true"></i></small>
|
||||
</span>
|
||||
{{/if}}
|
||||
<span class="text-muted">
|
||||
</h5>
|
||||
<small>
|
||||
|
@ -251,6 +246,15 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
{{if $item.direction}}
|
||||
{{include file="sub/direction.tpl" direction=$item.direction}}
|
||||
{{/if}}
|
||||
{{if $item.connector}}
|
||||
•
|
||||
<small><i class="fa fa-plug" title="{{$item.connector}}" aria-hidden="true"></i></small>
|
||||
{{else}}
|
||||
<span class="navicon lock fakelink" onClick="lockview(event, 'item', {{$item.id}});" title="{{$item.privacy}}" data-toggle="tooltip">
|
||||
•
|
||||
<small><i class="fa {{if $item.private == 1}}fa-lock{{elseif $item.private == 0}}fa-globe{{else}}fa-low-vision{{/if}}" aria-hidden="true"></i></small>
|
||||
</span>
|
||||
{{/if}}
|
||||
</small>
|
||||
</span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue