1<?php
2
3namespace dokuwiki\Menu\Item;
4
5/**
6 * Class Index
7 *
8 * Shows the sitemap
9 */
10class Index extends AbstractItem {
11
12    /** @inheritdoc */
13    public function __construct() {
14        global $conf;
15        global $ID;
16        parent::__construct();
17
18        $this->accesskey = 'x';
19        $this->svg = DOKU_INC . 'lib/images/menu/file-tree.svg';
20
21        // allow searchbots to get to the sitemap from the homepage (when dokuwiki isn't providing a sitemap.xml)
22        if($conf['start'] == $ID && !$conf['sitemap']) {
23            $this->nofollow = false;
24        }
25    }
26
27}
28