You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
582 B

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