summaryrefslogtreecommitdiff
path: root/platform/www/inc/Menu/Item/Index.php
diff options
context:
space:
mode:
Diffstat (limited to 'platform/www/inc/Menu/Item/Index.php')
-rw-r--r--platform/www/inc/Menu/Item/Index.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/platform/www/inc/Menu/Item/Index.php b/platform/www/inc/Menu/Item/Index.php
new file mode 100644
index 0000000..4132673
--- /dev/null
+++ b/platform/www/inc/Menu/Item/Index.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace dokuwiki\Menu\Item;
+
+/**
+ * Class Index
+ *
+ * Shows the sitemap
+ */
+class Index extends AbstractItem {
+
+ /** @inheritdoc */
+ public function __construct() {
+ global $conf;
+ global $ID;
+ parent::__construct();
+
+ $this->accesskey = 'x';
+ $this->svg = DOKU_INC . 'lib/images/menu/file-tree.svg';
+
+ // allow searchbots to get to the sitemap from the homepage (when dokuwiki isn't providing a sitemap.xml)
+ if($conf['start'] == $ID && !$conf['sitemap']) {
+ $this->nofollow = false;
+ }
+ }
+
+}