Update wall_thread.tpl

Update for code review
This commit is contained in:
Raroun 2023-11-13 18:29:26 +01:00 committed by GitHub
parent 0dbb864d7d
commit dbc9efd62b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,22 +122,19 @@ 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 *}} <div class="media-body">{{*this is the media body for comments - this div must be closed at the end of the file *}}
{{/if}} {{/if}}
{{* contact info header*}} {{* contact info header*}}
<div class="contact-info"> <div class="contact-info">
<div class="preferences"> <div class="preferences">
{{if $item.network_icon != "" && $item.plink}} {{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></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}} {{else}}
{{if $item.network_icon != ""}} {{if $item.plink}}
<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.network_name}} - {{$item.plink.title}}" target="_blank">{{$item.network_name}}</a>
{{else}} {{elseif $item.network_icon != ""}}
<span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span> <span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
{{/if}} {{else}}
{{if $item.plink}} {{*link to the original source of the item *}} <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.plink.title}}" target="_blank"> {{/if}}
<i class="fa fa-external-link"></i>
</a>
{{/if}}
{{/if}} {{/if}}
</div> </div>
{{if $item.thread_level==1}} {{if $item.thread_level==1}}