xref: /dokuwiki/inc/Menu/Item/Top.php (revision 4bb2fc4a55c12e16c9272726ea842cce055177a2)
193b8c351SAndreas Gohr<?php
293b8c351SAndreas Gohr
393b8c351SAndreas Gohrnamespace dokuwiki\Menu\Item;
493b8c351SAndreas Gohr
5368ce258SAndreas Gohr/**
6368ce258SAndreas Gohr * Class Top
7368ce258SAndreas Gohr *
8368ce258SAndreas Gohr * Scroll back to the top. Uses a hash as $id which is handled special in getLink().
9368ce258SAndreas Gohr * Not shown in mobile context
10368ce258SAndreas Gohr */
1193b8c351SAndreas Gohrclass Top extends AbstractItem {
1293b8c351SAndreas Gohr
13*4bb2fc4aSAndreas Gohr    /** @inheritdoc */
14*4bb2fc4aSAndreas Gohr    public function __construct() {
15*4bb2fc4aSAndreas Gohr        parent::__construct();
16*4bb2fc4aSAndreas Gohr
17*4bb2fc4aSAndreas Gohr        $this->svg = DOKU_INC . 'lib/images/menu/10-top_arrow-up.svg';
18*4bb2fc4aSAndreas Gohr        $this->accesskey = 't';
19*4bb2fc4aSAndreas Gohr        $this->params = array('do' => '');
20*4bb2fc4aSAndreas Gohr        $this->id = '#dokuwiki__top';
21*4bb2fc4aSAndreas Gohr        $this->context = self::CTX_DESKTOP;
22*4bb2fc4aSAndreas Gohr    }
2393b8c351SAndreas Gohr
2493b8c351SAndreas Gohr}
25