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->category = 'site'; 14 $this->accesskey = 'x'; 15 16 // allow searchbots to get to the sitemap from the homepage (when dokuwiki isn't providing a sitemap.xml) 17 global $conf; 18 global $ID; 19 if($conf['start'] == $ID && !$conf['sitemap']) { 20 $this->nofollow = false; 21 } 22 } 23 24} 25