5
5
<head >
6
6
<meta charset =" utf-8" >
7
7
8
- {{-- Mastodon re="me" link --}}
8
+ {{-- Fediverse rel="me" links --}}
9
+ @php
10
+ $relMe = " mastodon, firefish" ;
11
+ $relMeList = explode (' , ' , $relMe );
12
+ @endphp
13
+
9
14
@foreach ($links as $link )
10
- @if ($link -> name === " mastodon " )
15
+ @if (in_array ( $link -> name , $relMeList ) )
11
16
<link href =" {{ $link -> link } }" rel =" me" >
12
17
@endif
13
18
@endforeach
14
-
19
+
15
20
<?php
16
21
// Theme Config
17
22
if (! function_exists (' theme' )) {
@@ -51,7 +56,7 @@ function themeAsset($path){
51
56
@endif
52
57
53
58
@if (env (' CUSTOM_META_TAGS' ) == ' true' )
54
- @include (' layouts.meta' )
59
+ @include (' layouts.meta' )
55
60
@else
56
61
<meta name =" description" content =" {{ $userinfo -> littlelink_description } }" >
57
62
<meta name =" author" content =" {{ $userinfo -> name } }" >
@@ -82,7 +87,7 @@ function themeAsset($path){
82
87
</style >
83
88
@endif
84
89
@endif
85
-
90
+
86
91
<!-- #### BEGIN Meta Tags social media preview images ####-->
87
92
<!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->
88
93
@@ -98,7 +103,7 @@ function themeAsset($path){
98
103
@else
99
104
<meta property =" og:image" content =" {{ asset (' assets/linkstack/images/logo.svg' ) } }" >
100
105
@endif
101
-
106
+
102
107
<!-- Twitter Meta Tags -->
103
108
<meta name =" twitter:card" content =" summary_large_image" >
104
109
<meta property =" twitter:domain" content =" {{ url (' ' ) } } /{{ " @" . $littlelink_name } }" >
@@ -119,7 +124,7 @@ function themeAsset($path){
119
124
{{-- <script>{!! file_get_contents(base_path("assets/external-dependencies/fontawesome.js")) !!}</script> --}}
120
125
<style >{!! str_replace (' ../' , ' studio/' , file_get_contents (base_path (" assets/external-dependencies/fontawesome.css" ))) ! !} </style >
121
126
122
- @include (' layouts.fonts' )
127
+ @include (' layouts.fonts' )
123
128
<style >{!! file_get_contents (base_path (" assets/linkstack/css/normalize.css" )) ! !} </style >
124
129
<style >{!! file_get_contents (base_path (" assets/linkstack/css/animate.css" )) ! !} </style >
125
130
@if (file_exists (base_path (" assets/linkstack/images/" ). findFile (' favicon' )) )
@@ -265,7 +270,7 @@ function themeAsset($path){
265
270
<!-- Short Bio -->
266
271
<style >.description-parent * {margin-bottom : 1em ;}.description-parent {padding-bottom : 30px ;} </style >
267
272
<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 >
268
-
273
+
269
274
<!-- Icons -->
270
275
@php $icons = DB:: table (' links' )-> where (' user_id' , $userinfo -> id )-> where (' button_id' , 94 )-> get (); @endphp
271
276
@if (count ($icons ) > 0 )
@@ -276,7 +281,7 @@ function themeAsset($path){
276
281
</div >
277
282
@endif
278
283
279
- @endforeach
284
+ @endforeach
280
285
281
286
<!-- Buttons -->
282
287
@php $initial = 1 ; @endphp
@@ -296,6 +301,9 @@ function themeAsset($path){
296
301
@case (' buy me a coffee' )
297
302
<div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-coffee 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 ><img alt =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /coffee{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/assets/linkstack/icons\/' ) } } coffee.svg @endif " >Buy me a Coffee</a ></div >
298
303
@break
304
+ @case (' firefish' )
305
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-{{ $link -> name } } button button-hover icon-hover" rel =" me noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . " ?" . $link -> link } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /{{ $linkName } }{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/assets/linkstack/icons\/' ) . " firefish" } } .svg @endif " >{{ $link -> title } } </a ></div >
306
+ @break
299
307
@case (' mastodon' )
300
308
<div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-{{ $link -> name } } button button-hover icon-hover" rel =" me noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . " ?" . $link -> link } }" @if (theme (' open_links_in_same_tab' ) != " true" )target =" _blank" @endif ><img alt =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /{{ $linkName } }{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/assets/linkstack/icons\/' ) . " mastodon" } } .svg @endif " >{{ $link -> title } } </a ></div >
301
309
@break
@@ -334,12 +342,12 @@ function themeAsset($path){
334
342
@endforeach
335
343
336
344
@include (' layouts.footer' )
337
-
345
+
338
346
</div >
339
347
</div >
340
348
</div >
341
349
342
350
@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
343
351
344
352
</body >
345
- </html >
353
+ </html >
0 commit comments