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:
Kumi 2024-08-08 13:17:36 +02:00
parent 9c7db1013e
commit 73222b3f94
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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;\">";