mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-07 15:11:11 +02:00
fix: group fediverse "relMe" function
This commit is contained in:
parent
8cd59630f4
commit
1dbd7a2d65
@ -5,20 +5,18 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|
||||||
{{-- Mastodon rel="me" link --}}
|
{{-- Fediverse rel="me" links --}}
|
||||||
|
@php
|
||||||
|
$relMe = "mastodon, firefish";
|
||||||
|
$relMeList = explode(', ', $relMe);
|
||||||
|
@endphp
|
||||||
|
|
||||||
@foreach($links as $link)
|
@foreach($links as $link)
|
||||||
@if($link->name === "mastodon")
|
@if(in_array($link->name, $relMeList))
|
||||||
<link href="{{$link->link}}" rel="me">
|
<link href="{{$link->link}}" rel="me">
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
{{-- Firefish rel="me" link --}}
|
|
||||||
@foreach($links as $link)
|
|
||||||
@if($link->name === "firefish")
|
|
||||||
<link href="{{$link->link}}" rel="me">
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Theme Config
|
// Theme Config
|
||||||
if (!function_exists('theme')) {
|
if (!function_exists('theme')) {
|
||||||
@ -58,7 +56,7 @@ return $path;}
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if(env('CUSTOM_META_TAGS') == 'true')
|
@if(env('CUSTOM_META_TAGS') == 'true')
|
||||||
@include('layouts.meta')
|
@include('layouts.meta')
|
||||||
@else
|
@else
|
||||||
<meta name="description" content="{{ $userinfo->littlelink_description }}">
|
<meta name="description" content="{{ $userinfo->littlelink_description }}">
|
||||||
<meta name="author" content="{{ $userinfo->name }}">
|
<meta name="author" content="{{ $userinfo->name }}">
|
||||||
@ -89,7 +87,7 @@ if($customBackgroundExists == true){
|
|||||||
</style>
|
</style>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<!--#### BEGIN Meta Tags social media preview images ####-->
|
<!--#### 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 -->
|
<!-- 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
|
@else
|
||||||
<meta property="og:image" content="{{ asset('assets/linkstack/images/logo.svg') }}">
|
<meta property="og:image" content="{{ asset('assets/linkstack/images/logo.svg') }}">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<!-- Twitter Meta Tags -->
|
<!-- Twitter Meta Tags -->
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta property="twitter:domain" content="{{ url('') }}/{{ "@" . $littlelink_name }}">
|
<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> --}}
|
{{-- <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>
|
<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/normalize.css")) !!}</style>
|
||||||
<style>{!! file_get_contents(base_path("assets/linkstack/css/animate.css")) !!}</style>
|
<style>{!! file_get_contents(base_path("assets/linkstack/css/animate.css")) !!}</style>
|
||||||
@if(file_exists(base_path("assets/linkstack/images/").findFile('favicon')))
|
@if(file_exists(base_path("assets/linkstack/images/").findFile('favicon')))
|
||||||
@ -272,7 +270,7 @@ if($customBackgroundExists == true){
|
|||||||
<!-- Short Bio -->
|
<!-- Short Bio -->
|
||||||
<style>.description-parent * {margin-bottom: 1em;}.description-parent {padding-bottom: 30px;}</style>
|
<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>
|
<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 -->
|
<!-- Icons -->
|
||||||
@php $icons = DB::table('links')->where('user_id', $userinfo->id)->where('button_id', 94)->get(); @endphp
|
@php $icons = DB::table('links')->where('user_id', $userinfo->id)->where('button_id', 94)->get(); @endphp
|
||||||
@if(count($icons) > 0)
|
@if(count($icons) > 0)
|
||||||
@ -283,7 +281,7 @@ if($customBackgroundExists == true){
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
<!-- Buttons -->
|
<!-- Buttons -->
|
||||||
@php $initial = 1; @endphp
|
@php $initial = 1; @endphp
|
||||||
@ -344,7 +342,7 @@ if($customBackgroundExists == true){
|
|||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
@include('layouts.footer')
|
@include('layouts.footer')
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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
|
@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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user