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