[WordPress] 外掛分享: AddFunc Adaptive Content

首頁外掛目錄 › AddFunc Adaptive Content
WordPress 外掛 AddFunc Adaptive Content 的封面圖片
50+
安裝啟用
★★★★★
5/5 分(2 則評價)
2655 天前
最後更新
問題解決
WordPress 3.0.1+ v2.0 上架:2015-09-17

內容簡介

隨著市場上新型的網路裝置越來越多,螢幕大小和數據傳輸速度也各不相同,一個網站無法在每次請求時提供相同的內容(不做限制和/或流量損失是不可能的)。

這個輕量級的外掛程式讓內容編輯和主題作者可以使用短代碼、快速標籤或主題元素函數選擇 WordPress 何時應該顯示或不顯示特定內容項目。它使用 Mobile Detect (一個 PHP 腳本) 來辨識網站訪客的裝置是否為手機、平板電腦或桌上型電腦,讓你可以允許或禁止輸出內容。例如,對於通常可用的數據傳輸速度較低的設備(例如行動設備),可以使用它來防止輸出大型檔案,如圖片。對於桌上型電腦和筆記型電腦,請提供更多廣泛的複製內容和更複雜的使用者介面;對於平板電腦,以市場化平板電腦導向的產品或服務為目標。你還可以檢測 iOS、iPhone、iPad、Android 和 Windows Mobile 運行系統。

短代碼範例: [notmobile]在這兩個標籤之間寫任何你想寫的東西,當訪客使用桌面電腦/筆記型電腦或平板電腦而非行動裝置訪問網站時,WordPress 將只輸出這些內容。[/notmobile]

使用文字編輯器的快速標籤輕鬆添加這些短代碼。

所有短代碼也都作為函數(命名空間前綴為 aFAC_),可以按需在主題中使用。更多細節請參閱FAQs。每個函數都是布林值,只會返回 true 或 false。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

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

原文外掛簡介

With all of the new web enabled devices springing up in the market and with the wide range of screen sizes and data transfer speeds, a website can no longer serve the same content upon every request (not without some degree of limitation and/or traffic-loss).
This lightweight plugin lets content writers and theme authors choose when WordPress should or shouldn’t show any give content item using shortcodes and quicktags or theme elements using functions. It uses Mobile Detect (a PHP script) to identify the website visitor’s device as either mobile, tablet or desktop, enabling you to allow or disallow content to be output. Use it to prevent large files such as images from outputting to devices that generally have a lower data transfer speed available to them (e.g. mobile devices). Serve more extensive copy and more elaborate userinterfaces to desktop devices and laptops. Target tablets to market a tablet oriented product or service. You can also detect iOS, iPhone, iPad, Android OS and Windows Mobile OS.
Example of a shortcode: [notmobile]Write anything you want between these two tags and WordPress will only output it when the visitor is viewing your website with a desktop/laptop or tablet and not with a mobile device.[/notmobile]
Easily add these shortcodes using the Quicktags in Text view.
All shortcodes also exist as functions (prefixed with aFAC_ for namespacing), which can be used in your theme as needed. See the FAQs for more detail. Each function is a boolean and simply returns true or false.

文章
Filter
Apply Filters
Mastodon