STOP STOP STOP STOP STOP!
<rant>
Please stop trying to detect UserAgent and switch your page based on that. Its getting a bit old now.. and it doesn't work in 99.999% of the cases you'll need it to work.
Seriously, there is absolutely zero difference between a "mobile" and a "desktop" webpage, if you design your site properly, and that site design does NOT include sniffing HTTP_USER_AGENT, using Javascript, or having a second duplicate page in "mobile" format.
This whole "mobile web" and "How to build webpages for mobile devices" FUD is really beginning to get frustrating. Its like using tables for layout.. they weren't designed for it, and if you use tables for layout, you're using a crutch.
If you have to make a second physical webpage for "mobile" devices, you clearly don't know what you're doing, so its a crutch.
Learn how to design webpages and mobile content properly for ALL devices (that is, one page, one set of content that looks and works great on ALL devices; past, present and future), and you'll see how much easier it is, with significantly more flexibility in your designs and much less maintenance overhead.
</rant>
|