From ceb2c90e55bb3dba0134cf3e293f643b483d27ce Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Sat, 24 Jun 2023 15:39:16 +0200 Subject: [PATCH] Fixed footer links --- resources/views/home.blade.php | 6 +-- resources/views/layouts/footer.blade.php | 6 +-- resources/views/layouts/guest.blade.php | 45 +++-------------------- resources/views/layouts/sidebar.blade.php | 6 +-- resources/views/pages.blade.php | 4 +- routes/web.php | 6 +-- 6 files changed, 18 insertions(+), 55 deletions(-) diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 103084d..66b432b 100755 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -222,9 +222,9 @@
diff --git a/resources/views/layouts/footer.blade.php b/resources/views/layouts/footer.blade.php index 4b746e7..1bb1586 100755 --- a/resources/views/layouts/footer.blade.php +++ b/resources/views/layouts/footer.blade.php @@ -2,9 +2,9 @@ diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php index e86970c..e466acc 100755 --- a/resources/views/layouts/guest.blade.php +++ b/resources/views/layouts/guest.blade.php @@ -18,8 +18,8 @@ {{ config('app.name') }} - - + + @include('layouts.fonts') @@ -27,8 +27,6 @@ - @include('layouts.fonts') - @@ -48,43 +46,10 @@ - - + + - - - {{-- - - - - @if ($color_scheme == 'dark' and config('advanced-config.theme') != 'light' and $color_scheme_override != 'light' or $color_scheme_override == 'dark' or config('advanced-config.theme') == 'dark') - - @endif - --}} + diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 3263ce2..e504803 100755 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -514,9 +514,9 @@ $usrhandl = Auth::user()->littlelink_name;
diff --git a/resources/views/pages.blade.php b/resources/views/pages.blade.php index 9ca8980..54efb90 100755 --- a/resources/views/pages.blade.php +++ b/resources/views/pages.blade.php @@ -2,12 +2,10 @@ @include('layouts.lang') - {{env('TITLE_FOOTER_'.strtoupper($name))}} - {{env('APP_NAME')}} + {{ucfirst(Request::segment(2))}} - {{env('APP_NAME')}} @include('layouts.analytics') - {{ config('app.name') }} - @if(file_exists(base_path("assets/linkstack/images/").findFile('favicon'))) diff --git a/routes/web.php b/routes/web.php index 855c4d8..2cef788 100755 --- a/routes/web.php +++ b/routes/web.php @@ -88,9 +88,9 @@ $custom_prefix = config('advanced-config.custom_url_prefix'); Route::get('/going/{id?}', [UserController::class, 'clickNumber'])->where('link', '.*')->name('clickNumber'); if($custom_prefix != ""){Route::get('/' . $custom_prefix . '{littlelink}', [UserController::class, 'littlelink'])->name('littlelink');}} Route::get('/@{littlelink}', [UserController::class, 'littlelink'])->name('littlelink'); -Route::get('/pages/'.strtolower(env('TITLE_FOOTER_TERMS')), [AdminController::class, 'pagesTerms'])->name('pagesTerms'); -Route::get('/pages/'.strtolower(env('TITLE_FOOTER_PRIVACY')), [AdminController::class, 'pagesPrivacy'])->name('pagesPrivacy'); -Route::get('/pages/'.strtolower(env('TITLE_FOOTER_CONTACT')), [AdminController::class, 'pagesContact'])->name('pagesContact'); +Route::get('/pages/'.strtolower(footer('Terms')), [AdminController::class, 'pagesTerms'])->name('pagesTerms'); +Route::get('/pages/'.strtolower(footer('Privacy')), [AdminController::class, 'pagesPrivacy'])->name('pagesPrivacy'); +Route::get('/pages/'.strtolower(footer('Contact')), [AdminController::class, 'pagesContact'])->name('pagesContact'); Route::get('/theme/@{littlelink}', [UserController::class, 'theme'])->name('theme'); Route::get('/vcard/{id?}', [UserController::class, 'vcard'])->name('vcard');