Translated footer titles
This commit is contained in:
parent
7f2c3533e3
commit
7aacc27f89
|
@ -16,3 +16,14 @@ function uri($path) {
|
|||
$url = str_replace(['http://', 'https://'], '', url(''));
|
||||
return "//" . $url . "/" . $path;
|
||||
}
|
||||
|
||||
function footer($key)
|
||||
{
|
||||
$upperStr = strtoupper($key);
|
||||
if (env('TITLE_FOOTER_'.$upperStr) == "") {
|
||||
$title = __('messages.footer.'.$key);
|
||||
} else {
|
||||
$title = env('TITLE_FOOTER_'.$upperStr);
|
||||
}
|
||||
return $title;
|
||||
}
|
|
@ -1825,16 +1825,16 @@
|
|||
},
|
||||
{
|
||||
"name": "jaybizzle/crawler-detect",
|
||||
"version": "v1.2.114",
|
||||
"version": "v1.2.115",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/JayBizzle/Crawler-Detect.git",
|
||||
"reference": "62d0e6b38f6715c673e156ffb0fc894791de3452"
|
||||
"reference": "4531e4a70d55d10cbe7d41ac1ff0d75a5fe2ef1e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/62d0e6b38f6715c673e156ffb0fc894791de3452",
|
||||
"reference": "62d0e6b38f6715c673e156ffb0fc894791de3452",
|
||||
"url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/4531e4a70d55d10cbe7d41ac1ff0d75a5fe2ef1e",
|
||||
"reference": "4531e4a70d55d10cbe7d41ac1ff0d75a5fe2ef1e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1871,9 +1871,9 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/JayBizzle/Crawler-Detect/issues",
|
||||
"source": "https://github.com/JayBizzle/Crawler-Detect/tree/v1.2.114"
|
||||
"source": "https://github.com/JayBizzle/Crawler-Detect/tree/v1.2.115"
|
||||
},
|
||||
"time": "2023-03-21T21:54:27+00:00"
|
||||
"time": "2023-06-05T21:32:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "jeroendesloovere/vcard",
|
||||
|
@ -3578,16 +3578,16 @@
|
|||
},
|
||||
{
|
||||
"name": "phpstan/phpstan",
|
||||
"version": "1.10.15",
|
||||
"version": "1.10.21",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan.git",
|
||||
"reference": "762c4dac4da6f8756eebb80e528c3a47855da9bd"
|
||||
"reference": "b2a30186be2e4d97dce754ae4e65eb0ec2f04eb5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/762c4dac4da6f8756eebb80e528c3a47855da9bd",
|
||||
"reference": "762c4dac4da6f8756eebb80e528c3a47855da9bd",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/b2a30186be2e4d97dce754ae4e65eb0ec2f04eb5",
|
||||
"reference": "b2a30186be2e4d97dce754ae4e65eb0ec2f04eb5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3636,7 +3636,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2023-05-09T15:28:01+00:00"
|
||||
"time": "2023-06-21T20:07:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan-phpunit",
|
||||
|
@ -10234,16 +10234,16 @@
|
|||
},
|
||||
{
|
||||
"name": "spatie/backtrace",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/spatie/backtrace.git",
|
||||
"reference": "ec4dd16476b802dbdc6b4467f84032837e316b8c"
|
||||
"reference": "47794d19e3215ace9e005a8f200cd7cc7be52572"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/spatie/backtrace/zipball/ec4dd16476b802dbdc6b4467f84032837e316b8c",
|
||||
"reference": "ec4dd16476b802dbdc6b4467f84032837e316b8c",
|
||||
"url": "https://api.github.com/repos/spatie/backtrace/zipball/47794d19e3215ace9e005a8f200cd7cc7be52572",
|
||||
"reference": "47794d19e3215ace9e005a8f200cd7cc7be52572",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -10280,7 +10280,7 @@
|
|||
"spatie"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/spatie/backtrace/tree/1.4.0"
|
||||
"source": "https://github.com/spatie/backtrace/tree/1.4.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -10292,7 +10292,7 @@
|
|||
"type": "other"
|
||||
}
|
||||
],
|
||||
"time": "2023-03-04T08:57:24+00:00"
|
||||
"time": "2023-06-13T14:35:04+00:00"
|
||||
},
|
||||
{
|
||||
"name": "spatie/flare-client-php",
|
||||
|
@ -10365,16 +10365,16 @@
|
|||
},
|
||||
{
|
||||
"name": "spatie/ignition",
|
||||
"version": "1.8.0",
|
||||
"version": "1.8.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/spatie/ignition.git",
|
||||
"reference": "ad13a6792992411e05d3d3b293e26bdf9f9a7321"
|
||||
"reference": "d8eb8ea1ed27f48a694405cff363746ffd37f13e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/spatie/ignition/zipball/ad13a6792992411e05d3d3b293e26bdf9f9a7321",
|
||||
"reference": "ad13a6792992411e05d3d3b293e26bdf9f9a7321",
|
||||
"url": "https://api.github.com/repos/spatie/ignition/zipball/d8eb8ea1ed27f48a694405cff363746ffd37f13e",
|
||||
"reference": "d8eb8ea1ed27f48a694405cff363746ffd37f13e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -10444,7 +10444,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2023-05-25T10:19:32+00:00"
|
||||
"time": "2023-06-06T14:14:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "spatie/laravel-ignition",
|
||||
|
|
|
@ -1018,6 +1018,19 @@ return [
|
|||
'support.msg6' => 'Thank you for your support and for being a part of the LinkStack community!',
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Footer Links
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
|
||||
'footer.Home' => 'Home',
|
||||
'footer.Terms' => 'Terms',
|
||||
'footer.Privacy' => 'Privacy',
|
||||
'footer.Contact' => 'Contact',
|
||||
|
||||
|
||||
#=============================================================================#
|
||||
# Laravel internal translations #
|
||||
#=============================================================================#
|
||||
|
|
|
@ -221,10 +221,10 @@
|
|||
<div class="footer-body">
|
||||
<ul class="left-panel list-inline mb-0 p-0">
|
||||
@if(env('DISPLAY_FOOTER') === true)
|
||||
@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">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_HOME'))}}</a></li>@endif
|
||||
@if(env('DISPLAY_FOOTER_TERMS') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_TERMS')) }}">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_TERMS'))}}</a></li>@endif
|
||||
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_PRIVACY')) }}">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_PRIVACY'))}}</a></li>@endif
|
||||
@if(env('DISPLAY_FOOTER_CONTACT') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_CONTACT')) }}">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_CONTACT'))}}</a></li>@endif
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
@endif
|
||||
</ul>
|
||||
<div class="right-panel">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="container">
|
||||
<div class="footer fadein" style="margin:5% 0px 35px 0px;">
|
||||
@if(env('DISPLAY_FOOTER') === true)
|
||||
@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">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_HOME'))}}</a>@endif
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
|
|
|
@ -513,10 +513,10 @@ $usrhandl = Auth::user()->littlelink_name;
|
|||
<div class="footer-body">
|
||||
<ul class="left-panel list-inline mb-0 p-0">
|
||||
@if(env('DISPLAY_FOOTER') === true)
|
||||
@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">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_HOME'))}}</a></li>@endif
|
||||
@if(env('DISPLAY_FOOTER_TERMS') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_TERMS')) }}">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_TERMS'))}}</a></li>@endif
|
||||
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_PRIVACY')) }}">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_PRIVACY'))}}</a></li>@endif
|
||||
@if(env('DISPLAY_FOOTER_CONTACT') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_CONTACT')) }}">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_CONTACT'))}}</a></li>@endif
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
@endif
|
||||
</ul>
|
||||
<div class="right-panel">
|
||||
|
|
|
@ -75,10 +75,10 @@
|
|||
<div class="footer-body">
|
||||
<ul class="left-panel list-inline mb-0 p-0">
|
||||
@if(env('DISPLAY_FOOTER') === true)
|
||||
@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">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_HOME'))}}</a></li>@endif
|
||||
@if(env('DISPLAY_FOOTER_TERMS') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_TERMS')) }}">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_TERMS'))}}</a></li>@endif
|
||||
@if(env('DISPLAY_FOOTER_PRIVACY') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_PRIVACY')) }}">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_PRIVACY'))}}</a></li>@endif
|
||||
@if(env('DISPLAY_FOOTER_CONTACT') === true)<li class="list-inline-item"><a class="list-inline-item" href="{{ url('') }}/pages/{{ strtolower(env('TITLE_FOOTER_CONTACT')) }}">{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_CONTACT'))}}</a></li>@endif
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
@endif
|
||||
</ul>
|
||||
<div class="right-panel">
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<div class="col-sm-12">
|
||||
|
||||
<div class="form-group col-lg-8">
|
||||
<h3>{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_TERMS'))}}</h3><br>
|
||||
<h3>{{footer('Terms')}}</h3><br>
|
||||
<textarea class="form-control ckeditor" name="terms" rows="3">{{ $page->terms }}</textarea>
|
||||
</div>
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
<div class="col-sm-12">
|
||||
|
||||
<div class="form-group col-lg-8">
|
||||
<h3>{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_PRIVACY'))}}</h3><br>
|
||||
<h3>{{footer('Privacy')}}</h3><br>
|
||||
<textarea class="form-control ckeditor" name="privacy" rows="3">{{ $page->privacy }}</textarea>
|
||||
</div>
|
||||
|
||||
|
@ -56,7 +56,7 @@
|
|||
<div class="col-sm-12">
|
||||
|
||||
<div class="form-group col-lg-8">
|
||||
<h3>{{str_replace('"', "", EnvEditor::getKey('TITLE_FOOTER_CONTACT'))}}</h3><br>
|
||||
<h3>{{footer('Contact')}}</h3><br>
|
||||
<textarea class="form-control ckeditor" name="contact" rows="3">{{ $page->contact }}</textarea>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue