
內容簡介
移動設備偵測(Mobile detect)外掛使用開源的MobileDetect PHP 庫 ,以微調內建的 WordPress 函數 wp_is_mobile() ,以使平板電腦不被偵測為行動裝置!
如果你不明白上方的一行敘述,下面有些解釋...
若我們為行動裝置和桌面端提供不同(快取的)內容,iPads(還有其他平板電腦)通常會以網站的行動版版本提供。這意味著,iPad 用戶只能看到網站的行動版版本。如果你懷疑這是否正確,請現在就檢查你的網站!這與你的 iPad(或任何其他平板電腦)沒關系。這是由於 WordPress 如何處理 iPads 和其他平板電腦引起的。目前在 WordPress 中,iPads(以及其他平板電腦)被認為是行動裝置!將來(可能)有一天,WordPress 內部可能會將平板電腦視為桌面端。在那之前,通過使用/啟用此外掛,平板電腦會顯示桌面版的網站。
如果你的網站不為行動端和桌面端提供不同的內容,請忽略此外掛。在這種情況下,此外掛什麼也不做。
關於 Mobile Detect PHP 庫:
Mobile Detect 是一個輕量級的 PHP 類,用於檢測移動設備(包括平板電腦)。它使用 User-Agent 字串與特定的 HTTP 標頭來檢測移動環境。
PHP Mobile Detect 是根據MIT 授權的開源腳本。
Mobile Detect PHP 開發者:Șerban Ghiță,Nick Ilyin。
原作者:Victor Stanciu。
圖示(和橫幅)由Dragoș Gavrilă創建。
外掛標籤
開發者團隊
原文外掛簡介
Mobile detect plugin uses the open source MobileDetect PHP library to fine-tune the built-in WordPress function wp_is_mobile() in such a way that tablets are excluded from being detected as mobile!
If you don’t understand the above one-liner, here is some explanation…
If we serve different (cached) content for mobiles and desktops, iPads (and other tablets) are usually served with mobile version of the site. That means, iPad users see only the mobile version of the site. If you are in doubt, check your site now! There is nothing wrong with your iPad (or any other tablet). It is due to how WordPress treats iPads and other tablets. Currently, in WordPress, iPads (and other tablets) are considered as mobile! One day (in the future), tablets may be considered as desktops by WordPress internals. Until then, by using / activating this plugin, tablets are served with desktop version of the site.
If your site doesn’t serve different content for mobiles and desktops, please ignore this plugin. This plugin does nothing in that case.
About Mobile Detect PHP Library:
Mobile Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.
PHP Mobile Detect is an open-source script released under MIT License.
Mobile Detect PHP Developer: Șerban Ghiță, Nick Ilyin.
Original author: Victor Stanciu.
Icon (and banner) created by: Dragoș Gavrilă.
