Update search_item.tpl

Added new behavior here also
This commit is contained in:
Raroun 2023-11-19 09:52:40 +01:00 committed by GitHub
parent 98f99c536e
commit 118d736aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,16 +29,16 @@
{{* contact info header*}} {{* contact info header*}}
<div class="contact-info hidden-sm hidden-xs media-body"><!-- Desktop --> <div class="contact-info hidden-sm hidden-xs media-body"><!-- Desktop -->
<div class="preferences"> <div class="preferences">
{{if $item.network_icon != ""}} {{if $item.network_icon && $item.plink}}
<span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span> <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>
{{else}} {{elseif $item.plink}}
<span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span> <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>
{{/if}} {{elseif $item.network_icon}}
{{if $item.plink}} {{*link to the original source of the item *}} <span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
<a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" title="{{$item.plink.title}}"> {{else}}
<i class="fa fa-external-link"></i> <span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span>
</a> {{/if}}
{{/if}}
</div> </div>
<h4 class="media-heading"> <h4 class="media-heading">
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card"> <a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card">
@ -83,16 +83,15 @@
{{* contact info header for smartphones *}} {{* contact info header for smartphones *}}
<div class="contact-info contact-info-xs hidden-lg hidden-md"> <div class="contact-info contact-info-xs hidden-lg hidden-md">
<div class="preferences"> <div class="preferences">
{{if $item.network_icon != ""}} {{if $item.network_icon && $item.plink}}
<span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span> <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>
{{else}} {{elseif $item.plink}}
<span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span> <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>
{{/if}} {{elseif $item.network_icon}}
{{if $item.plink}} {{*link to the original source of the item *}} <span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
<a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" title="{{$item.plink.title}}"> {{else}}
<i class="fa fa-external-link"></i> <span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span>
</a> {{/if}}
{{/if}}
</div> </div>
<h5 class="media-heading"> <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> <a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card"><span>{{$item.name}}</span></a>