Опис
Server side detection of mobile devices to serve appropriate images in wordpress contents. Detects all mobile devices including all tablet devices such as iPad, iPhones, Nokia Lumia and or Nexus 10 and 7. This plugin uses Mobile_detect from http://mobiledetect.net/ in detecting mobile devices and Simple HTML DOM Parser from http://simplehtmldom.sourceforge.net.
Supported devices
- All mobile phones.
- All tablet devices.
Встановлення
This section describes how to install the plugin and get it working.
- Upload
mobile-ready-images.zip
to the/wp-content/plugins/
directory - Unzip the zipped file.
- Activate the plugin through the ‘Plugins’ menu in WordPress
- In your img tags, just put in the url of the images you want to display in mobile as a “mobile” attribute value. Ex: img src=”original-image.png” mobile=”image-for-mobile.png” tablet=”image-for-tablet.png”
Часті питання
- Can you give an example markup code?
-
img src=”original-image.png” mobile=”image-for-mobile.png” tablet=”image-for-tablet.png”
- Can this work on images outside the wordpress $content strings?
-
Not yet. As of this moment, this only works on images inside the $content string.
Відгуки
Для цього плагіна немає відгуків.
Учасники та розробники
“Mobile Ready Content Images” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:
УчасникиПерекладіть “Mobile Ready Content Images” на вашу мову.
Цікавитесь розробкою?
Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.
Журнал змін
0.0.1
- alpha version