{"id":61515,"date":"2013-02-01T04:26:45","date_gmt":"2013-02-01T04:26:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/mobile-content\/"},"modified":"2013-02-15T02:21:36","modified_gmt":"2013-02-15T02:21:36","slug":"mobile-content","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/mobile-content\/","author":11597764,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3","stable_tag":"trunk","tested":"3.5.2","requires":"2.1.3","requires_php":"","requires_plugins":"","header_name":"Mobile Content","header_author":"Dylan Feltus","header_description":"","assets_banners_color":"","last_updated":"2013-02-15 02:21:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/dylanfeltus.com\/mobile-content\/","header_author_uri":"http:\/\/dylanfeltus.com","rating":0,"author_block_rating":0,"active_installs":20,"downloads":2234,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-61515","plugin","type-plugin","status-closed","hentry","plugin_committers-dylanfeltusdesign"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/mobile-content.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Mobile Content plugin allows you to use shortcodes to display different content, in your posts or pages, depending on the device it is being viewed on. Using these shortcodes you can specify to only show certain content to computers, tablets, or mobile phones. You can also target OS like iOS, Android, Blackberry, and Kindle.\nSee an example <a href=\"http:\/\/dylanfeltus.com\/mobile-content\/demo\/\">here<\/a>.<\/p>\n\n<p>Now you can use the shortcodes inside a widget.<\/p>\n\n<p>Shortcodes:<br \/>\n[computer]Content for only computers here[\/computer]<br \/>\n[tablet]Content for only tablets here[\/tablet]<br \/>\n[mobile]Content for only phones here[\/mobile]<br \/>\n[ios]Content for only iOS devices only here[\/ios]<br \/>\n[android]Content for only Android devices only here[\/android]<br \/>\n[bb]Content for only Blackberry devices here[\/bb]<br \/>\n[kindle]Content for only Kindle devices here[\/kindle]<br \/>\n[computer_tablet]Content for computer and tablets here[\/computer_tablet]<br \/>\n[mobile_tablet]Content for phones and tablets here[\/mobile_tablet]<br \/>\n[not_android_ios]Content for everything EXCEPT Android and iOS devices here[\/not_android_ios]<br \/>\nRetina Display coming soon!<br \/>\n<br \/>\nBlackberry and Kindle shortcodes have not been tested yet. Will update this when I test them<br \/>\nNeed a specific device? Send me an email: contact@dylanfeltus.com<\/p>\n\n<p>You can see more info about the plugin at:\n<a href=\"http:\/\/www.wpmobilecontent.com\">www.wpmobilecontent.com<\/a><\/p>\n\n<p>If you have any questions feel free to contact me via my site:\n<a href=\"http:\/\/www.dylanfeltus.com\">www.dylanfeltus.com<\/a><\/p>\n\n<!--section=installation-->\n<p>You can upload the mobile-content.zip file using the Plug-in Installer located at Plugins &gt; Add New in the Wordpress Admin.<\/p>\n\n<p>or<\/p>\n\n<ol>\n<li>Upload <code>mobile-content<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use the short codes to specify the device.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>What are the shortcodes?<\/h4>\n\n<p>[computer]Content for only computers here[\/computer]<br \/>\n[tablet]Content for only tablets here[\/tablet]<br \/>\n[mobile]Content for only phones here[\/mobile]<br \/>\n[mobile_tablet]Content for phones and tablets here[\/mobile_tablet]<br \/>\n[ios]Content for only iOS devices only here[\/ios]<br \/>\n[android]Content for only Android devices only here[\/android]<br \/>\n[bb]Content for only Blackberry devices here[\/bb]<br \/>\n[kindle]Content for only Kindle devices here[\/kindle]<\/p>\n\n<h4>Can I use the shortcodes in PHP files like the header or footer?<\/h4>\n\n<p>No, you cannot use the shortcodes in PHP files but you can use this code below:<\/p>\n\nisMobile() &amp;&amp; ! $detect-&gt;isTablet() ) {\n                        echo \"Content here\";\/\/ Code to run Mobile Content\n} \n?&gt;\n\n<p>Replace Content here with what you want to show. This example is for Mobile content only.<\/p>\n\n<!--section=changelog-->\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added the ability to use the shortcodes in a widget.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added [computer_tablet] &amp; [not_android_ios] shortcodes.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Changed plugin so it didnt use media queries but used the Mobile-Detect script. Also added the ability to target iOS, Android, Blackberry, and Kindle.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Mobile Content plugin allows you to use shortcodes to display different content, in your posts or pages, depending on the device it is being viewed on","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/61515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=61515"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dylanfeltusdesign"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=61515"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=61515"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=61515"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=61515"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=61515"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=61515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}