1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <!-- +---------------------------------------------------------------------- -->
- <!-- | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -->
- <!-- +---------------------------------------------------------------------- -->
- <!-- | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. -->
- <!-- +---------------------------------------------------------------------- -->
- <!-- | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -->
- <!-- +---------------------------------------------------------------------- -->
- <!-- | Author: CRMEB Team <admin@crmeb.com> -->
- <!-- +---------------------------------------------------------------------- -->
- <footer id="footer" class="acea-row row-middle" style="z-index: 2" ref="storeMenu" @touchmove.prevent>
- {volist name="menus" id="vo"}
- <?php
- $https = "/^https:[\/]{2}[a-z]+[.]{1}[a-z\d\-]+[.]{1}[a-z\d]*[\/]*[A-Za-z\d]*[\/]*[A-Za-z\d]*/";
- if(preg_match($https,$vo['url'])){
- $pageURL = 'https://';
- }else{
- $pageURL = 'http://';
- }
- if($_SERVER["REQUEST_URI"]=='/'){
- $_SERVER["REQUEST_URI"]='/wap/index/index.html';
- }
- $pageURL.=$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"];
- $page=parse_url($pageURL);
- if(array_key_exists('path',$page)){
- $page=parse_url($pageURL)['path'];
- }else{
- $page='/wap/index/index.html';
- }
- $afferent=parse_url($vo['url']);
- if(array_key_exists('path',$afferent)){
- $afferent=parse_url($vo['url'])['path'];
- }else{
- $afferent='#';
- }
- if(strpos($page,'.html')===false) $page=$page.'.html';
- if(strpos($afferent,'.html')===false) $afferent=$afferent.'.html';
- if($page==$afferent){
- $href = 'javascript:void(0);';
- $checked = true;
- }else{
- $href =$vo['url'];
- $checked = false;
- }
- ?>
- <a class="<?php if($checked){echo ' on ';} ?>" href="{$href}">
- <div class="pictrue"><img src="{if $checked}{$vo.class}{else}{$vo.hove_class}{/if}"></div>
- <div class="name">{$vo['name']}</div>
- </a>
- {/volist}
- </footer>
|