3
3
<head >
4
4
<meta charset =" utf-8" >
5
5
6
+ @foreach ($information as $info ) @php $GLOBALS [' themeName' ] = $info -> theme ; @endphp @endforeach
7
+
8
+ <?php
9
+ // Theme Config
10
+ function theme ($key ){
11
+ $key = trim ($key );
12
+ $file = base_path (' themes/' . $GLOBALS [' themeName' ] . ' /config.php' );
13
+ if (file_exists ($file )) {
14
+ $config = include $file ;
15
+ if (isset ($config [$key ])) {
16
+ return $config [$key ];
17
+ }}
18
+ return null ;}
19
+
20
+ // Theme Custom Asset
21
+ function themeAsset ($path ){
22
+ $path = url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-assets/' . $path );
23
+ return $path ;}
24
+ ? >
25
+
26
+ @if (theme (' enable_custom_code' ) == " true" and theme (' enable_custom_head' ) == " true" )@include ($GLOBALS [' themeName' ] . ' .extra.custom-head' )@endif
27
+
6
28
@include (' layouts.analytics' )
7
29
8
30
@if (config (' advanced-config.littlelink_title' ) != ' ' and env (' HOME_URL' ) === ' ' )
102
124
</head >
103
125
<body >
104
126
127
+ @if (theme (' enable_custom_code' ) == " true" and theme (' enable_custom_body' ) == " true" )@include ($GLOBALS [' themeName' ] . ' .extra.custom-body' )@endif
128
+
105
129
@if ($info -> theme != ' ' and $info -> theme != ' default' )
106
130
<!-- Enables parallax background animations -->
107
131
<div class =" background-container" >
@@ -202,7 +226,7 @@ function get_operating_system() {
202
226
</span >
203
227
@else
204
228
<span class =" copy-icon" role =" button" >
205
- <div onclick =" alert('URL has been copied to your clipboard!')" align =" right" class =" sharediv" ><div ><a class =" sharebutton button-hover icon-hover" ><i style = " color : black ; " class =" fa-solid fa-share sharebutton-img share-icon hvr-icon" ></ i ><span class =" sharebutton-mb" >Share</span ></a ></div ></div >
229
+ <div onclick =" alert('URL has been copied to your clipboard!')" align =" right" class =" sharediv" ><div ><a class =" sharebutton button-hover icon-hover" ><img alt = " share-icon " class =" sharebutton-img share-icon hvr-icon" src = " {{ asset ( ' \/littlelink/icons\/ ' ) } } share.svg " ><span class =" sharebutton-mb" >Share</span ></a ></div ></div >
206
230
</span >
207
231
@endif
208
232
<script src =" {{ asset (' littlelink/js/share.button.js' ) } }" ></script >
@@ -235,19 +259,19 @@ function get_operating_system() {
235
259
@foreach ($links as $link )
236
260
@php $linkName = str_replace (' default ' ,' ' ,$link -> name ) @endphp
237
261
@if ($link -> button_id === 0 )
238
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-title button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . ' /' . $link -> link } }" target =" _blank" >{{ $link -> title } } </a ></div >
262
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-title 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 >{{ $link -> title } } </a ></div >
239
263
@elseif ($link -> name === " phone" )
240
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-default button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ $link -> link } }" ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ asset (' \/littlelink/icons\/' ) } } phone.svg" ></i >{{ $link -> title } } </a ></div >
241
- @elseif ($link -> name === " custom" and $link -> custom_css === " " or $link -> custom_css === " NULL" )
242
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-{{ $link -> name } } button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . ' /' . $link -> link } }" target =" _blank" ><i style =" color : {{$link->custom_icon}}" class =" icon hvr-icon fa {{ $link -> custom_icon } }" ></i >{{ $link -> title } } </a ></div >
264
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-default button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ $link -> link } }" ><img alt =" button-icon" class =" icon hvr-icon" src =" @if ( theme ( ' use_custom_icons ' ) == " true " ) {{ url ( ' themes/ ' . $GLOBALS [ ' themeName ' ] . ' /extra/custom-icons ' ) } } /phone {{ theme ( ' custom_icon_extension ' ) } } @else {{ asset (' \/littlelink/icons\/' )} } phone.svg @endif " ></i >{{ $link -> title } } </a ></div >
265
+ @elseif ($link -> name === " custom" and $link -> custom_css === " " or $link -> custom_css === " NULL" or theme ( ' allow_custom_buttons ' ) == " false " )
266
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-{{ $link -> name } } 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 ><i style =" color : {{$link->custom_icon}}" class =" icon hvr-icon fa {{ $link -> custom_icon } }" ></i >{{ $link -> title } } </a ></div >
243
267
@elseif ($link -> name === " custom" and $link -> custom_css != " " )
244
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-hover icon-hover" style =" {{ $link -> custom_css } }" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . ' /' . $link -> link } }" target =" _blank" ><i style =" color : {{$link->custom_icon}}" class =" icon hvr-icon fa {{ $link -> custom_icon } }" ></i >{{ $link -> title } } </a ></div >
268
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-hover icon-hover" style =" {{ $link -> custom_css } }" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . ' /' . $link -> link } }" @if ( theme ( ' open_links_in_same_tab ' ) != " true " ) target =" _blank" @endif ><i style =" color : {{$link->custom_icon}}" class =" icon hvr-icon fa {{ $link -> custom_icon } }" ></i >{{ $link -> title } } </a ></div >
245
269
@elseif ($link -> name === " buy me a coffee" )
246
- <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 } }" target =" _blank" ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ asset (' \/littlelink/icons\/' ) } } coffee.svg" >Buy me a Coffee</a ></div >
247
- @elseif ($link -> name === " custom_website" and $link -> custom_css === " " or $link -> custom_css === " NULL" )
248
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-custom_website button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . ' /' . $link -> link } }" target =" _blank" ><img alt =" button-icon" class =" icon hvr-icon" src =" https://icons.duckduckgo.com/ip3/{{ strp ($link -> link )} } .ico" >{{ $link -> title } } </a ></div >
270
+ <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 =" button-icon" 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 (' \/littlelink/icons\/' )} } coffee.svg @endif " >Buy me a Coffee</a ></div >
271
+ @elseif ($link -> name === " custom_website" and $link -> custom_css === " " or $link -> custom_css === " NULL" or theme ( ' allow_custom_buttons ' ) == " false " )
272
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-custom_website 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 =" button-icon" class =" icon hvr-icon" src =" https://icons.duckduckgo.com/ip3/{{ strp ($link -> link )} } .ico" >{{ $link -> title } } </a ></div >
249
273
@elseif ($link -> name === " custom_website" and $link -> custom_css != " " )
250
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-hover icon-hover" style =" {{ $link -> custom_css } }" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . ' /' . $link -> link } }" target =" _blank" ><img alt =" button-icon" class =" icon hvr-icon" src =" https://icons.duckduckgo.com/ip3/{{ strp ($link -> link )} } .ico" >{{ $link -> title } } </a ></div >
274
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-hover icon-hover" style =" {{ $link -> custom_css } }" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . ' /' . $link -> link } }" @if ( theme ( ' open_links_in_same_tab ' ) != " true " ) target =" _blank" @endif ><img alt =" button-icon" class =" icon hvr-icon" src =" https://icons.duckduckgo.com/ip3/{{ strp ($link -> link )} } .ico" >{{ $link -> title } } </a ></div >
251
275
@elseif ($link -> name === " space" )
252
276
<?php
253
277
if (is_numeric ($link -> title ) and $link -> title < 10 )
@@ -260,7 +284,7 @@ function get_operating_system() {
260
284
@elseif ($link -> name === " heading" )
261
285
<h2 >{{ $link -> title } } </h2 >
262
286
@else
263
- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-{{ $link -> name } } button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . ' /' . $link -> link } }" target =" _blank" ><img alt =" button-icon" class =" icon hvr-icon" src =" {{ asset (' \/littlelink/icons\/' ) . $linkName } } .svg" >{{ ucfirst ($linkName ) } } </a ></div >
287
+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-{{ $link -> name } } 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 =" button-icon" 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 (' \/littlelink/icons\/' ) . $linkName } } .svg @endif " >{{ ucfirst ($linkName ) } } </a ></div >
264
288
@endif
265
289
@endforeach
266
290
@@ -269,5 +293,8 @@ function get_operating_system() {
269
293
</div >
270
294
</div >
271
295
</div >
296
+
297
+ @if (theme (' enable_custom_code' ) == " true" and theme (' enable_custom_body_end' ) == " true" )@include ($GLOBALS [' themeName' ] . ' .extra.custom-body-end' )@endif
298
+
272
299
</body >
273
300
</html >
0 commit comments