{include file="header.htm" /}
{include file="bar.htm" /}

{$row.value|substr='1'}.{$Request.rootDomain}__ROOT_DIR__

二级域名不要求是“{$row.value|substr='1'}”,可以自定义例如:m、wap、mobile等。

提前将域名解析并绑定 到html生成目录 ({$row.value|substr='1'})
将手机页面静态资源 ( css,js,images,fonts )等文件放到html生成目录 ({$row.value|substr='1'})

【二级目录跳转】

(1)、如果需要添加pc跳转手机代码,请添加本插件《使用指南》底部的自定义函数
(2)、可以考虑关闭自带的跳转代码:基本信息->核心设置-> pc跳转手机端js->关闭

  1. 1.电脑版首页加入跳转代码:
  2. <meta http-equiv="mobile-agent" content="format=xhtml;url={$row.value}"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/applewebkit.*mobile/i.test(navigator.userAgent.toLowerCase()) || (/midp|symbianos|nokia|samsung|lg|nec|tcl|alcatel|bird|dbtel|dopod|philips|haier|lenovo|mot-|nokia|sonyericsson|sie-|amoi|zte/.test(navigator.userAgent.toLowerCase()))){try{if(/android|windows phone|webos|iphone|ipod|blackberry/i.test(navigator.userAgent.toLowerCase())){window.location.href="{$row.value}";}else if(/ipad/i.test(navigator.userAgent.toLowerCase())){}else{}}catch(e){}}} </script>
  3. 2.电脑版栏目页加入跳转代码:
  4. <meta http-equiv="mobile-agent" content="format=xhtml;url={literal}{$eyou.field.typeurl|diy_GetMobileUrlType=###,<?php echo substr($row['value'],1) ?>,<?php echo $seo_html_arcdir; ?>}{/literal}"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/applewebkit.*mobile/i.test(navigator.userAgent.toLowerCase()) || (/midp|symbianos|nokia|samsung|lg|nec|tcl|alcatel|bird|dbtel|dopod|philips|haier|lenovo|mot-|nokia|sonyericsson|sie-|amoi|zte/.test(navigator.userAgent.toLowerCase()))){try{if(/android|windows phone|webos|iphone|ipod|blackberry/i.test(navigator.userAgent.toLowerCase())){window.location.href="{literal}{$eyou.field.typeurl|diy_GetMobileUrlType=###,<?php echo substr($row['value'],1) ?>,<?php echo $seo_html_arcdir; ?>}{/literal}"}else if(/ipad/i.test(navigator.userAgent.toLowerCase())){}else{}}catch(e){}}} </script>
  5. 3.电脑版内容页加入跳转代码:
  6. <meta http-equiv="mobile-agent" content="format=xhtml;url={literal}{$eyou.field.arcurl|diy_GetMobileUrlType=###,<?php echo substr($row['value'],1) ?>,<?php echo $seo_html_arcdir; ?>}{/literal}"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/applewebkit.*mobile/i.test(navigator.userAgent.toLowerCase()) || (/midp|symbianos|nokia|samsung|lg|nec|tcl|alcatel|bird|dbtel|dopod|philips|haier|lenovo|mot-|nokia|sonyericsson|sie-|amoi|zte/.test(navigator.userAgent.toLowerCase()))){try{if(/android|windows phone|webos|iphone|ipod|blackberry/i.test(navigator.userAgent.toLowerCase())){window.location.href="{literal}{$eyou.field.arcurl|diy_GetMobileUrlType=###,<?php echo substr($row['value'],1) ?>,<?php echo $seo_html_arcdir; ?>}{/literal}";}else if(/ipad/i.test(navigator.userAgent.toLowerCase())){}else{}}catch(e){}}} </script>

【二级域名跳转】

注意:如果对解析域名并绑定到html生成目录 、样式表js等静态资源放到手机目录指定位置都不熟悉怎么操作,那就不建议使用二级域名模式,请切换回二级目录模式

  1. 1.电脑版首页加入跳转代码:
  2. <meta http-equiv="mobile-agent" content="format=xhtml;url={$Request.scheme}://{$row.value|substr='1'}.{$Request.rootDomain}"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/applewebkit.*mobile/i.test(navigator.userAgent.toLowerCase()) || (/midp|symbianos|nokia|samsung|lg|nec|tcl|alcatel|bird|dbtel|dopod|philips|haier|lenovo|mot-|nokia|sonyericsson|sie-|amoi|zte/.test(navigator.userAgent.toLowerCase()))){try{if(/android|windows phone|webos|iphone|ipod|blackberry/i.test(navigator.userAgent.toLowerCase())){window.location.href="{$Request.scheme}://{$row.value|substr='1'}.{$Request.rootDomain}";}else if(/ipad/i.test(navigator.userAgent.toLowerCase())){}else{}}catch(e){}}} </script>
  3. 2.电脑版栏目页加入跳转代码:
  4. <meta http-equiv="mobile-agent" content="format=xhtml;url={literal}{$eyou.field.typeurl|diy_GetMobileUrl=###,<?php echo substr($row['value'],1) ?>,<?php echo $seo_html_arcdir; ?>}{/literal}"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/applewebkit.*mobile/i.test(navigator.userAgent.toLowerCase()) || (/midp|symbianos|nokia|samsung|lg|nec|tcl|alcatel|bird|dbtel|dopod|philips|haier|lenovo|mot-|nokia|sonyericsson|sie-|amoi|zte/.test(navigator.userAgent.toLowerCase()))){try{if(/android|windows phone|webos|iphone|ipod|blackberry/i.test(navigator.userAgent.toLowerCase())){window.location.href="{literal}{$eyou.field.typeurl|diy_GetMobileUrl=###,<?php echo substr($row['value'],1) ?>,<?php echo $seo_html_arcdir; ?>}{/literal}"}else if(/ipad/i.test(navigator.userAgent.toLowerCase())){}else{}}catch(e){}}}</script>
  5. 3.电脑版内容页加入跳转代码:
  6. <meta http-equiv="mobile-agent" content="format=xhtml;url={literal}{$eyou.field.arcurl|diy_GetMobileUrl=###,<?php echo substr($row['value'],1) ?>,<?php echo $seo_html_arcdir; ?>}{/literal}"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/applewebkit.*mobile/i.test(navigator.userAgent.toLowerCase()) || (/midp|symbianos|nokia|samsung|lg|nec|tcl|alcatel|bird|dbtel|dopod|philips|haier|lenovo|mot-|nokia|sonyericsson|sie-|amoi|zte/.test(navigator.userAgent.toLowerCase()))){try{if(/android|windows phone|webos|iphone|ipod|blackberry/i.test(navigator.userAgent.toLowerCase())){window.location.href="{literal}{$eyou.field.arcurl|diy_GetMobileUrl=###,<?php echo substr($row['value'],1) ?>,<?php echo $seo_html_arcdir; ?>}{/literal}";}else if(/ipad/i.test(navigator.userAgent.toLowerCase())){}else{}}catch(e){}}} </script>

  1. 2.注意事项
  2. 1、本插件使用模板 mobile来生成手机端静态文件,所以一定要有《mobile》模板!

    2、SEO设置里面必须设置为<静态页面>!

  1. 3.技术支持
  2. 如有疑问。联系QQ:2220673197
    (*^__^*) (*^__^*) (*^__^*) (*^__^*) (*^__^*)
{include file="footer.htm" /}