Empire CMS 7.2版本引入了全面的(de)多接入終端功能,使網站更方便地(dì)制作多個移動接入終端。版本7.5中的(de)多訪問者升級:支持主端的(de)後台刷新以生成每個訪問端的(de)靜态頁面,并且多訪問端在靜态模式下使用更方便。
頁面頭部
JS代碼在body前面加上以下HTML源代碼
<script type="text/javascript">
try {
var urlhash = window.location.hash;
if (!urlhash.match("fromapp")) {
if ((navigator.userAgent.match(/(ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i))) {
window.location = "https://m.daixiao360.cn/";
}
}
} catch(err) {}
</script>
<meta name="mobile-agent" content="format=xhtml;url=https://m.daixiao360.cn/">
列表頁
動态頁:https://m.daixiao360.cn/e/action/ListInfo/?classid=[!--self.classid--]
靜态頁:https://m.daixiao360.cn
<?$r['classid']=$GLOBALS[navclassid];$classurl=sys_ReturnBqClassname($r,9);echo $classurl;?>
內(nèi)容頁
動态頁:https://m.daixiao360.cn/e/action/ListInfo/?classid=[!--self.classid--]
靜态頁:https://m.daixiao360.cn
<?$r['classid']=$GLOBALS[navclassid];$classurl=sys_ReturnBqClassname($r,9);echo $classurl;?>
分成動态與靜态頁面,可(kě)自(zì)行選擇更換ppqq.net為(wèi)自(zì)己的(de)子(zǐ)域名。