Update (composer)

Update (footer + navigation): Add checks to hide locale select if less than 2
This commit is contained in:
2023-07-26 09:58:48 +08:00
parent 039e7da6db
commit 2c42553599
3 changed files with 17 additions and 10 deletions

20
composer.lock generated
View File

@@ -1426,16 +1426,16 @@
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v10.15.0", "version": "v10.16.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "c7599dc92e04532824bafbd226c2936ce6a905b8" "reference": "7589f09fe0e8735615cf25f0f1807682aac124c1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/c7599dc92e04532824bafbd226c2936ce6a905b8", "url": "https://api.github.com/repos/laravel/framework/zipball/7589f09fe0e8735615cf25f0f1807682aac124c1",
"reference": "c7599dc92e04532824bafbd226c2936ce6a905b8", "reference": "7589f09fe0e8735615cf25f0f1807682aac124c1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1622,7 +1622,7 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "source": "https://github.com/laravel/framework"
}, },
"time": "2023-07-11T13:43:52+00:00" "time": "2023-07-25T14:31:32+00:00"
}, },
{ {
"name": "laravel/sanctum", "name": "laravel/sanctum",
@@ -1692,16 +1692,16 @@
}, },
{ {
"name": "laravel/serializable-closure", "name": "laravel/serializable-closure",
"version": "v1.3.0", "version": "v1.3.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/serializable-closure.git", "url": "https://github.com/laravel/serializable-closure.git",
"reference": "f23fe9d4e95255dacee1bf3525e0810d1a1b0f37" "reference": "e5a3057a5591e1cfe8183034b0203921abe2c902"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/f23fe9d4e95255dacee1bf3525e0810d1a1b0f37", "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/e5a3057a5591e1cfe8183034b0203921abe2c902",
"reference": "f23fe9d4e95255dacee1bf3525e0810d1a1b0f37", "reference": "e5a3057a5591e1cfe8183034b0203921abe2c902",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1748,7 +1748,7 @@
"issues": "https://github.com/laravel/serializable-closure/issues", "issues": "https://github.com/laravel/serializable-closure/issues",
"source": "https://github.com/laravel/serializable-closure" "source": "https://github.com/laravel/serializable-closure"
}, },
"time": "2023-01-30T18:31:20+00:00" "time": "2023-07-14T13:56:28+00:00"
}, },
{ {
"name": "laravel/tinker", "name": "laravel/tinker",

View File

@@ -30,6 +30,8 @@
<div class="col-md-5 offset-md-1 mb-3"> <div class="col-md-5 offset-md-1 mb-3">
@if($country_locales->count() > 1)
<div class="dropdown mb-4"> <div class="dropdown mb-4">
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuSwitch" <button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuSwitch"
data-bs-toggle="dropdown" aria-expanded="false"> data-bs-toggle="dropdown" aria-expanded="false">
@@ -45,6 +47,7 @@
@endforeach @endforeach
</ul> </ul>
</div> </div>
@endif
<form> <form>
<h5>Subscribe to our newsletter</h5> <h5>Subscribe to our newsletter</h5>

View File

@@ -15,12 +15,14 @@
</div> </div>
<div class="offcanvas-body p-0"> <div class="offcanvas-body p-0">
@if($country_locales->count() > 1)
<div class="p-3"> <div class="p-3">
<div class="dropdown d-grid"> <div class="dropdown d-grid">
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuSwitch" <button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuSwitch"
data-bs-toggle="dropdown" aria-expanded="false"> data-bs-toggle="dropdown" aria-expanded="false">
{{ $current_country_locale->name }} {{ $current_country_locale->name }}
</button> </button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuSwitch"> <ul class="dropdown-menu" aria-labelledby="dropdownMenuSwitch">
@foreach ($country_locales as $country_locale) @foreach ($country_locales as $country_locale)
@if ($country_locale->id != $current_country_locale->id) @if ($country_locale->id != $current_country_locale->id)
@@ -30,10 +32,12 @@
@endif @endif
@endforeach @endforeach
</ul> </ul>
</div> </div>
</div> </div>
<div class="border-bottom"></div> <div class="border-bottom"></div>
@endif
<div class="p-3"> <div class="p-3">
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3"> <ul class="navbar-nav justify-content-end flex-grow-1 pe-3">