[WordPress] 外掛分享: Mobile First Content Images

首頁外掛目錄 › Mobile First Content Images
10+
安裝啟用
尚無評分
5127 天前
最後更新
問題解決
WordPress 3.0+ v0.1 上架:2012-02-29

內容簡介

此外掛嘗試偵測使用者使用的設備,若被偵測為行動設備或無法辨識,則可將內容圖像替換為較小的自選文章縮圖大小,以節省頻寬。

需求

PHP5
已測試且相容於 Worpress 版本 3.0、3.1、3.2 和 3.3
不相容於 WordPress 2.9 及以前的所有版本
可能會導致其他嘗試修改內容圖像的外掛出現問題

測試外掛

在測試外掛時,請使用真實的設備或 iPhone 模擬器。將桌面瀏覽器的使用者代理變更為行動設備將不會生效。

讓外掛更好

您可以在Github尋找代碼,並隨心所欲地進行修改。

感謝

感謝phpQuery讓 HTML 剖析更加容易以及Categorizr為行動設備檢測裝置。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Mobile First Content Images」→ 直接安裝(推薦)

原文外掛簡介

The plugin tries to detect what device the user is on. If it’s detected as a mobile device or unknown the content images can be swapped with a smaller Post Thumbnail size of choice to save bandwidth.
Requriements

PHP5
Tested and works with Worpress version 3.0, 3.1, 3.2 and 3.3
NOT working in WordPress 2.9 and all version older than that
Will probably cause some issues with other plugins trying to modify content images

Test the plugin
When testing if the plugin swapped your images use a real device or the iphone simulator. Changing the useragent to mobile on you desktop browser will not work.
Make it better
You can find the code on Github and do whatever you like with it
Thank you
phpQuery for making it easy to parse the html and Categorizr for mobile first device detection.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon