<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://'; } $pageURL.=$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"]; if($_SERVER["REQUEST_URI"]=='/'){ $_SERVER["REQUEST_URI"]='/wap/index/index.html'; } if($pageURL==$vo['url'] || $_SERVER["REQUEST_URI"]==$vo['url']){ $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>