[WordPress] 外掛分享: Multi Device Switcher

首頁外掛目錄 › Multi Device Switcher
20,000+
安裝啟用
★★★★
4.3/5 分(11 則評價)
424 天前
最後更新
問題解決
WordPress 4.9+ PHP 5.6+ v1.8.6 上架:2012-01-30

內容簡介

Multi Device Switcher外掛允許您為設備(智能手機、平板電腦、手機、遊戲和自定義)設置單獨的佈景主題。
此外掛可以偵測到使用者代理(UserAgent)是否正在查看您的網站並切換到選定的佈景主題。
自定義切換器可以添加每個設備。
功能特色

為不同設備(智能手機、平板電腦、手機、遊戲)設置單獨的佈景主題,並切換到選擇的主題。
通過自定義切換器添加每個設備。
通過PC切換器在佈景主題中添加"Mobile"或"PC"鏈接以切換到預設佈景主題。
通過"Display Switcher"短代碼為每個設備切換帖子或頁面內容。
通過禁用切換器為每個URL禁用主題的切換。
可使用is_multi_device()函數來偵測設備。
Multi Device Switcher Command命令行工具(需要WP-CLI)。

支援

如果您有任何疑問,您可以使用論壇或報告錯誤。

論壇: https://wordpress.org/support/plugin/multi-device-switcher/
問題: https://github.com/thingsym/multi-device-switcher/issues

貢獻

小型修補程序和錯誤報告可以在Github的問題跟踪器中提交。另一種很好的方法是在Github上分支,您可以發送拉取請求。

為插件翻譯需要大量的時間、精力和耐心。 我非常感謝這些貢獻者所付出的努力。

如果您創建或更新了自己的語言包,請將gettext PO和MO文件發送給作者,我可以捆綁到插件中。

VCS-GitHub
HomePage-WordPress Plugin
將Multi Device Switcher翻譯為您的語言。

您也可以通過解答論壇問題來做出貢獻。

論壇: https://wordpress.org/support/plugin/multi-device-switcher/
問題: https://github.com/thingsym/multi-device-switcher/issues

修補程序和錯誤修復

在Github上分支是另一種很好的方法。您可以發送拉取請求。

從GitHub存儲庫中分叉Multi Device Switcher。
創建一個新功能分支: git checkout -b my-new-feature
提交更改: git commit -am ‘Add some feature’
推送到分支: git push origin my-new-feature
建立新的Pull Request

貢獻指南

如果您想要做出貢獻,這裡有一些筆記和指南。

所有開發都發生在develop分支上,因此它始終是最新的。
主分支僅包含已標記的版本。
如果您要提交拉取請求,請將拉取請求提交到develop分支。
請參閱關於分叉和拉取請求。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.8.6) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Multi Device Switcher」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Multi Device Switcher plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom).
This plugin detects if your site is being viewed by UserAgent, and switches to selected theme.
The Custom Switcher can add every device.
Features

Set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game), switches to selected theme.
Add every device by the Custom Switcher.
Add links ‘Mobile’ or ‘PC’ in the theme by the PC Switcher, switch to the default theme.
Switch the content of the post or page for each device by the Display Switcher Shortcode.
Disable the switching of the theme for each url by the Disable Switcher.
Can be using is_multi_device() function that detect of the device.
Multi Device Switcher Command command-line tool (required WP-CLI)

Support
If you have any trouble, you can use the forums or report bugs.

Forum: https://wordpress.org/support/plugin/multi-device-switcher/
Issues: https://github.com/thingsym/multi-device-switcher/issues

Contribution
Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request.
Translating a plugin takes a lot of time, effort, and patience. I really appreciate the hard work from these contributors.
If you have created or updated your own language pack, you can send gettext PO and MO files to author. I can bundle it into plugin.

VCS – GitHub
Homepage – WordPress Plugin
Translate Multi Device Switcher into your language.

You can also contribute by answering issues on the forums.

Forum: https://wordpress.org/support/plugin/multi-device-switcher/
Issues: https://github.com/thingsym/multi-device-switcher/issues

Patches and Bug Fixes
Forking on Github is another good way. You can send a pull request.

Fork Multi Device Switcher from GitHub repository
Create a feature branch: git checkout -b my-new-feature
Commit your changes: git commit -am ‘Add some feature’
Push to the branch: git push origin my-new-feature
Create new Pull Request

Contribute guidlines
If you would like to contribute, here are some notes and guidlines.

All development happens on the develop branch, so it is always the most up-to-date
The master branch only contains tagged releases
If you are going to be submitting a pull request, please submit your pull request to the develop branch
See about forking and pull requests

Test Matrix
For operation compatibility between PHP version and WordPress version, see below Github Actions.
Known bugs
WordPress Core version 6.4 – 6.4.1

Theme doesn’t switch properly
Bug report: https://core.trac.wordpress.org/ticket/59847
It seems to have been caused by a change (breaking change) at https://core.trac.wordpress.org/changeset/56635. The bug is fixed in https://core.trac.wordpress.org/changeset/57129 (fixed in WordPress 6.4.2)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon