&$page) { if (!array_diff_assoc($filter, $page)) { unset($siteMap[$alias]); } if (isset($page['sub']) && !empty($page['sub'])) { $page['sub'] = Qs_SiteMap::_filterExclude($page['sub'], $filter); } } return $siteMap; } public static function findFirstLocal($page = null, $item = null, $config = null, $field = null) { return Qs_SiteMap::findFirst($page, $item, $config, $field, Qs_Sitemap::getLocal()); } public static function getLocal() { if (ADMIN_END) { $siteMap = Qs_SiteMap::getBackendSiteMapFull(); } else { $siteMap = Qs_SiteMap::getFull(); reset($siteMap); unset($siteMap[key($siteMap)]['sub']['admin']); } return $siteMap; } }