Index.php 579 B

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