From 679dba01b427ea0357528be367261c2d30a26b22 Mon Sep 17 00:00:00 2001 From: Michael Große Date: Thu, 18 Jan 2018 19:43:45 +0100 Subject: feat: add optionally an SVG to html_btn --- inc/Menu/Item/AbstractItem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/Menu') diff --git a/inc/Menu/Item/AbstractItem.php b/inc/Menu/Item/AbstractItem.php index 82b351b81..e943b5900 100644 --- a/inc/Menu/Item/AbstractItem.php +++ b/inc/Menu/Item/AbstractItem.php @@ -171,7 +171,6 @@ abstract class AbstractItem { * * Uses html_btn() * - * @todo this does currently not support the SVG icon * @return string */ public function asHtmlButton() { @@ -182,7 +181,8 @@ abstract class AbstractItem { $this->getParams(), $this->method, $this->getTitle(), - $this->getLabel() + $this->getLabel(), + inlineSVG($this->getSvg()) ); } -- cgit v1.2.3