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