mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Add function getTooltip()
This commit is contained in:
parent
d4b107a07f
commit
67bf364b04
1 changed files with 11 additions and 0 deletions
|
@ -792,3 +792,14 @@ function get_public_ip()
|
||||||
return $public_ip[0];
|
return $public_ip[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Returns a standardized tooltip
|
||||||
|
*
|
||||||
|
* @return string $tooltip
|
||||||
|
*/
|
||||||
|
function getTooltip($msg, $id, $visible = true)
|
||||||
|
{
|
||||||
|
($visible) ? $opt = 'visible' : $opt = 'invisible';
|
||||||
|
$tooltip = '<i class="fas fa-question-circle text-muted ' .$opt.'" id="' .$id. '" data-toggle="tooltip" data-placement="auto" title="' . _($msg). '"></i>';
|
||||||
|
return $tooltip;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue