示例#1
0
文件: SitesMenu.cs 项目: Epitomy/CMS
        private static MenuItem CreateSiteMenuItem(Site site)
        {
            MenuItem        menuItem = new SiteMenuItem(site);
            List <MenuItem> items    = new List <MenuItem>();

            menuItem.Items = items;
            foreach (var child in Kooboo.CMS.Sites.Services.ServiceFactory.SiteManager.ChildSites(site))
            {
                items.Add(CreateSiteMenuItem(child));
            }
            return(menuItem);
        }
示例#2
0
文件: SitesMenu.cs 项目: Epitomy/CMS
 private static MenuItem CreateSiteMenuItem(Site site)
 {
     MenuItem menuItem = new SiteMenuItem(site);
     List<MenuItem> items = new List<MenuItem>();
     menuItem.Items = items;
     foreach (var child in Kooboo.CMS.Sites.Services.ServiceFactory.SiteManager.ChildSites(site))
     {
         items.Add(CreateSiteMenuItem(child));
     }
     return menuItem;
 }