Skip to content

Commit 346340a

Browse files
committed
Remove all external dependencies
1 parent deac532 commit 346340a

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

resources/views/components/pageitems/link-display.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
44
@endphp
55

6+
@include('components.favicon')
7+
68
<a class="button button-custom 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>
79
@if($params->GetSiteIcon ?? true)
8-
<img alt="button-icon" class="icon hvr-icon" src="https://icons.duckduckgo.com/ip3/{{$BaseURL}}.ico">
10+
<img alt="button-icon" class="icon hvr-icon" src="{{getFavIcon($BaseURL)}}">
911
@endif
1012

1113
{{ $link->title }}

resources/views/home.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ function themeAsset($path){
128128
}
129129
</style>
130130

131+
@include('components.favicon')
132+
131133
</head>
132134
<body>
133135

@@ -213,9 +215,9 @@ function themeAsset($path){
213215
@elseif($button['button'] === "buy me a coffee")
214216
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-coffee button button-hover icon-hover" rel="noopener noreferrer nofollow" href="{{ $button['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>
215217
@elseif($button['button'] === "custom_website" and ($button['custom_css'] === "" or $button['custom_css'] === "NULL") or (theme('allow_custom_buttons') == "false" and $button['button'] === "custom_website"))
216-
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-custom_website button button-hover icon-hover" rel="noopener noreferrer nofollow" href="{{ $button['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($button['link'])}}.ico">{{ $button['title'] }}</a></div>
218+
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-custom_website button button-hover icon-hover" rel="noopener noreferrer nofollow" href="{{ $button['link'] }}" @if(theme('open_links_in_same_tab') != "true")target="_blank"@endif ><img alt="button-icon" class="icon hvr-icon" src="{{getFavIcon($button['link'])}}">{{ $button['title'] }}</a></div>
217219
@elseif($button['button'] === "custom_website" and $button['custom_css'] != "")
218-
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-hover icon-hover" style="{{ $button['custom_css'] }}" rel="noopener noreferrer nofollow" href="{{ $button['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($button['link'])}}.ico">{{ $button['title'] }}</a></div>
220+
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-hover icon-hover" style="{{ $button['custom_css'] }}" rel="noopener noreferrer nofollow" href="{{ $button['link'] }}" @if(theme('open_links_in_same_tab') != "true")target="_blank"@endif ><img alt="button-icon" class="icon hvr-icon" src="{{getFavIcon($button['link'])}}">{{ $button['title'] }}</a></div>
219221
@elseif($button['button'] === "space")
220222
<?php
221223
if (is_numeric($button['title']) and $button['title'] < 10)

resources/views/studio/button-editor.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@if(env('ENABLE_BUTTON_EDITOR') === true)
22
@extends('layouts.sidebar')
33

4+
@include('components.favicon')
5+
46
@section('content')
57
@push('sidebar-scripts')
68
<?php function strp($urlStrp){return str_replace(array('http://', 'https://'), '', $urlStrp);} ?>
@@ -216,7 +218,7 @@
216218
@if($buttonId == 1)
217219
<center><div id="sample" style="--delay: 1s; border-radius:8px !important; max-width: 400px; width: 80%; class="button-entrance"><div class="button-demo button hvr-grow hvr-icon-wobble-vertical"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/') . 'custom' }}.svg">{{ $title }}</div></div></center>
218220
@else
219-
<center><div id="sample" style="--delay: 1s; border-radius:8px !important; max-width: 400px; width: 80%; class="button-entrance"><div class="button-demo button hvr-grow hvr-icon-wobble-vertical"><img class="wicon hvr-icon" src="https://icons.duckduckgo.com/ip3/{{strp($link)}}.ico">{{ $title }}</div></div></center>
221+
<center><div id="sample" style="--delay: 1s; border-radius:8px !important; max-width: 400px; width: 80%; class="button-entrance"><div class="button-demo button hvr-grow hvr-icon-wobble-vertical"><img class="wicon hvr-icon" src="{{getFavIcon($link)}}">{{ $title }}</div></div></center>
220222
@endif
221223

222224
</section>
@@ -255,9 +257,9 @@
255257
@if($custom_css === "" or $custom_css === "NULL" and $buttonId == 1)
256258
<center><div style="--delay: 1s" class="button-entrance"><div class="button-demo button-custom button hvr-grow hvr-icon-wobble-vertical"><img class="icon hvr-icon fa {{$custom_icon}}">{{ $title }}</div></div></center>
257259
@elseif($custom_css === "" or $custom_css === "NULL" and $buttonId == 2)
258-
<center><div style="--delay: 1s" class="button-entrance"><div class="button-custom_website button hvr-grow hvr-icon-wobble-vertical"><img class="wicon hvr-icon" src="https://icons.duckduckgo.com/ip3/{{strp($link)}}.ico">{{ $title }}</div></div></center>
260+
<center><div style="--delay: 1s" class="button-entrance"><div class="button-custom_website button hvr-grow hvr-icon-wobble-vertical"><img class="wicon hvr-icon" src="{{getFavIcon($link)}}">{{ $title }}</div></div></center>
259261
@elseif($custom_css != "" and $buttonId == 2)
260-
<center><div style="--delay: 1s" class="button-entrance"><div style="{{ $custom_css }}" class="button-custom_website button hvr-grow hvr-icon-wobble-vertical"><img class="wicon hvr-icon" src="https://icons.duckduckgo.com/ip3/{{strp($link)}}.ico">{{ $title }}</div></div></center>
262+
<center><div style="--delay: 1s" class="button-entrance"><div style="{{ $custom_css }}" class="button-custom_website button hvr-grow hvr-icon-wobble-vertical"><img class="wicon hvr-icon" src="{{getFavIcon($link)}}">{{ $title }}</div></div></center>
261263
@else
262264
<center><div style="--delay: 1s" class="button-entrance"><div style="{{ $custom_css }}" class="button-demo hvr-grow hvr-icon-wobble-vertical"><i style="color: {{$custom_icon}}" class="icon hvr-icon fa {{$custom_icon}}"></i>{{ $title }}</div></div></center>
263265
@endif

resources/views/studio/links.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
</style>
3131
@endpush
3232

33+
@include('components.favicon')
34+
3335
<?php function strp($urlStrp){return str_replace(array('http://', 'https://'), '', $urlStrp);} ?>
3436

3537
<div class="row">
@@ -67,7 +69,7 @@
6769
<span class='h6'>
6870
<?php $button = Button::find($link->button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} ?>
6971
@if($button->name == "custom_website")
70-
<span style="border: 1px solid #d0d4d7 !important;border-radius:5px;background-color:#6c757d;width:25px!important;height:25px!important;"><img style="margin-bottom:3px;margin-left:4px;margin-right:4px;max-width:15px;max-height:15px;" alt="button-icon" class="icon hvr-icon" src="https://icons.duckduckgo.com/ip3/{{strp($link->link)}}.ico"></span>
72+
<span style="border: 1px solid #d0d4d7 !important;border-radius:5px;background-color:#6c757d;width:25px!important;height:25px!important;"><img style="margin-bottom:3px;margin-left:4px;margin-right:4px;max-width:15px;max-height:15px;" alt="button-icon" class="icon hvr-icon" src="{{getFavIcon($link->link)}}"></span>
7173
@elseif($button->name == "space")
7274
<span style="border: 1px solid #d0d4d7 !important;border-radius:5px;background-color:#6c757d;width:25px!important;height:25px!important;"><i style="margin-left:2.83px;margin-right:-1px;color:#fff;" class='bi bi-distribute-vertical'>&nbsp;</i></span>
7375
@elseif($button->name == "heading")

0 commit comments

Comments
 (0)