Skip to content

Commit

Permalink
Merge pull request #14 from LinkNacional/dev
Browse files Browse the repository at this point in the history
1.2.0 Compatibility with 3.0 form
  • Loading branch information
emanuellopess authored Dec 14, 2024
2 parents 250d28b + d9fef49 commit 65fa96e
Show file tree
Hide file tree
Showing 12 changed files with 491 additions and 90 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: '1.2.0'

# Generate new release
- name: Generate new Release
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.2.0 - 14/12/2024
* Compatibility with Form 3.0

# 1.1.2 - 02/01/2024
* Fix security issues with plugin;
* Fix internationalization.
Expand Down
13 changes: 10 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Donate link: https://www.linknacional.com/wordpress/
Tags: fee, donation, givewp, form, recover
Requires at least: 5.0
Requires PHP: 7.4
Tested up to: 6.4
Stable tag: 1.1.2
Tested up to: 6.7
Stable tag: 1.2.0
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -62,9 +62,16 @@ Not in the free version. We have this option and more in our Fee recovery PRO p

== Screenshots ==

1. Example screenshot
1. Configuration page
2. Legacy template form recovery fee option
3. Multi-step template form recovery fee option
4. Classic template form recovery fee option
5. Donation summary

== Changelog ==
= 1.2.0 =
**14/12/2024**
* Compatibility with 3.0.0 forms.

= 1.1.2 =
**02/01/2024**
Expand Down
21 changes: 18 additions & 3 deletions admin/class-fee-recovery-for-givewp-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,36 @@ public function add_settings_into_section($settings) :array {
'default' => 0,
);
}

$settings[] = array(
'name' => __('Rate field description', 'fee-recovery-for-givewp'),
'id' => 'lkn_fee_recovery_setting_field_description',
'desc' => __('This description appears on the donation form, use "##" to add the fee amount.', 'fee-recovery-for-givewp'),
'type' => 'text',
'default' => __('Cover the payment fee?', 'fee-recovery-for-givewp'),
);

$settings[] = array(
'type' => 'title',
'id' => 'lkn_fee_recovery',
);
$settings[] = array(
'name' => __('Visual Form Builder', 'fee-recovery-for-givewp'),
'id' => 'lkn_fee_recovery_vfb',
'desc' => __('Enable or disable the option to add the payment fee amount to the donation amount in Form 3.0.', 'fee-recovery-for-givewp'),
'type' => 'radio',
'default' => 'disabled',
'options' => array(
'enabled' => __('Enabled', 'fee-recovery-for-givewp'),
'disabled' => __('Disabled', 'fee-recovery-for-givewp'),
),
);

$settings[] = array(
'id' => 'lkn_fee_recovery',
'type' => 'sectionend',
);
}

return $settings;
}
}
6 changes: 4 additions & 2 deletions fee-recovery-for-givewp.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: Fee recovery for GiveWP
* Plugin URI: https://wordpress.org/plugins/fee-recovery-for-givewp
* Description: Add donor option to cover payment expenses
* Version: 1.1.2
* Version: 1.2.0
* Author: Link Nacional
* Author URI: https://www.linknacional.com/wordpress/
* License: GPL-3.0+
Expand All @@ -34,8 +34,10 @@
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'FEE_RECOVERY_FOR_GIVEWP_VERSION', '1.1.2' );
define( 'FEE_RECOVERY_FOR_GIVEWP_VERSION', '1.2.0' );
define( 'FEE_RECOVERY_FOR_GIVEWP_BASENAME', plugin_basename(__FILE__) );
define("FEE_RECOVERY_FOR_GIVEWP_URL", plugin_dir_url(__FILE__));
define("FEE_RECOVERY_FOR_GIVEWP_DIR", plugin_dir_path(__FILE__));

/**
* The code that runs during plugin activation.
Expand Down
Loading

0 comments on commit 65fa96e

Please sign in to comment.