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