xref: /template/kiwiki/classes/kiwiki_edit.php (revision 5f7f55e74e6123c87be4581472d3a19066b488d6)
1<?php
2
3namespace dokuwiki\Menu;
4
5/**
6 * Class KiwikiEdit
7 *
8 * Edit icon button
9 */
10class KiwikiEdit extends AbstractMenu {
11
12    protected $view = 'page';
13
14    public $types = array(
15        'EditIcon'
16    );
17
18    /**
19     * Generate HTML list items for this menu
20    */
21    public function getListItems($classprefix = 'edit-this', $svg = true)
22    {
23        $html = '';
24        foreach ($this->getItems() as $item) {
25            $html .= $item->asHtmlLink($classprefix , $svg);
26        }
27        return $html;
28    }
29}
30