xref: /dokuwiki/inc/Menu/Item/Index.php (revision 2f7a5efd5a98cf50fc525d7321c3568e51fb8319)
193b8c351SAndreas Gohr<?php
293b8c351SAndreas Gohr
393b8c351SAndreas Gohrnamespace dokuwiki\Menu\Item;
493b8c351SAndreas Gohr
593b8c351SAndreas Gohrclass Index extends AbstractItem {
693b8c351SAndreas Gohr
7*2f7a5efdSAndreas Gohr    protected $svg = DOKU_INC . 'lib/images/menu/file-tree.svg';
8*2f7a5efdSAndreas Gohr
993b8c351SAndreas Gohr    /** @inheritdoc */
1093b8c351SAndreas Gohr    public function __construct() {
1193b8c351SAndreas Gohr        parent::__construct();
1293b8c351SAndreas Gohr
1393b8c351SAndreas Gohr        $this->category = 'site';
1493b8c351SAndreas Gohr        $this->accesskey = 'x';
1593b8c351SAndreas Gohr
1693b8c351SAndreas Gohr        // allow searchbots to get to the sitemap from the homepage (when dokuwiki isn't providing a sitemap.xml)
1793b8c351SAndreas Gohr        global $conf;
1893b8c351SAndreas Gohr        global $ID;
1993b8c351SAndreas Gohr        if($conf['start'] == $ID && !$conf['sitemap']) {
2093b8c351SAndreas Gohr            $this->nofollow = false;
2193b8c351SAndreas Gohr        }
2293b8c351SAndreas Gohr    }
2393b8c351SAndreas Gohr
2493b8c351SAndreas Gohr}
25