Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit 585812d

Browse files
committed
update master layout
2 parents 962e431 + b6d7ad1 commit 585812d

File tree

10 files changed

+448
-372
lines changed

10 files changed

+448
-372
lines changed

config/translatable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
/*
66
* If a translation has not been set for a given locale, use this locale instead.
77
*/
8-
'fallback_locale' => 'en',
8+
'fallback_locale' => 'fr',
99
];

config/typicms.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@
3636
*/
3737
'template_dir' => 'public',
3838

39+
'lang_chooser' => false,
40+
41+
'languages' => [
42+
'en' => 'English (En)',
43+
'fr' => 'Français (Fr)',
44+
],
45+
3946
];

public/css/public.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/admin.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"/js/admin.js": "/js/admin.js?id=aacced15caa7e30d5424",
2+
"/js/admin.js": "/js/admin.js?id=c1519ded8a77f50c518c",
33
"/css/admin.css": "/css/admin.css?id=1f4590f4a3f74a5cee19",
4-
"/css/public.css": "/css/public.css?id=3acf878a3829ea912e0f",
4+
"/css/public.css": "/css/public.css?id=5bfae0218ce9f5784aae",
55
"/js/public.js": "/js/public.js?id=0aae02c88b7c8512fff0",
66
"/components/simplemde/simplemde.js": "/components/simplemde/simplemde.js?id=fd052f831c01ff10535c",
77
"/components/simplemde/simplemde.css": "/components/simplemde/simplemde.css?id=b8697c785bbf0627fb05",

resources/lang/fr.json

Lines changed: 428 additions & 365 deletions
Large diffs are not rendered by default.

resources/scss/public/_base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,10 @@ footer.footer {
486486
height: 2px;
487487
background-color: $white;
488488
}
489+
490+
.lang-switcher {
491+
margin-bottom: 30px;
492+
}
489493
}
490494

491495
/* Return on top */

resources/scss/public/pages/_home.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ section.posts-events {
120120
}
121121

122122
@include media-breakpoint-up(lg) {
123+
margin-top: 50px;
123124
.lastest-post {
124125
//@include make-col(8);
125126
display: block;

resources/views/vendor/core/public/_lang-switcher.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@if ($enabledLocales = TypiCMS::enabledLocales() and count($enabledLocales) > 1)
22
<nav class="lang-switcher dropdown">
3-
<button class="lang-switcher-btn btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="dropdownLangSwitcher">
4-
{{ $lang }}
3+
<button class="lang-switcher-btn btn btn-white dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="dropdownLangSwitcher">
4+
{{ config('typicms.languages.'. $lang) }}
55
</button>
66
<div class="lang-switcher-list dropdown-menu" aria-labelledby="dropdownLangSwitcher">
77
@foreach ($enabledLocales as $locale)

resources/views/vendor/core/public/master.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ function gtag(){dataLayer.push(arguments);}
195195
<li class="link__github"><a href="https://github.com/laravelcm" target="_blank">Github</a></li>--}}
196196
@menu('footer-links')
197197
</ul>
198+
@include('core::public._lang-switcher')
198199
<p> &copy; Copyright {{ date('Y') }}</p>
199200
</div>
200201
</footer>

0 commit comments

Comments
 (0)