@@ -286,54 +286,54 @@ function themeAsset($path){
286286 <!-- Buttons -->
287287 @php $initial = 1 ; @endphp
288288
289- @foreach ($links as $link )
290- @php $linkName = str_replace (' default ' ,' ' ,$link -> title ) @endphp
291- @switch ($link -> name )
292- @case (' icon' )
293- @break
294- @case (' phone' )
295- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-default button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . " ?" . $link -> link } }" ><img alt =" {{ $link -> name } }" 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 (' \/assets/linkstack/icons\/' ) } } phone.svg @endif " ></i >{{ $link -> title } } </a ></div >
296- @break
297- @case (' default email' )
298- @case (' default email_alt' )
299- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-default button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . " ?" . $link -> link } }" ><img alt =" email" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /email{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/assets/linkstack/icons\/' ) } } email.svg @endif " ></i >{{ $link -> title } } </a ></div >
300- @break
301- @case (' buy me a coffee' )
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 >
303- @break
304- @case (' space' )
305- @php $title = $link -> title ; if (is_numeric ($title )) { echo str_repeat (" <br>" , $title < 10 ? $title : 10 ); } else { echo " <br><br><br>" ; } @endphp
306- @break
307- @case (' heading' )
308- <div class =" fadein" ><h2 >{{ $link -> title } } </h2 ></div >
309- @break
310- @case (' text' )
311- <div class =" fadein" ><span style =" " >@if (env (' ALLOW_USER_HTML' ) === true ){!! $link -> title ! !}@else {{ $link -> title } }@endif </span ></div >
312- @break
313- @case (' vcard' )
314- <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-default button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' vcard' ) . ' /' . $link -> id } }" ><img alt =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /vcard{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/assets/linkstack/icons\/' ) } } vcard.svg @endif " ></i >{{ $link -> title } } </a ></div >
289+ @foreach ($links as $link )
290+ @php $linkName = str_replace (' default ' ,' ' ,$link -> title ) @endphp
291+ @switch ($link -> name )
292+ @case (' icon' )
315293 @break
316- @case (' custom' )
317- @if ($link -> custom_css === " " or $link -> custom_css === " NULL" or (theme (' allow_custom_buttons' ) == " false" ) )
318- <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 >
319- @break
320- @elseif ($link -> custom_css != " " )
321- <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 >
322- @break
323- @endif
324- @case (' custom_website' )
325- @if ($link -> custom_css === " " or $link -> custom_css === " NULL" or (theme (' allow_custom_buttons' ) == " false" ) )
326- <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 =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (file_exists (base_path (" assets/favicon/icons/" ). localIcon ($link -> id )) ){{ url (' assets/favicon/icons/' . localIcon ($link -> id ))} }@else {{ getFavIcon ($link -> id )} }@endif " onerror =" this.onerror=null; this.src='{{ asset (' assets/linkstack/icons/website.svg' )} } ';" >{{ $link -> title } } </a ></div >
327- @break
328- @elseif ($link -> custom_css != " " )
329- <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 =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (file_exists (base_path (" assets/favicon/icons/" ). localIcon ($link -> id )) ){{ url (' assets/favicon/icons/' . localIcon ($link -> id ))} }@else {{ getFavIcon ($link -> id )} }@endif " onerror =" this.onerror=null; this.src='{{ asset (' assets/linkstack/icons/website.svg' )} } ';" >{{ $link -> title } } </a ></div >
330- @break
331- @endif
332- @default
333- <?php include base_path (' config/button-names.php' ); $newLinkName = $linkName ; $isNewName = " false" ; foreach ($buttonNames as $key => $value ) { if ($newLinkName == $key ) { $newLinkName = $value ; $isNewName = " true" ; }} ? >
334- <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 =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /{{ $link -> name } }{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/assets/linkstack/icons\/' ) . $link -> name } } .svg @endif " >@if ($isNewName == " true" ){{ ucfirst ($newLinkName ) } }@else {{ ucfirst ($newLinkName ) } }@endif </a ></div >
335- @endswitch
336- @endforeach
294+ @case (' phone' )
295+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-default button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . " ?" . $link -> link } }" ><img alt =" {{ $link -> name } }" 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 (' \/assets/linkstack/icons\/' ) } } phone.svg @endif " ></i >{{ $link -> title } } </a ></div >
296+ @break
297+ @case (' default email' )
298+ @case (' default email_alt' )
299+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-default button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' clickNumber' ) . ' /' . $link -> id . " ?" . $link -> link } }" ><img alt =" email" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /email{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/assets/linkstack/icons\/' ) } } email.svg @endif " ></i >{{ $link -> title } } </a ></div >
300+ @break
301+ @case (' buy me a coffee' )
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 >
303+ @break
304+ @case (' space' )
305+ @php $title = $link -> title ; if (is_numeric ($title )) { echo str_repeat (" <br>" , $title < 10 ? $title : 10 ); } else { echo " <br><br><br>" ; } @endphp
306+ @break
307+ @case (' heading' )
308+ <div class =" fadein" ><h2 >{{ $link -> title } } </h2 ></div >
309+ @break
310+ @case (' text' )
311+ <div class =" fadein" ><span style =" " >@if (env (' ALLOW_USER_HTML' ) === true ){!! $link -> title ! !}@else {{ $link -> title } }@endif </span ></div >
312+ @break
313+ @case (' vcard' )
314+ <div style =" --delay : {{ $initial ++ }}s " class =" button-entrance" ><a class =" button button-default button button-hover icon-hover" rel =" noopener noreferrer nofollow" href =" {{ route (' vcard' ) . ' /' . $link -> id } }" ><img alt =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /vcard{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/assets/linkstack/icons\/' ) } } vcard.svg @endif " ></i >{{ $link -> title } } </a ></div >
315+ @break
316+ @case (' custom' )
317+ @if ($link -> custom_css === " " or $link -> custom_css === " NULL" or (theme (' allow_custom_buttons' ) == " false" ) )
318+ <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 >
319+ @break
320+ @elseif ($link -> custom_css != " " )
321+ <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 >
322+ @break
323+ @endif
324+ @case (' custom_website' )
325+ @if ($link -> custom_css === " " or $link -> custom_css === " NULL" or (theme (' allow_custom_buttons' ) == " false" ) )
326+ <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 =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (file_exists (base_path (" assets/favicon/icons/" ). localIcon ($link -> id )) ){{ url (' assets/favicon/icons/' . localIcon ($link -> id ))} }@else {{ getFavIcon ($link -> id )} }@endif " onerror =" this.onerror=null; this.src='{{ asset (' assets/linkstack/icons/website.svg' )} } ';" >{{ $link -> title } } </a ></div >
327+ @break
328+ @elseif ($link -> custom_css != " " )
329+ <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 =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (file_exists (base_path (" assets/favicon/icons/" ). localIcon ($link -> id )) ){{ url (' assets/favicon/icons/' . localIcon ($link -> id ))} }@else {{ getFavIcon ($link -> id )} }@endif " onerror =" this.onerror=null; this.src='{{ asset (' assets/linkstack/icons/website.svg' )} } ';" >{{ $link -> title } } </a ></div >
330+ @break
331+ @endif
332+ @default
333+ <?php include base_path (' config/button-names.php' ); $newLinkName = $linkName ; $isNewName = " false" ; foreach ($buttonNames as $key => $value ) { if ($newLinkName == $key ) { $newLinkName = $value ; $isNewName = " true" ; }} ? >
334+ <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 =" {{ $link -> name } }" class =" icon hvr-icon" src =" @if (theme (' use_custom_icons' ) == " true" ){{ url (' themes/' . $GLOBALS [' themeName' ] . ' /extra/custom-icons' ) } } /{{ $link -> name } }{{ theme (' custom_icon_extension' )} } @else {{ asset (' \/assets/linkstack/icons\/' ) . $link -> name } } .svg @endif " >@if ($isNewName == " true" ){{ ucfirst ($newLinkName ) } }@else {{ ucfirst ($newLinkName ) } }@endif </a ></div >
335+ @endswitch
336+ @endforeach
337337
338338 @include (' layouts.footer' )
339339
0 commit comments