Thread Starter
Gem
(@gemjeweled)
I must have not understood how the plugin works.
So I made some PHP code.
<?php if ( is_handheld() ) : ?>
<p style="background: #eee; margin: 0;">I am a handheld.</p>
<?php endif; ?>
<?php if ( is_mobile() ) : ?>
<p style="background: #eee; margin: 0;">I am a mobile.</p>
<?php endif; ?>
<?php if ( is_tablet() ) : ?>
<p style="background: #eee; margin: 0;">I am a tablet.</p>
<?php endif; ?>
<?php if ( is_ios() ) : ?>
<p style="background: #eee; margin: 0;">I am an iOS.</p>
<?php endif; ?>
<p style="background: #eee; margin: 0;">If you don't see any identity, then I'm probably a giant computer.</p>
When checked against a user agent like this below:
Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/10.0.012; Profile/MIDP-2.1 Configuration/CLDC-1.1; en-us) AppleWebKit/525 (KHTML, like Gecko) WicKed/7.1.12344
The output was:
I am a handheld.
I am a mobile.
If you don’t see any identity, then I’m probably a giant computer.
So there. I finally understand that a handheld is a mobile as well. Or that a handheld is a tablet too (which corresponds to real-world definition of a handheld – where handhelds are composed of tablets and mobiles). 😀
Thanks for the wonderful plugin by the way. You rock! 🙂
Hi Gem
Glad you worked it out and that you find mobble useful. Good luck with your site.
Scott
Hi Gem
Glad you worked it out and that you find mobble useful. Good luck with your site.