Skip to content

Commit

Permalink
Merge pull request #17 from ItinerisLtd/fix-donation-amount-missing-p…
Browse files Browse the repository at this point in the history
…ound-sign

fix(GiftAidField): fix gift donation total missing pound sign;
  • Loading branch information
scriptovski authored Nov 27, 2024
2 parents 13b9b61 + a5fe63c commit 4e8d5fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gf-giftaid-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Gravity Forms Gift Aid field
* Plugin URI: https://www.itineris.co.uk/
* Description: Gift aid field for Gravity Forms
* Version: 0.1.0
* Version: 1.0.3
* Author: Itineris Limited
* Author URI: https://www.itineris.co.uk/
* Text Domain: itineris-gf-giftaid-field
Expand Down
2 changes: 1 addition & 1 deletion src/GfGiftAidField.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class GfGiftAidField
{
public const VERSION = '0.1.0';
public const VERSION = '1.0.3';

public static function run(): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/GiftAidField.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function get_calculated_gift(): string
$totalAmt = $donation + $amount;
$displayNum = number_format((float) $totalAmt, 2, '.', '');
$searchReplace = [
'{{ donation }}' => "<span class=\"gform_donation_total\">£{$donation}</span>",
'{{ donation }}' => "<span>£<span class=\"gform_donation_total\">{$donation}</span></span>",
// phpcs:ignore Generic.Files.LineLength.TooLong
'{{ calculated_giftaid }}' => "<strong>£<span class=\"gform_donation_gifttotal\">{$displayNum}</span></strong>",
];
Expand Down

0 comments on commit 4e8d5fe

Please sign in to comment.