'; $out .= '
'; $out .= 'Ğ1 Wallet'; $out .= '
'; if ($stored_address) { $short = substr($stored_address, 0, 12) . '…'; $out .= '
'; $out .= '
'; $out .= $this->h($short); $out .= '
'; if ($cached_balance) { $out .= '
' . $this->h($cached_balance) . ' Ğ1
'; } $out .= '
View
'; $out .= '
'; } else { $out .= '
'; $out .= 'No address registered.'; $out .= '
Register
'; $out .= '
'; } $out .= ''; return $out; } private function h($value) { return htmlspecialchars((string) $value, ENT_QUOTES, 'UTF-8'); } }