Esempio n. 1
0
        private void AddLinksSection(UserPageParameters userPageParameters, User owner, bool gotMasthead, bool gotOwner)
        {
            if (gotMasthead && (InputContext.GetSiteOptionValueBool("PersonalSpace", "IncludeLinks") || userPageParameters.IncludeLinks))
            {
                bool isOwnerViewing = (InputContext.ViewingUser.UserID == owner.UserID);
                if (gotOwner && InputContext.ViewingUser.UserID > 0 && isOwnerViewing)
                {
                    ManagedClippedLinks(userPageParameters, owner);
                }
                if (gotOwner)
                {
                    Link link = new Link(InputContext);

                    link.GetUserLinks(owner.UserID, userPageParameters.LinkGroup, isOwnerViewing, 0, 0);
                    AddInside(link);

                    link.GetUserLinkGroups(owner.UserID);
                    AddInside(link);
                }
            }

        }