From 73222b3f947690a56d0c7a968eb2164137a0e4f2 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 8 Aug 2024 13:17:36 +0200 Subject: [PATCH] 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. --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 9fcae9e..7f2b76c 100644 --- a/index.php +++ b/index.php @@ -104,7 +104,8 @@ $xmr_in_fiat = strtr($xmr_in_fiat, ",", " "); foreach ($chunks as $chunk) { echo ""; foreach ($chunk as $currency) { - echo "{$currency}"; + $currencyName = isset(${"l_" . strtolower($currency)}) ? ${"l_" . strtolower($currency)} : $currency; + echo "{$currency}"; } echo ""; echo "";