BlogEngine.Core.Web.Controls.PageMenu.BindPages C# (CSharp) Method

BindPages() private method

private BindPages ( ) : System.Web.UI.HtmlControls.HtmlGenericControl
return System.Web.UI.HtmlControls.HtmlGenericControl
        private HtmlGenericControl BindPages()
        {
            // recursivly get all children of the root page
            HtmlGenericControl ul = GetChildren(Guid.Empty);

            // items that will be appended to the end of menu list
            AddMenuItem(ul, Contact, "~/contact.aspx");

            if (Security.IsAuthenticated)
            {
                AddMenuItem(ul, Logoff, "~/Account/login.aspx?logoff");
            }
            else
            {
                AddMenuItem(ul, Logon, "~/Account/login.aspx");
            }

            return ul;
        }