pimplesushant-pere

Localisation Drop-down

Jan 9th, 2019
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.69 KB | None | 0 0
  1. <div class="dropdown btn-group">
  2.                 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  3.                     Select Language
  4.                 </a>
  5.                 <ul class="dropdown-menu">
  6.                    @foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
  7.                         <li>
  8.                             <a rel="alternate" hreflang="{{ $localeCode }}" href="{{ LaravelLocalization::getLocalizedURL($localeCode, null, [], true) }}">
  9.                                 {{ $properties['native'] }}
  10.                             </a>
  11.                         </li>
  12.                    @endforeach
  13.                 </ul>
  14.             </div>
Add Comment
Please, Sign In to add comment