Skip to content

Commit

Permalink
Tooltip Images now include sizes
Browse files Browse the repository at this point in the history
Added image size to tooltip
  • Loading branch information
eSilverStrike committed Jun 27, 2021
1 parent 9073f4e commit 3be31f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public_html/lib-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -7889,7 +7889,10 @@ function COM_getTooltip($hoverOver = '', $text = '', $link = '', $title = '', $t
}

if ($hoverOver == '') {
$hoverOver = '<img alt="?" class="gl-tooltip-icon" src="' . $_CONF['layout_url']
$tooltipImage = rtrim($_CONF['path_layout'], '/') . '/images/tooltips/tooltip.' . $_IMAGE_TYPE;
$sizeAttributes = COM_getImgSizeAttributes($tooltipImage);

$hoverOver = '<img alt="?" class="gl-tooltip-icon" ' . $sizeAttributes . 'src="' . $_CONF['layout_url']
. '/images/tooltips/tooltip.' . $_IMAGE_TYPE . '"' . XHTML . '>';
}

Expand Down

0 comments on commit 3be31f3

Please sign in to comment.