fix: group fediverse "relMe" function

This commit is contained in:
Levi 2023-09-12 16:50:14 +02:00
parent 8cd59630f4
commit 1dbd7a2d65
1 changed files with 15 additions and 17 deletions

View File

@ -5,20 +5,18 @@
<head>
<meta charset="utf-8">
{{-- 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))
<link href="{{$link->link}}" rel="me">
@endif
@endforeach
{{-- Firefish rel="me" link --}}
@foreach($links as $link)
@if($link->name === "firefish")
<link href="{{$link->link}}" rel="me">
@endif
@endforeach
<?php
// Theme Config
if (!function_exists('theme')) {
@ -58,7 +56,7 @@ return $path;}
@endif
@if(env('CUSTOM_META_TAGS') == 'true')
@include('layouts.meta')
@include('layouts.meta')
@else
<meta name="description" content="{{ $userinfo->littlelink_description }}">
<meta name="author" content="{{ $userinfo->name }}">
@ -89,7 +87,7 @@ if($customBackgroundExists == true){
</style>
@endif
@endif
<!--#### BEGIN Meta Tags social media preview images ####-->
<!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->
@ -105,7 +103,7 @@ if($customBackgroundExists == true){
@else
<meta property="og:image" content="{{ asset('assets/linkstack/images/logo.svg') }}">
@endif
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="{{ url('') }}/{{ "@" . $littlelink_name }}">
@ -126,7 +124,7 @@ if($customBackgroundExists == true){
{{-- <script>{!! file_get_contents(base_path("assets/external-dependencies/fontawesome.js")) !!}</script> --}}
<style>{!! str_replace('../', 'studio/', file_get_contents(base_path("assets/external-dependencies/fontawesome.css"))) !!}</style>
@include('layouts.fonts')
@include('layouts.fonts')
<style>{!! file_get_contents(base_path("assets/linkstack/css/normalize.css")) !!}</style>
<style>{!! file_get_contents(base_path("assets/linkstack/css/animate.css")) !!}</style>
@if(file_exists(base_path("assets/linkstack/images/").findFile('favicon')))
@ -272,7 +270,7 @@ if($customBackgroundExists == true){
<!-- Short Bio -->
<style>.description-parent * {margin-bottom: 1em;}.description-parent {padding-bottom: 30px;}</style>
<center><div class="fadein description-parent"><p class="fadein">@if(env('ALLOW_USER_HTML') === true){!! $info->littlelink_description !!}@else{{ $info->littlelink_description }}@endif</p></div></center>
<!-- Icons -->
@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){
</div>
@endif
@endforeach
@endforeach
<!-- Buttons -->
@php $initial = 1; @endphp
@ -344,7 +342,7 @@ if($customBackgroundExists == true){
@endforeach
@include('layouts.footer')
</div>
</div>
</div>
@ -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
</body>
</html>
</html>