From 9a973cca4ceee4bf33f11b48da0790746b9a18fb Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Thu, 15 Oct 2020 13:00:46 -0400 Subject: [PATCH] Use more appropriate currency icon. (#1750) --- themes/bootstrap3/templates/myresearch/menu.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/themes/bootstrap3/templates/myresearch/menu.phtml b/themes/bootstrap3/templates/myresearch/menu.phtml index 8b6eadea1b2..6c076b8f36d 100644 --- a/themes/bootstrap3/templates/myresearch/menu.phtml +++ b/themes/bootstrap3/templates/myresearch/menu.phtml @@ -43,7 +43,11 @@ <?php endif; ?> <?php if ($ilsOnline && $this->ils()->checkCapability('getMyFines', $capabilityParams)): ?> <a href="<?=$this->url('myresearch-fines')?>" class="flex<?=$this->active == 'fines' ? ' active' : ''?>"> - <span class="flex-col"><i class="fa fa-fw fa-usd" aria-hidden="true"></i> <?=$this->transEsc('Fines')?></span> + <?php + // Use a "fines" icon based on the configured default currency symbol: + $currency = strtolower($this->config()->get('config')->Site->defaultCurrency ?? 'usd'); + ?> + <span class="flex-col"><i class="fa fa-fw fa-<?=$this->escapeHtmlAttr($currency)?>" aria-hidden="true"></i> <?=$this->transEsc('Fines')?></span> <span class="fines-status status hidden"><i class="fa fa-spin fa-spinner" aria-hidden="true"></i></span> </a> <?php endif; ?> -- GitLab