localizedNumber($explainElement['percent'], $decimalPlaces)?>% 1) { echo $this->transEsc('Synonym') . ': ['; } for ($i = 0; $i < count($fieldName); $i++) { $name = $fieldName[$i]; $value = $fieldValue[$i] ?? ''; $exactMatch = $explainElement['exactMatch'][$i] ?? ''; if (!empty($name)) { $description = $this->translate('IndexFieldDescription::' . $name); $description = $name !== $description ? $description : ''; } else { $description = ''; } $exactMatchClass = ($exactMatch ?? 'unknown') . '-match'; echo '"' . $this->escapeHtml($value) . '" ' . $this->transEsc('in'); echo ' '; echo $this->escapeHtml($name) . (!empty($description) ? $this->icon('question-circle') : ''); echo ''; echo ($i < count($fieldName) - 1) ? ', ' : ''; } $modifier = isset($explainElement['fieldModifier']) ? ', ' . $this->transEsc( 'explain_modifier', ['%%modifier%%' => $this->localizedNumber($explainElement['fieldModifier'], $decimalPlaces)] ) : ''; echo(count($fieldName) > 1 ? ']' : '') . $modifier ?>