xref: /dokuwiki/inc/Menu/Item/Index.php (revision 48555a307c1c09edcdcf70fbb1cc7dd1d7ba705a)
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