From 314701dfafaaccf0b6a4b55bb7f2c405e35d4456 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Thu, 10 Nov 2022 13:46:10 +0100 Subject: [PATCH] Fixed changes in merged pull request https://github.com/JulianPrieber/littlelink-custom/commit/1279d478e282c3af33f16e1b5d930b52661d3a1a @MagicLike --- littlelink/icons/mastodon.svg | 6 +-- resources/views/layouts/sidebar.blade.php | 47 ++++++++--------------- resources/views/littlelink.blade.php | 7 +++- storage/templates/advanced-config.php | 2 +- 4 files changed, 24 insertions(+), 38 deletions(-) diff --git a/littlelink/icons/mastodon.svg b/littlelink/icons/mastodon.svg index 9d8ff0e..45a6a7c 100644 --- a/littlelink/icons/mastodon.svg +++ b/littlelink/icons/mastodon.svg @@ -1,4 +1,2 @@ - - - - + + \ No newline at end of file diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 6e84674..1feae60 100755 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -296,29 +296,23 @@ if($url1sb == '200' or $url2sb == '200') { @endif @endif @elseif(env('NOTIFY_UPDATES') == 'true' or env('NOTIFY_UPDATES') === 'major' or env('NOTIFY_UPDATES') === 'all') - - @if(file_exists(base_path("version.json")) and $ServerExists == 'true') + @if(file_exists(base_path("version.json"))) @@ -454,22 +448,10 @@ $userdbs = DB::table('users')->where('id', $littlelink_current)->get(); @endif - - @if(env('NOTIFY_EVENTS') === true and $EventServerExists == 'true') + @if(env('NOTIFY_EVENTS') === true) @endif + @endif @yield('content') diff --git a/resources/views/littlelink.blade.php b/resources/views/littlelink.blade.php index e8cc8e4..5fd1ff9 100644 --- a/resources/views/littlelink.blade.php +++ b/resources/views/littlelink.blade.php @@ -95,7 +95,11 @@ return $path;} + @if(theme('use_default_buttons') == "true") + + @else + @endif @if(file_exists(base_path('themes/' . $info->theme . '/animations.css'))) @@ -286,7 +290,8 @@ function get_operating_system() { @elseif($link->name === "heading")

{{ $link->title }}

@else -
button-icon{{ $link->title }}
+ $value) { if($newLinkName == $key) { $newLinkName = $value; $isNewName = "true"; } } ?> +
button-icon@if($isNewName == "true"){{ $newLinkName }}@else{{ ucfirst($newLinkName) }}@endif
@endif @endforeach diff --git a/storage/templates/advanced-config.php b/storage/templates/advanced-config.php index 7b49c5d..a107e82 100644 --- a/storage/templates/advanced-config.php +++ b/storage/templates/advanced-config.php @@ -105,7 +105,7 @@ return [ // The URL prefix is the symbol that comes before a LittleLink URL. // For example the '@' in 'example.com/@admin'. - // If empty no prefix is required. Use with caution. + // If empty no prefix is required. 'custom_url_prefix' => '+', // The '@' prefix will always work regardless of this setting.