1<?php 2 3namespace dokuwiki\Menu\Item; 4 5/** 6 * Class Top 7 * 8 * Scroll back to the top. Uses a hash as $id which is handled special in getLink(). 9 * Not shown in mobile context 10 */ 11class Bottom extends AbstractItem { 12 13 /** @inheritdoc */ 14 public function __construct() { 15 parent::__construct(); 16 17 $this->svg = DOKU_INC . 'lib/images/menu/10-top_arrow-up.svg'; 18 $this->accesskey = 't'; 19 $this->params = array('do' => ''); 20 $this->id = '#dokuwiki__bottom'; 21 $this->context = self::CTX_DESKTOP; 22 } 23 /** 24 * Convenience method to create a <button> element 25 * 26 * Uses html_topbtn() 27 * 28 * @todo this does currently not support the SVG icon 29 * @return string 30 */ 31 public function asHtmlButton() { 32 return Kiwiki_Functions::html_bottombtn(); 33 } 34 35}