Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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;
 }