Closed LouisOuellet closed 8 months ago
+1 need this disabled plugin for now. Running Dokuwiki Kaos with Writr template.
Was able to fix by using the attributes instead.
<?php $items = (new \dokuwiki\Menu\PageMenu())->getItems();
foreach($items as $item) {
$attributes = $item->getLinkAttributes();
$html = '<li><a';
foreach($attributes as $key => $value) {
$html .= ' '.$key.'="'.$value.'"';
}
$html .= '><span class="icon"></span>'
.'<span class="a11y">'.$item->getLabel().'</span>'
.'</a></li>';
echo $html;
} ?>
Hi, Been working on Writr. I updated all the menus to the new menu system. It seems the menu item for this plugin is not functioning properly. Maybe you can help me out.
Notes on my environment. Using MAMP PRO (Apache and PHP 8.1) and Dokuwiki "Jack Jackrum".
Here is the code for the new menu:
Posted some screenshots of the issue here : GitHub Repo
Ideally, I would like to style it the same way I did with the addnewpage plugin. Screenshot
Here is how I was able to implement that one:
You can review the code here : main.php