This function will return a unordered list of all pages on the site.

Watch for the switch between $page and $child in the second line of the foreach(). Note that this will only skip ErrorPage's at the top/root level of the site. If you have an ErrorPage class somewhere else in the hierarchy, it will be displayed.