Another simple solution:
1、The same url
2、Same editable area
3、Different HTML responds to different terminal devices
PS:My English is very poor, with Google translation, I hope you can understand
1、The same url
2、Same editable area
3、Different HTML responds to different terminal devices
PS:My English is very poor, with Google translation, I hope you can understand
- Code: Select all
<cms:php>
function isMobileAgent()
{
$bool = false;
$userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);
if (strpos($userAgent, 'android') && strpos($userAgent, 'mobile')) $bool = true;
else if (strpos($userAgent, 'iphone')) $bool = true;
else if (strpos($userAgent, 'ipod')) $bool = true;
return $bool;
}
</cms:php>
<cms: if isMobileAgent() >
Your mobile html
<cms:else>
Your PC html
</cms:if>