Empire CMS 7.2版本引入了全面的多接入終端功能,使網(wǎng)站更方便地制作多個移動接入終端。版本7.5中的多訪問者升級:支持主端的后臺刷新以生成每個訪問端的靜態(tài)頁面,并且多訪問端在靜態(tài)模式下使用更方便。
頁面頭部
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.vevb.com/";}}}catch(err){}</script><meta name="mobile-agent" content="format=xhtml;url=https://m.vevb.com/">列表頁
動態(tài)頁:https://m.vevb.com/e/action/ListInfo/?classid=[!--self.classid--]靜態(tài)頁:https://m.vevb.com<?$r['classid']=$GLOBALS[navclassid];$classurl=sys_ReturnBqClassname($r,9);echo $classurl;?>內(nèi)容頁
動態(tài)頁:https://m.vevb.com/e/action/ListInfo/?classid=[!--self.classid--]靜態(tài)頁:https://m.vevb.com<?$r['classid']=$GLOBALS[navclassid];$classurl=sys_ReturnBqClassname($r,9);echo $classurl;?>分成動態(tài)與靜態(tài)頁面,可自行選擇更換ppqq.net為自己的子域名。
新聞熱點
疑難解答