Added: buttons to change language

Now the welcome.blade has two new links to change language.
Other pages has a footer with the language switcher too.
This commit is contained in:
Bruno F. Fontes 2018-09-29 01:49:02 -03:00
parent 6b20397e9d
commit 5be29fc3d8
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
3 changed files with 27 additions and 3 deletions

View File

@ -80,9 +80,11 @@
<div class="alert alert-danger text-center" role="alert">{{ $flashMsg }}</div>
@endif
<main class="py-4">
<main class="py-4 mb-5">
@yield('content')
</main>
@include('layouts.footer')
</div>
</body>

View File

@ -0,0 +1,19 @@
<div class="my-4"><br></div>
<!-- Footer -->
<footer class="fixed-bottom page-footer font-small mt-5">
<div class="row footer-copyright text-left bg-secondary text-white mt-5 py-3">
<!-- Copyright -->
<div class="col ml-4">
© 2018<?='2018' != date('Y')?'-' . date('Y'):'';?> Copyright&nbsp; <a href="https://brunofontes.net" class="link text-white-50" target="_blank">Bruno Fontes</a>
</div>
<div class="col mr-4 text-right">
<a href="{{ url('/lang/pt-br') }}" class="link text-white">Português</a>
<span class="d-none d-sm-inline"> | </span>
<span class="d-xs-block d-sm-none"> <br> </span>
<a href="{{ url('/lang/en') }}" class="link text-white">English</a>
</div>
<!-- Copyright -->
</div>
</footer>

View File

@ -102,9 +102,12 @@
@endauth
<a href="/help">@lang('welcome.Help')</a>
</div>
<div>
<br>
<div class="mt-5 mb-5"><br></div>
<div class="links">
<a href="{{ url('/lang/pt-br') }}">Português</a>
<a href="{{ url('/lang/en') }}">English</a>
</div>
<div class="mt-5 mb-5"><br></div>
<div class="links footer">
<a href="https://brunofontes.net">@lang('welcome.byAuthor')</a>
<p>@lang('welcome.copyright')</p>