Esempio n. 1
0
        public static void Show(Core core, MPage page)
        {
            core.Template.SetTemplate("GuestBook", "viewguestbook");

            if (core.Session.IsLoggedIn)
            {
                if (page.Musician.Access.Can("COMMENT"))
                {
                    core.Template.Parse("CAN_COMMENT", "TRUE");
                }
            }

            core.Template.Parse("PAGE_TITLE", string.Format(core.Prose.GetString("USERS_GUEST_BOOK"), page.Owner.DisplayNameOwnership));

            core.Display.DisplayComments(core.Template, page.Musician, page.Musician);
            core.Display.ParsePagination("COMMENT_PAGINATION", GuestBook.Uri(core, page.Musician), 10, page.Musician.Comments);

            List<string[]> breadCrumbParts = new List<string[]>();

            breadCrumbParts.Add(new string[] { "comments", core.Prose.GetString("GUEST_BOOK") });

            page.Musician.ParseBreadCrumbs(breadCrumbParts);

            //Prose.GetString("GuestBook");
        }
Esempio n. 2
0
 public ShowMPageEventArgs(MPage page, string slug)
     : base(page, slug)
 {
 }
Esempio n. 3
0
 public ShowMPageEventArgs(MPage page)
     : base(page)
 {
 }
Esempio n. 4
0
 public ShowMPageEventArgs(MPage page, long itemId)
     : base(page, itemId)
 {
 }