Skip to content

Commit

Permalink
extend JLayout iconclass with attribute title
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2103 committed Sep 13, 2020
1 parent e0dbb6a commit 6b45594
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/joomla/icon/iconclass.php
Expand Up @@ -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)
Expand Down Expand Up @@ -172,6 +173,11 @@
$iconAttribs['tabindex'] = $tabindex;
}

if ($title)
{
$iconAttribs['title'] = $title;
}

$icon = '<span ' . ArrayHelper::toString($iconAttribs) . '></span>';
}

Expand Down

0 comments on commit 6b45594

Please sign in to comment.