From fa1210a2f2e8efe3b8c5d84428a0b54215c9b13a Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Tue, 16 Aug 2022 18:01:49 +0200 Subject: [PATCH] Changed from Google to DuckDuckGo API to retrieve custom website icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed from Google to DuckDuckGo API for improved privacy and compliance with local laws in an effort to degoogle LittleLink Custom. See: https://github.com/JulianPrieber/littlelink-custom/issues/124 --- resources/views/home.blade.php | 5 +++-- resources/views/littlelink.blade.php | 5 +++-- resources/views/studio/button-editor.blade.php | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index f861735..fe08258 100755 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -135,6 +135,7 @@ foreach($pages as $page) + @if(config('advanced-config.use_custom_buttons') == 'true') @@ -147,9 +148,9 @@ foreach($pages as $page) @elseif($button['button'] === "buy me a coffee")
@elseif($button['button'] === "custom_website"and $button['custom_css'] === "" or $button['custom_css'] === "NULL") - + @elseif($button['button'] === "custom_website" and $button['custom_css'] != "") - + @elseif($button['button'] === "space") + @foreach($links as $link) @php $linkName = str_replace('default ','',$link->name) @endphp @@ -243,9 +244,9 @@ function get_operating_system() { @elseif($link->name === "buy me a coffee") @elseif($link->name === "custom_website"and $link->custom_css === "" or $link->custom_css === "NULL") - + @elseif($link->name === "custom_website" and $link->custom_css != "") - + @elseif($link->name === "space") title) and $link->title < 10) diff --git a/resources/views/studio/button-editor.blade.php b/resources/views/studio/button-editor.blade.php index 2c44db3..4e8e1cd 100644 --- a/resources/views/studio/button-editor.blade.php +++ b/resources/views/studio/button-editor.blade.php @@ -3,6 +3,7 @@ @section('content') @push('sidebar-scripts') +