{"id":15771,"date":"2011-11-25T08:21:45","date_gmt":"2011-11-25T08:21:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/mobile-client-detection-plugin\/"},"modified":"2012-09-26T23:54:46","modified_gmt":"2012-09-26T23:54:46","slug":"mobile-client-detection-plugin","status":"closed","type":"plugin","link":"https:\/\/fr-be.wordpress.org\/plugins\/mobile-client-detection-plugin\/","author":8220654,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.9.0","stable_tag":"trunk","tested":"3.4.2","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"Mobile Client Detection Plugin","header_author":"Martin T. Zeitler","header_description":"","assets_banners_color":"946c55","last_updated":"2012-09-26 23:54:46","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.codefx.biz\/donate-some","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/mobile-client-detection-plugin\/","header_author_uri":"http:\/\/www.codefx.biz","rating":1.5,"author_block_rating":0,"active_installs":10,"downloads":6168,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":"1","3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"479688","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539101","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539101","resolution":"1","location":"plugin"}},"screenshots":{"1":"This screenshot shows the current options screen, as per Version 0.8.2.","2":"Debug Output on a Android 4.0 ICS Tablet \/ Dolphin, as per Version 0.8.2."}},"plugin_section":[],"plugin_tags":[841,2644,2645,1141],"plugin_category":[],"plugin_contributors":[89247],"plugin_business_model":[],"class_list":["post-15771","plugin","type-plugin","status-closed","hentry","plugin_tags-mobile","plugin_tags-phone","plugin_tags-tablet","plugin_tags-theme","plugin_contributors-syslogic","plugin_committers-syslogic"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/mobile-client-detection-plugin_946c55.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/mobile-client-detection-plugin\/trunk\/screenshot-1.png?rev=1539101","caption":"This screenshot shows the current options screen, as per Version 0.8.2."},{"src":"https:\/\/ps.w.org\/mobile-client-detection-plugin\/trunk\/screenshot-2.png?rev=1539101","caption":"Debug Output on a Android 4.0 ICS Tablet \/ Dolphin, as per Version 0.8.2."}],"raw_content":"<!--section=description-->\n<p>In case the mobile version of your blog shall have a different layout\nor when it\u2019s required to load different versions of CSS\/JS code.:<\/p>\n\n<p>This plug-in can overload template files and theme directories - by the detected platform.<\/p>\n\n<p>And it can provide query_vars 'platform' &amp; 'browser' for creating multi-device templates.<\/p>\n\n<p>Currently it can detect the following mobile platforms:\nAndroid Phones (Android 1.x &amp; 2.x), Android Tablets (Android 3.x &amp; 4.x),\nBlackberry, iPad, iPhone, iPod, IE mobile, Kindle, SymbianOS, PalmOS, webOS,\nGoogleBot mobile.<\/p>\n\n<p>It also can detect several desktop platforms (e.g. Internet Explorer)\nso it's quite handy for fixing things for specific user-agents\n(instead of using conditional CSS).<\/p>\n\n<p><em>Please be aware the this is a support plug-in, not a fully featured mobile theme.<\/em><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the 'mobile-client-detection-plugin' directory into the '\/wp-content\/plugins\/' directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu within WordPress.<\/li>\n<li>It operates quite silently (unless debug output is enabled).<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How does it work ?<\/dt>\n<dd><p>The plugin adds two query_vars to each request (it uses PHP instead of mod_rewrite),\nwhich can be used to create templates with multi-device support -\nand it can send out platform-specific template-files or whole themes!!<\/p><\/dd>\n<dt>Which values can the query_var 'platform' return ?<\/dt>\n<dd><ol>\n<li>android-phone, blackberry, windows, iphone, ipod, iemobile, webos, symbian, googlebot-mobile (or general: mobile).<\/li>\n<li>android-tablet, ipad, kindle (or general: tablet).<\/li>\n<li>windows, win64, wow64, macintosh, ppx mac os x, intel mac os x (or general: desktop).<\/li>\n<\/ol>\n\n<p>The value 'desktop' can be (most likely) considered as a desktop PC -\nsince there\u2019s pretty much any popular mobile platform covered.<\/p><\/dd>\n<dt>Which values can the query_var 'browser' return ?<\/dt>\n<dd><ol>\n<li>fennec, iemobile, mobile safari, googlebot-mobile (or general: mobile).<\/li>\n<li>msie 5,msie 6, msie 7, msie 8, msie 9, chrome, camino, firefox, safari (or general: desktop)<\/li>\n<li>w3c_validator, googlebot (or general: bot)<\/li>\n<\/ol><\/dd>\n<dt>Does this plugin have any options ?<\/dt>\n<dd><ol>\n<li>'General Only': Yes\/No - limit results to mobile, tablet, deskop, bot<\/li>\n<li>'Debug Output': Yes\/No - append debug output to the footer on front-end<\/li>\n<li>'Modus Operandi': default WP template \/ template-overloading \/ theme-overloading<\/li>\n<li>'Add query_vars platform &amp; browser': Yes\/No - those vars are available in any theme file.<\/li>\n<\/ol><\/dd>\n<dt>Where can I find these options ?<\/dt>\n<dd><p>You can find the options in the menu under Settings &gt; Mobile Client Detection.<\/p><\/dd>\n<dt>Does this plug-in provide any conditional statements ?<\/dt>\n<dd><ol>\n<li>is_desktop()<\/li>\n<li>is_mobile()<\/li>\n<li>is_tablet()<\/li>\n<li>is_chrome()<\/li>\n<li>is_explorer()<\/li>\n<\/ol><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9.0<\/h4>\n\n<ul>\n<li>Conditional statement accessibility improved (thanks to Offereins for the suggestion).<\/li>\n<li>Added further regex conditional statements: is_chrome(), is_explorer()<\/li>\n<\/ul>\n\n<h4>0.8.2<\/h4>\n\n<ul>\n<li>Template file overloading works.<\/li>\n<li>Theme directory overloading works.<\/li>\n<li>Checks if the templates file even exist.<\/li>\n<li>option 'Setup query_vars' added.<\/li>\n<\/ul>\n\n<h4>0.7.3<\/h4>\n\n<ul>\n<li>Template arrays added to debug output.<\/li>\n<\/ul>\n\n<h4>0.7.2<\/h4>\n\n<ul>\n<li>Theme \/ Template detection by regex added.<\/li>\n<li>path-wrapping per platform is working.<\/li>\n<\/ul>\n\n<h4>0.7.0<\/h4>\n\n<ul>\n<li>Basic options page added.<\/li>\n<li>option 'General Results Only' added.<\/li>\n<li>option 'Footer Debug Output' added.<\/li>\n<\/ul>\n\n<h4>0.6.0<\/h4>\n\n<ul>\n<li>Tablet detection added (thanks to Mystech for the request).<\/li>\n<li>Android &amp; IE Version detection added.<\/li>\n<li>Mobile Safari detection fixed.<\/li>\n<li>readme.txt updated.<\/li>\n<\/ul>\n\n<h4>0.5.0<\/h4>\n\n<ul>\n<li>Support for Kindle &amp; Symbian added.<\/li>\n<li>Browser detection added.<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<ul>\n<li>'Footer Output' option added.<\/li>\n<li>'General results only' option added.<\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>Example added.<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Proof of concept.<\/li>\n<\/ul>","raw_excerpt":"The Mobile Client Detection Plugin can overload platform-specific themes or templates - and it provides query_vars platform &amp; browser.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=15771"}],"author":[{"embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/syslogic"}],"wp:attachment":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15771"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15771"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15771"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15771"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15771"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}