1*93b8c351SAndreas Gohr<?php 2*93b8c351SAndreas Gohr 3*93b8c351SAndreas Gohrnamespace dokuwiki\Menu\Item; 4*93b8c351SAndreas Gohr 5*93b8c351SAndreas Gohrclass Index extends AbstractItem { 6*93b8c351SAndreas Gohr 7*93b8c351SAndreas Gohr /** @inheritdoc */ 8*93b8c351SAndreas Gohr public function __construct() { 9*93b8c351SAndreas Gohr parent::__construct(); 10*93b8c351SAndreas Gohr 11*93b8c351SAndreas Gohr $this->category = 'site'; 12*93b8c351SAndreas Gohr $this->accesskey = 'x'; 13*93b8c351SAndreas Gohr 14*93b8c351SAndreas Gohr // allow searchbots to get to the sitemap from the homepage (when dokuwiki isn't providing a sitemap.xml) 15*93b8c351SAndreas Gohr global $conf; 16*93b8c351SAndreas Gohr global $ID; 17*93b8c351SAndreas Gohr if($conf['start'] == $ID && !$conf['sitemap']) { 18*93b8c351SAndreas Gohr $this->nofollow = false; 19*93b8c351SAndreas Gohr } 20*93b8c351SAndreas Gohr } 21*93b8c351SAndreas Gohr 22*93b8c351SAndreas Gohr} 23