From 1dbd7a2d6505d9b4c44c0111e0209f1134ce4856 Mon Sep 17 00:00:00 2001 From: Levi Date: Tue, 12 Sep 2023 16:50:14 +0200 Subject: [PATCH] fix: group fediverse "relMe" function --- resources/views/littlelink.blade.php | 32 +++++++++++++--------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/resources/views/littlelink.blade.php b/resources/views/littlelink.blade.php index 52f3c2e..1717e0b 100644 --- a/resources/views/littlelink.blade.php +++ b/resources/views/littlelink.blade.php @@ -5,20 +5,18 @@ -{{-- Mastodon rel="me" link --}} +{{-- Fediverse rel="me" links --}} +@php + $relMe = "mastodon, firefish"; + $relMeList = explode(', ', $relMe); +@endphp + @foreach($links as $link) - @if($link->name === "mastodon") + @if(in_array($link->name, $relMeList)) @endif @endforeach -{{-- Firefish rel="me" link --}} -@foreach($links as $link) - @if($link->name === "firefish") - - @endif -@endforeach - littlelink_description }}"> @@ -89,7 +87,7 @@ if($customBackgroundExists == true){ @endif @endif - + @@ -105,7 +103,7 @@ if($customBackgroundExists == true){ @else @endif - + @@ -126,7 +124,7 @@ if($customBackgroundExists == true){ {{-- --}} - @include('layouts.fonts') + @include('layouts.fonts') @if(file_exists(base_path("assets/linkstack/images/").findFile('favicon'))) @@ -272,7 +270,7 @@ if($customBackgroundExists == true){

@if(env('ALLOW_USER_HTML') === true){!! $info->littlelink_description !!}@else{{ $info->littlelink_description }}@endif

- + @php $icons = DB::table('links')->where('user_id', $userinfo->id)->where('button_id', 94)->get(); @endphp @if(count($icons) > 0) @@ -283,7 +281,7 @@ if($customBackgroundExists == true){ @endif - @endforeach + @endforeach @php $initial = 1; @endphp @@ -344,7 +342,7 @@ if($customBackgroundExists == true){ @endforeach @include('layouts.footer') - + @@ -352,4 +350,4 @@ if($customBackgroundExists == true){ @if(theme('enable_custom_code') == "true" and theme('enable_custom_body_end') == "true" and env('ALLOW_CUSTOM_CODE_IN_THEMES') == 'true')@include($GLOBALS['themeName'] . '.extra.custom-body-end')@endif - \ No newline at end of file +