1/*
2 * DokuWiki Bootstrap3 Template: Plugins Hacks!
3 *
4 * Home     http://dokuwiki.org/template:bootstrap3
5 * Author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
6 * License  GPL 2 (http://www.gnu.org/licenses/gpl.html)
7 */
8
9// Simple Navi Plugin
10
11var $simplenavi = jQuery('.plugin__simplenavi');
12
13if ($simplenavi.length) {
14
15    $simplenavi.find('li').addClass('mt-1');
16    $simplenavi.find('a.wikilink2').removeClass('wikilink2');
17    $simplenavi.find('li.open strong').contents().unwrap();
18    $simplenavi.find('li.closed a').prepend('<span class="iconify mr-2" data-icon="mdi:folder"/>');
19    $simplenavi.find('li.open > a').prepend('<span class="iconify mr-2" data-icon="mdi:folder-open"/>');
20    $simplenavi.find('li').not('.closed').not('.open').find('a').prepend('<span class="iconify mr-2" data-icon="mdi:file-document-outline"/>');
21
22}
23