Code: Select all
function DetectTierIphone()
{
if ($this->DetectIphoneOrIpod() == $this->true)
return $this->true;
if ($this->DetectAndroid() == $this->true)
return $this->true;
if ($this->DetectAndroidWebKit() == $this->true)
return $this->true;
if ($this->DetectPalmWebOS() == $this->true)
return $this->true;
if ($this->DetectGarminNuvifone() == $this->true)
return $this->true;
if ($this->DetectMaemoTablet() == $this->true)
return $this->true;
else
return $this->false;
}And I need to know how to turn that into something easy to use like $iphone=1 so I can use a short conditional around the site to show alternative css / js files etc.
Thanks guys