Skip to content

Commit

Permalink
PIWOO-237 fix render one issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Feb 22, 2024
1 parent 58c9de2 commit 04b0b3b
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ public function execute($gateway, $dataHelper)
if (count($issuers) === 1) {
$issuer = $issuers[0];
$issuerImageSvg = $this->checkSvgIssuers($issuers);
$issuerImageSvg && ($html .= '<img src="' . $issuerImageSvg . '" style="vertical-align:middle" />');
$html .= $issuer->name;
echo esc_html(wpautop(wptexturize($html)));
if ($issuerImageSvg && isset($issuer->name)) {
$issuerImageSvg = esc_url($issuerImageSvg);
$issuerName = esc_html($issuer->name);
$html .= '<img src="' . $issuerImageSvg . '" style="vertical-align:middle" />' . $issuerName;
}

echo wpautop(wptexturize($html));

return;
}
Expand Down

0 comments on commit 04b0b3b

Please sign in to comment.