1<?php
2/**
3 * DokuWiki Bootstrap3 Template: Page icons
4 *
5 * @link     http://dokuwiki.org/template:bootstrap3
6 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
7 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 */
9
10global $TPL;
11
12if (($ACT == 'show' || defined('DOKU_MEDIADETAIL')) && $TPL->getConf('showPageIcons')):
13
14?>
15<!-- page-icons -->
16<div class="dw-page-icons pull-right hidden-print">
17    <ul class="list-inline">
18    <?php
19
20        $menu = new \dokuwiki\template\bootstrap3\Menu\PageIconsMenu;
21
22        foreach($menu->getItems() as $item) {
23
24            $class = $item->getType();
25            $attr  = buildAttributes($item->getLinkAttributes());
26
27            if ($item->getType() == 'shareon') {
28                $class .= ' dropdown';
29            }
30
31            $html  = '<li class="' . $class . '">';
32            $html .= "<a $attr>";
33            $html .= \inlineSVG($item->getSvg());
34            $html .= '<span>' . hsc($item->getLabel()) . '</span>';
35            $html .= "</a>";
36
37            if ($item->getType() == 'shareon') {
38                $html .= $item->getDropDownMenu();
39            }
40
41            $html .= '</li>';
42
43            echo $html;
44
45        }
46
47    ?>
48    </ul>
49</div>
50
51<span class="clearfix"></span>
52
53<!-- /page-icons -->
54
55<div class="help modal fade" tabindex="-1" role="dialog">
56    <div class="modal-dialog modal-lg" role="document">
57        <div class="modal-content">
58            <div class="modal-header">
59                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
60                <h4 class="modal-title"></h4>
61            </div>
62            <div class="modal-body px-5"></div>
63        </div>
64    </div>
65</div>
66
67<?php endif; ?>
68
69