@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | class SiteMap extends Page { |
4 | - static $db = array( |
|
5 | - ); |
|
6 | - static $has_one = array( |
|
7 | - ); |
|
4 | + static $db = array( |
|
5 | + ); |
|
6 | + static $has_one = array( |
|
7 | + ); |
|
8 | 8 | |
9 | 9 | // hide from menus and search |
10 | 10 | static $defaults = array( |
@@ -15,13 +15,13 @@ discard block |
||
15 | 15 | |
16 | 16 | class SiteMap_Controller extends Page_Controller { |
17 | 17 | |
18 | - /** |
|
19 | - * This function will return a unordered list of all pages on the site. |
|
20 | - * Watch for the switch between $page and $child in the second line of the foreach(). |
|
21 | - * |
|
22 | - * Note that this will only skip ErrorPage's at the top/root level of the site. |
|
23 | - * If you have an ErrorPage class somewhere else in the hierarchy, it will be displayed. |
|
24 | - */ |
|
18 | + /** |
|
19 | + * This function will return a unordered list of all pages on the site. |
|
20 | + * Watch for the switch between $page and $child in the second line of the foreach(). |
|
21 | + * |
|
22 | + * Note that this will only skip ErrorPage's at the top/root level of the site. |
|
23 | + * If you have an ErrorPage class somewhere else in the hierarchy, it will be displayed. |
|
24 | + */ |
|
25 | 25 | function SiteMap() { |
26 | 26 | $rootLevel = DataObject::get("Page", "ParentID = 0"); // Pages at the root level only |
27 | 27 | $output = ""; |