LinkStack/resources/views/components/pageitems/link-display.blade.php
Julian Prieber 75a5dafe9b Revert "Update link-display.blade.php"
This reverts commit 6064ea026bc68a2d1c02f54741bfc04e8090567d.
2022-11-28 17:03:11 +01:00

14 lines
574 B
PHP

@php
$BaseURL = str_replace(array('http://', 'https://'), '', $link->link)
@endphp
<a class="button button-custom button button-hover icon-hover" rel="noopener noreferrer nofollow" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" @if(theme('open_links_in_same_tab') !="true" )target="_blank" @endif>
@if($params->GetSiteIcon ?? true)
<img alt="button-icon" class="icon hvr-icon" src="{{asset('studio/favicon/favicon.gif')}}" onload="this.src='{{url('ico').'?'.$BaseURL}}'" loading="lazy">
@endif
{{ $link->title }}
</a>