mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-11-16 14:57:35 +00:00
feat: Enhance currency tooltip descriptions
Updated the tooltip descriptions for currency links to display full currency names where available, improving user clarity and interface usability. If a full name is not available, the currency code is still shown. This enhances the experience by making the tooltips more informative.
This commit is contained in:
parent
9c7db1013e
commit
73222b3f94
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ $xmr_in_fiat = strtr($xmr_in_fiat, ",", " ");
|
|||
foreach ($chunks as $chunk) {
|
||||
echo "<tr>";
|
||||
foreach ($chunk as $currency) {
|
||||
echo "<td><a href=\"/?in={$currency}\" class=\"btn btn-light\" data-toggle=\"tooltip\" data-bs-html=\"true\" data-placement=\"top\">{$currency}</a></td>";
|
||||
$currencyName = isset(${"l_" . strtolower($currency)}) ? ${"l_" . strtolower($currency)} : $currency;
|
||||
echo "<td><a href=\"/?in={$currency}\" class=\"btn btn-light\" title=\"{$currencyName}\" data-toggle=\"tooltip\" data-bs-html=\"true\" data-placement=\"top\">{$currency}</a></td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
echo "<tr style=\"display:none;\">";
|
||||
|
|
Loading…
Reference in a new issue