芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/thefirstcookout.com/support/application/libraries/AddonSiteMenu.php
config->item("url_suffix"); $currenturl=parse_url(current_url()); if(!empty($currenturl['scheme']) && !empty($currenturl['host']) && !empty($currenturl['path'])){ $currenturl=$currenturl['scheme']."://".$currenturl['host'].$currenturl['path']; $currenturl=str_replace(array(base_url(),$url_suffix), "", $currenturl); $currenturl=str_replace("_", "-", $currenturl); } $menu=new self(); $menu->addonObj=$addonObj; $menu->title=__($title); $menu->url=site_url($url).$param; $menu->cssClass=$cssClass; $menu->iconClass=$icon; $menu->isSelected=$currenturl==$url || $currenturl==$url."/index" ||in_array($currenturl, $SelectedPageList) ; $menu->isGroupMenu=$isGrupMenu; $menu->isGroupViewable=!empty($url); $menu->rightText=$rightText; $menu->rightTextColor=$color; $menu->type="M"; return $menu; } }