Here is code to add to the head of your doc to detect iPhone. Replace {stylesheet} with this to pull in a mobile stylesheet. More to come!

{if false !== $smarty.server.HTTP_USER_AGENT|lower|strpos:’iphone’}
{stylesheet name=’iPhone’ media=’screen’}
{else}
{stylesheet}
{/if}

Leave a Reply

You can add images to your comment by clicking here.

This site uses Akismet to reduce spam. Learn how your comment data is processed.