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
586 B

  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_COMPAT . '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. }