|
Cookbook /
DetectMobileSummary: Determines whether the browser is a mobile device.
Version: 7-Oct-2007 (1.0.0)
Prerequisites: None
Status: Active
Maintainer: DaveG
Download: detect_mobile.zipΔ
License: SHARED SOURCE LICENSE
DescriptionProvides a means of detecting whether the user browsing a wiki is using a mobile device. Can be used within PmWiki (or PHP in general) to either load mobile specific skins, or perform mobile related actions. Download and Installation
include_once("$FarmD/cookbook/detect_mobile.php");
Using the ScriptSimply call the function from within PHP: detect_mobile_device() For example, you might use it in
if(detect_mobile_device()) {
$Skin = 'skidoo/PDA';
} else {
$Skin = 'skidoo';
}
Known IssuesAlso refer to the todo list for know issues that have a planned fix date.
Change LogRelease Notes
Credit
CommentsI'd love to know if you use this recipe -- edit this page and leave a comment below! |