Skip to content

Commit ceb2c90

Browse files
committed
Fixed footer links
1 parent e38381d commit ceb2c90

File tree

6 files changed

+18
-55
lines changed

6 files changed

+18
-55
lines changed

resources/views/home.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@
222222
<ul class="left-panel list-inline mb-0 p-0">
223223
@if(env('DISPLAY_FOOTER') === true)
224224
@if(env('DISPLAY_FOOTER_HOME') === true)<li class="list-inline-item"><a class="list-inline-item" href="@if(str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) === "" ){{ url('') }}@else{{ str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) }}@endif">{{footer('Home')}}</a></li>@endif
225-
@if(env('DISPLAY_FOOTER_TERMS') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_TERMS')) }}">{{footer('Terms')}}</a></li>@endif
226-
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_PRIVACY')) }}">{{footer('Privacy')}}</a></li>@endif
227-
@if(env('DISPLAY_FOOTER_CONTACT') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_CONTACT')) }}">{{footer('Contact')}}</a></li>@endif
225+
@if(env('DISPLAY_FOOTER_TERMS') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(footer('Terms')) }}">{{footer('Terms')}}</a></li>@endif
226+
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(footer('Privacy')) }}">{{footer('Privacy')}}</a></li>@endif
227+
@if(env('DISPLAY_FOOTER_CONTACT') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(footer('Contact')) }}">{{footer('Contact')}}</a></li>@endif
228228
@endif
229229
</ul>
230230
<div class="right-panel">

resources/views/layouts/footer.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<div class="footer fadein" style="margin:5% 0px 35px 0px;">
33
@if(env('DISPLAY_FOOTER') === true)
44
@if(env('DISPLAY_FOOTER_HOME') === true)<a class="footer-hover spacing" href="@if(str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) === "" ){{ url('') }}@else{{ str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) }}@endif">{{footer('Home')}}</a>@endif
5-
@if(env('DISPLAY_FOOTER_TERMS') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_TERMS')) }}">{{env('TITLE_FOOTER_TERMS')}}</a>@endif
6-
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_PRIVACY')) }}">{{env('TITLE_FOOTER_PRIVACY')}}</a>@endif
7-
@if(env('DISPLAY_FOOTER_CONTACT') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_CONTACT')) }}">{{env('TITLE_FOOTER_CONTACT')}}</a>@endif
5+
@if(env('DISPLAY_FOOTER_TERMS') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/{{ strtolower(footer('Terms')) }}">{{footer('Terms')}}</a>@endif
6+
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/{{ strtolower(footer('Privacy')) }}">{{footer('Privacy')}}</a>@endif
7+
@if(env('DISPLAY_FOOTER_CONTACT') === true)<a class="footer-hover spacing" href="{{ url('') }}/pages/{{ strtolower(footer('Contact')) }}">{{footer('Contact')}}</a>@endif
88
@endif
99
</div>
1010

resources/views/layouts/guest.blade.php

+5-40
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@
1818

1919
<title>{{ config('app.name') }}</title>
2020

21-
<!-- Fonts -->
22-
<link rel="stylesheet" href="https://fonts.bunny.net/css2?family=Nunito:wght@400;600;700&display=swap">
21+
<!-- Fonts -->
22+
@include('layouts.fonts')
2323

2424
<!-- Library / Plugin Css Build -->
2525
<link rel="stylesheet" href="{{asset('assets/css/core/libs.min.css')}}" />
2626

2727
<!-- Aos Animation Css -->
2828
<link rel="stylesheet" href="{{asset('assets/vendor/aos/dist/aos.css')}}" />
2929

30-
@include('layouts.fonts')
31-
3230
<!-- Hope Ui Design System Css -->
3331
<link rel="stylesheet" href="{{asset('assets/css/hope-ui.min.css?v=2.0.0')}}" />
3432

@@ -48,43 +46,10 @@
4846
<!-- RTL Css -->
4947
<link rel="stylesheet" href="{{asset('assets/css/rtl.min.css')}}" />
5048

51-
<!-- Scripts -->
52-
<script src="{{ asset('assets/js/app.js') }}" defer></script>
49+
<!-- Scripts -->
50+
<script src="{{ asset('assets/js/app.js') }}" defer></script>
5351

54-
<link rel="stylesheet" href="{{ asset('assets/external-dependencies/bootstrap-icons.css') }}">
55-
56-
{{-- <!-- begin dark mode detection -->
57-
<script src="{{ asset('assets/linkstack/js/js.cookie.min.js') }}"></script>
58-
<script>
59-
// code to set the `color_scheme` cookie
60-
var $color_scheme = Cookies.get("color_scheme");
61-
function get_color_scheme() {
62-
return (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) ? "dark" : "light";
63-
}
64-
function update_color_scheme() {
65-
Cookies.set("color_scheme", get_color_scheme());
66-
}
67-
// read & compare cookie `color-scheme`
68-
if ((typeof $color_scheme === "undefined") || (get_color_scheme() != $color_scheme))
69-
update_color_scheme();
70-
// detect changes and change the cookie
71-
if (window.matchMedia)
72-
window.matchMedia("(prefers-color-scheme: dark)").addListener( update_color_scheme );
73-
// reloads page to apply the dark mode cookie
74-
window.onload = function() {
75-
if(!window.location.hash && get_color_scheme() == "dark" && (get_color_scheme() != $color_scheme)) {
76-
window.location = window.location + '#dark';
77-
window.location.reload();
78-
}
79-
}
80-
</script>
81-
<?php // loads dark mode CSS if dark mode detected
82-
$color_scheme = isset($_COOKIE["color_scheme"]) ? $_COOKIE["color_scheme"] : false;
83-
$color_scheme_override = isset($_COOKIE["color_scheme_override"]) ? $_COOKIE["color_scheme_override"] : false; ?>
84-
@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')
85-
<link rel="stylesheet" href="{{ asset('css/app-dark.css') }}">
86-
@endif
87-
<!-- end dark mode detection --> --}}
52+
<link rel="stylesheet" href="{{ asset('assets/external-dependencies/bootstrap-icons.css') }}">
8853
</head>
8954
<body>
9055

resources/views/layouts/sidebar.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,9 @@
514514
<ul class="left-panel list-inline mb-0 p-0">
515515
@if(env('DISPLAY_FOOTER') === true)
516516
@if(env('DISPLAY_FOOTER_HOME') === true)<li class="list-inline-item"><a class="list-inline-item" href="@if(str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) === "" ){{ url('') }}@else{{ str_replace('"', "", EnvEditor::getKey('HOME_FOOTER_LINK')) }}@endif">{{footer('Home')}}</a></li>@endif
517-
@if(env('DISPLAY_FOOTER_TERMS') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_TERMS')) }}">{{footer('Terms')}}</a></li>@endif
518-
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_PRIVACY')) }}">{{footer('Privacy')}}</a></li>@endif
519-
@if(env('DISPLAY_FOOTER_CONTACT') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_CONTACT')) }}">{{footer('Contact')}}</a></li>@endif
517+
@if(env('DISPLAY_FOOTER_TERMS') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(footer('Terms')) }}">{{footer('Terms')}}</a></li>@endif
518+
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(footer('Privacy')) }}">{{footer('Privacy')}}</a></li>@endif
519+
@if(env('DISPLAY_FOOTER_CONTACT') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(footer('Contact')) }}">{{footer('Contact')}}</a></li>@endif
520520
@endif
521521
</ul>
522522
<div class="right-panel">

resources/views/pages.blade.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
@include('layouts.lang')
33
<head>
44
<meta charset="utf-8">
5-
<title>{{env('TITLE_FOOTER_'.strtoupper($name))}} - {{env('APP_NAME')}}</title>
5+
<title>{{ucfirst(Request::segment(2))}} - {{env('APP_NAME')}}</title>
66

77
@include('layouts.analytics')
88

9-
<title>{{ config('app.name') }}</title>
10-
119
<!-- Favicon -->
1210
@if(file_exists(base_path("assets/linkstack/images/").findFile('favicon')))
1311
<link rel="icon" type="image/png" href="{{ asset('assets/linkstack/images/'.findFile('favicon')) }}">

routes/web.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
Route::get('/going/{id?}', [UserController::class, 'clickNumber'])->where('link', '.*')->name('clickNumber');
8989
if($custom_prefix != ""){Route::get('/' . $custom_prefix . '{littlelink}', [UserController::class, 'littlelink'])->name('littlelink');}}
9090
Route::get('/@{littlelink}', [UserController::class, 'littlelink'])->name('littlelink');
91-
Route::get('/pages/'.strtolower(env('TITLE_FOOTER_TERMS')), [AdminController::class, 'pagesTerms'])->name('pagesTerms');
92-
Route::get('/pages/'.strtolower(env('TITLE_FOOTER_PRIVACY')), [AdminController::class, 'pagesPrivacy'])->name('pagesPrivacy');
93-
Route::get('/pages/'.strtolower(env('TITLE_FOOTER_CONTACT')), [AdminController::class, 'pagesContact'])->name('pagesContact');
91+
Route::get('/pages/'.strtolower(footer('Terms')), [AdminController::class, 'pagesTerms'])->name('pagesTerms');
92+
Route::get('/pages/'.strtolower(footer('Privacy')), [AdminController::class, 'pagesPrivacy'])->name('pagesPrivacy');
93+
Route::get('/pages/'.strtolower(footer('Contact')), [AdminController::class, 'pagesContact'])->name('pagesContact');
9494
Route::get('/theme/@{littlelink}', [UserController::class, 'theme'])->name('theme');
9595
Route::get('/vcard/{id?}', [UserController::class, 'vcard'])->name('vcard');
9696

0 commit comments

Comments
 (0)