@if (is_plugin_active('language')) @php $supportedLocales = Language::getSupportedLocales(); if (empty($options)) { $options = [ 'before' => '', 'lang_flag' => true, 'lang_name' => true, 'class' => '', 'after' => '', ]; } $location = $location ?? 'header'; @endphp @if ($supportedLocales && count($supportedLocales) > 1) @php $languageDisplay = setting('language_display', 'all'); $showRelated = setting('language_show_default_item_if_current_version_not_existed', true); @endphp @switch($location) @case('header')
@break @case('sidebar') @break @case('footer')