From cc7c03dab560a6b1c93c87a05a615560a84fc234 Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Mon, 27 Feb 2023 16:01:59 +0100 Subject: [PATCH] Fixed custom title bug @allesoverwaterstof https://github.com/JulianPrieber/littlelink-custom/discussions/334 --- resources/views/littlelink.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/littlelink.blade.php b/resources/views/littlelink.blade.php index c2fca1e..7654ecc 100644 --- a/resources/views/littlelink.blade.php +++ b/resources/views/littlelink.blade.php @@ -311,7 +311,7 @@ function get_operating_system() { @foreach($links as $link) - @php $linkName = str_replace('default ','',$link->name) @endphp + @php $linkName = str_replace('default ','',$link->title) @endphp @if($link->name === "icon") @elseif($link->button_id === 0)
link }}" @if(theme('open_links_in_same_tab') != "true")target="_blank"@endif >{{ $link->title }}
@@ -343,8 +343,8 @@ function get_operating_system() { @elseif($link->name === "text")
@if(env('ALLOW_USER_HTML') === true){!! $link->title !!}@else{{ $link->title }}@endif
@else - $value) { if($newLinkName == $key) { $newLinkName = $value; $isNewName = "true"; } } ?> -
link }}" @if(theme('open_links_in_same_tab') != "true")target="_blank"@endif >button-icon@if($isNewName == "true"){{ $newLinkName }}@else{{ ucfirst($newLinkName) }}@endif
+ $value) { if($newLinkName == $key) { $newLinkName = $value; $isNewName = "true"; }} if($link->name == "default email"){$link->name = "email";} if($link->name == "default email_alt"){$link->name = "email_alt";} ?> +
link }}" @if(theme('open_links_in_same_tab') != "true")target="_blank"@endif >button-iconname}}{{theme('custom_icon_extension')}} @else{{ asset('\/littlelink/icons\/') . $link->name }}.svg @endif">@if($isNewName == "true"){{ $newLinkName }}@else{{ ucfirst($newLinkName) }}@endif
@endif @endforeach