Adds functions and shortcodes to empower WordPress users to have better control of when content is served, based on device type.
Author: | AddFunc (profile at wordpress.org) |
WordPress version required: | 3.0.1 |
WordPress version tested: | 5.0.4 |
Plugin version: | 2.0 |
Added to WordPress repository: | 18-09-2015 |
Last updated: | 11-12-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 2 |
Plugin URI: | https://wordpress.org/plugins/addfunc-adaptiv... |
Total downloads: | 2 134 |
Active installs: | 70+ |
Click to start download
|
Screenshots
Quicktags available in Text view.
This handy Help tip is easily at hand whenever you're editing content.
FAQ
What shortcodes are available with AddFunc Adaptive Content?
All available shortcodes are documented in the Help tab under “Adaptive Content” (on the content editing page).
What functions are available with AddFunc Adaptive Content?
- aFAC_mobileonly() — Returns true only when device is mobile (and not tablet)
- aFAC_notmobile() — Returns true only when device is not mobile (or is tablet)
- aFAC_tabletonly() — Returns true only when device is tablet
- aFAC_nottablet() — Returns true only when device is not tablet
- aFAC_desktoponly() — Returns true only when device is not mobile (and not tablet)
- aFAC_notdesktop() — Returns true only when device is mobile (or is tablet)
- aFAC_iosonly() — Returns true only when device is iOS
- aFAC_iphoneonly() — Returns true only when device is iPhone
- aFAC_ipadonly() — Returns true only when device is iPad
- aFAC_androidonly() — Returns true only when device is Android OS
- aFAC_windowsmobileonly() — Returns true only when device is Windows Mobile OS
Does AddFunc Adaptive Content rely on JavaScript for anything?
To use the Quicktags you must have your JavaScript enabled. Other than that, nope.
Does AddFunc Adaptive Content rely on PHP for anything?
Yep.
Does AddFunc Adaptive Content work by browser sniffing?
Yes. That is what it’s base script (Mobile_Detect.php) is designed for and it does the job well.
Wouldn’t a JavaScript solution be more reliable?
Can I get a statistic? It really depends on how often you get visitors who have javascript turned off and whether you can do without them. Likewise, I suppose, it depends on whether many of your visitors withhold their browser and system data when requesting your website. Neither of these are very common, but they both happen.
Wouldn’t a JavaScript solution be faster?
Not likely. PHP generally runs very fast on web servers, and with JavaScript the you’re relying on the speed of your visitors system. Beside that, the point of this plugin is to serve the right content to the right devices, and only that. If you have to load a Javascript to detect the device before loading the rest of the page, that’s an additional script served and another query to your server would be necessary, when here we’re trying to minimize data transfer. Plus, waiting until your visitor’s machine has finish running a script before you can serve up the entire page isn’t as efficient as catching the device and OS specs when they first come to you automatically and thusly knowing what to serve up right from the start of the initial query.
Wouldn’t it be better to serve up images at an appropriate size based on the screen size or image area width, rather than the device type?
Yes. That’s quite a trick and we would love to see someone develop a plugin which makes that easy. I haven’t found one yet.
ChangeLog
2.0
Feb-2016
- Adds Quicktags
- Includes updated Mobile_Detect.php to the latest stable release (2.8.19)
1.0
Sep-2015
- Includes updated Mobile_Detect.php to the latest stable release (2.8.16)
- Includes updated readme.txt (hereafter goes without mention)
- Submitted to WordPress repository
0.1.2.0
Apr-2015
- Repurposed WP Mobile Detect as AddFunc Adaptive Content, to alter the shortcodes and to reinstate maintenance of this valuable plugin