blessing-skin-server/resources/views/vendor/language.tpl
2016-12-30 15:57:33 +08:00

14 lines
599 B
PHP

<!-- Language Menu -->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-language" aria-hidden="true"></i>
<span class="description-text">{{ config('locales.'.App::getLocale(), config('locales.'.config('app.fallback_locale')))['short_name'] }}</span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
@foreach(config('locales') as $code => $langInfo)
<li class="locale"><a href="{{ url('/locale/'.$code) }}">{{ $langInfo['name'] }}</a></li>
@endforeach
</ul>
</li>