aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Menu/AbstractMenu.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2017-05-19 19:57:04 +0200
committerAndreas Gohr <andi@splitbrain.org>2017-05-19 19:57:04 +0200
commit2f7a5efd5a98cf50fc525d7321c3568e51fb8319 (patch)
tree7d1a73adfa417b66328fea30db7d118acc25e746 /inc/Menu/AbstractMenu.php
parentb85a7f3bd0cd2f5f52b55bd3de0c7869787662fb (diff)
downloaddokuwiki-2f7a5efd5a98cf50fc525d7321c3568e51fb8319.tar.gz
dokuwiki-2f7a5efd5a98cf50fc525d7321c3568e51fb8319.zip
use menu for site tools
this adds an option to print the menu without icons (as we do in the dokuwiki template) but icons were added nontheless
Diffstat (limited to 'inc/Menu/AbstractMenu.php')
-rw-r--r--inc/Menu/AbstractMenu.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/Menu/AbstractMenu.php b/inc/Menu/AbstractMenu.php
index 7680d2bac..8c01abe08 100644
--- a/inc/Menu/AbstractMenu.php
+++ b/inc/Menu/AbstractMenu.php
@@ -66,9 +66,10 @@ abstract class AbstractMenu {
* output, use getItems() and build the HTML yourself
*
* @param string|false $classprefix create a class from type with this prefix, false for no class
+ * @param bool $svg add the SVG link
* @return string
*/
- public function getListItems($classprefix = '') {
+ public function getListItems($classprefix = '', $svg = true) {
$html = '';
foreach($this->getItems() as $item) {
if($classprefix !== false) {
@@ -78,7 +79,7 @@ abstract class AbstractMenu {
}
$html .= "<li$class>";
- $html .= $item->asHtmlLink(false);
+ $html .= $item->asHtmlLink(false, $svg);
$html .= '</li>';
}
return $html;