From 6b45594e6413f226deac061d06dc55e6c6c8b3a4 Mon Sep 17 00:00:00 2001 From: Hans Kuijpers Date: Sun, 13 Sep 2020 19:30:07 +0200 Subject: [PATCH] extend JLayout iconclass with attribute title --- layouts/joomla/icon/iconclass.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/joomla/icon/iconclass.php b/layouts/joomla/icon/iconclass.php index bf3cf8afa2cb2..6efce1ef798e9 100644 --- a/layouts/joomla/icon/iconclass.php +++ b/layouts/joomla/icon/iconclass.php @@ -15,6 +15,7 @@ $icon = $displayData['icon']; $class = $displayData['class'] ?? null; $tabindex = $displayData['tabindex'] ?? null; +$title = $displayData['title'] ?? null; $html = $displayData['html'] ?? true; switch ($icon) @@ -172,6 +173,11 @@ $iconAttribs['tabindex'] = $tabindex; } + if ($title) + { + $iconAttribs['title'] = $title; + } + $icon = ''; }