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