is iPhone?
Delivering iPhone exclusive content on the fly with ExpressionEngine just got easy, super easy.
Installation
- Add the folder /is_phone/ to your ./system/expressionengine/third_party/ folder.
Tags
- {exp:is_iphone}
- is_iPhone uses only one tag / tag pair..
Parameters
- redirect=""
- The redirect parameter can be used to redirect one page to another. The parameter should not be used with a stand alone tag at the top of a page. If it's placed at any location other then the top, the redirect will fail.
{exp:is_iphone redirect="/index.php/relative/path/"}
{exp:is_iphone redirect="http://www.devot-ee.com"}
- no parameters
- When no parameters are provided, the plugin expects to see a tag pair with the contents output only to the screen if the user agent is an iPhone.
{exp:is_iphone} Include your iphone/ipod touch only text, js, or css here. {/exp:is_iphone}