MslsMenu

설명

The Multisite Language Switcher already offers plenty of ways to output its language links: a block, the shortcodes [sc_msls] and [sc_msls_widget], the classic widget, a content filter, and the msls_the_switcher() API for your theme files.

What none of them covers is a navigation menu. A classic menu rendered by wp_nav_menu() accepts menu items and nothing else, so there is no slot for a block or a shortcode inside it – and writing a custom walker into the theme is more work than most sites are willing to spend on a language switcher.

MslsMenu closes that gap. Select the theme locations you want in the settings and the language links are appended to every menu rendered at those locations. No theme edit, no PHP, no custom walker.

스크린샷

설치

  • Use the WordPress plugin installation and search for “MslsMenu”.
  • Alternatively, download the plugin, uncompress it with your preferred unzip programme and upload the folder mslsmenu to the /wp-content/plugins/ directory.
  • Activate the plugin
  • You will find the configuration of the plugin once in each blog in Settings -> Multisite Language Switcher
  • Set the menu specific options such as <li class="msls-menu"> before the item output or the description. Please, check the Screenshots-section too!

FAQ

Does this work with the Navigation block of a block theme?

No. MslsMenu hooks into wp_nav_menu_items, a filter of the classic wp_nav_menu() function, and the Navigation block does not run through it. In a block theme use the block of the Multisite Language Switcher instead and place it next to the Navigation block in your header template.

Do I need the Multisite Language Switcher?

Yes, version 3.0 or newer, installed and active. MslsMenu is an add-on and declares the dependency through its Requires Plugins header. That header cannot express a minimum version, so against an older Multisite Language Switcher MslsMenu stays inactive and explains itself with an admin notice.

Where are the settings?

In Settings -> Multisite Language Switcher of each site. MslsMenu adds its own “Menu Settings” section to that page.

후기

2023년 4월 21일 답글 3개
Als WP-Anfänger habe ich es relativ gut hinbekommen, mit ein wenig Recherche ein Multisite-Netzwerk aufzubauen. Jetzt bin ich seit vielen Stunden daran, meine Multisites mit Hilfe von msls und mslsmenu mehrsprachig hinzubekommen – keine Chance! Die Anleitungen auf englisch oder deutsch sind für Anfänger schwer zu verstehen, einfache Screenshots ohne große Beschreibung helfen da auch nicht wirklich. Es entsteht der Eindruck, dass dieses Plugin nur für mindestens Fortgeschrittene WP-Nutzer ausgelegt ist, welche sofort alles verstehen und nachvollziehen können. Sehr schade! Ich würde mich über jede Hilfe und Unterstützung in der Umsetzung freuen!
2019년 5월 8일
super plug-in , thank you very much to the developers!
2016년 9월 3일 답글 3개
OK, after some help from the author, I finally got it to work. Now it works great. This would be 5 stars, but it’s a little difficult for a novice like me to setup. Could be easily fixed with just a little documentation or explainer video.
모든 8 평가 읽기

기여자 & 개발자

“MslsMenu”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“MslsMenu”(이)가 5 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “MslsMenu”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

3.0.2

  • An admin notice explains why MslsMenu is doing nothing when Multisite Language Switcher is older than 3.0.
  • The release is built and checked in CI, deployed from the same distribution Plugin Check verifies, and published with a build provenance attestation.
  • The translation files were regenerated.

2.5.1

  • plugin check integration added
  • missing license problem addressed
  • MslsOutput class deprecated init in favour of a function

2.4.1

  • readme.txt tags updated
  • Plugin check issues fixed
  • “Requires Plugins” added

2.3.2

  • Pest as new dev/tester dependency

2.2.6

  • Unit testing completed
  • phpstan config excluded
  • Pest for Unit tests added
  • PHP 7.1 as minimum declared

1.0

  • marked as stable
  • WordPress Coding Standards
  • PHPDocs