[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Menu/Item/ -> Index.php (source)

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