diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml old mode 100644 new mode 100755 index 29efef8..0c13dea --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: uses: mathieudutour/github-tag-action@v6.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - custom_tag: "2.6.0" # // TODO remove this after update + custom_tag: "2.7.0" # // TODO remove this after update # Generate new release - name: Generate new Release diff --git a/CHANGELOG.md b/CHANGELOG.md old mode 100644 new mode 100755 index 3203aa9..1a861c2 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 2.7.0 - 13/06/2024 +* Adição de suporte a peso mexicano; +* Adição de notificação para plugins instalados e inativos da Link Nacional. + # 2.6.0 - 23/12/2023 * Adição de changelogs; * Adição de suporte a moeda Rial Saudito; diff --git a/LICENSE.txt b/LICENSE.txt old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/give-currency.php b/give-currency.php old mode 100644 new mode 100755 index 4f435aa..634994a --- a/give-currency.php +++ b/give-currency.php @@ -3,7 +3,7 @@ * Plugin Name: Give - Multi-Moedas * Plugin URI: https://www.linknacional.com.br/wordpress/givewp/ * Description: Adiciona opções de escolha de moedas aos formulários do GiveWP. - * Version: 2.6.0 + * Version: 2.7.0 * Author: Link Nacional * Author URI: https://www.linknacional.com.br * License: GNU General Public License v2 or later @@ -102,7 +102,7 @@ private function setup() { private function setup_constants() { // Defines addon version number for easy reference. if (!defined('GIVE_MULTI_CURRENCY_VERSION')) { - define('GIVE_MULTI_CURRENCY_VERSION', '2.6.0'); + define('GIVE_MULTI_CURRENCY_VERSION', '2.7.0'); } // Set it to latest. @@ -304,3 +304,26 @@ function lkn_give_multi_currency_updater() { } lkn_give_multi_currency_updater(); + + +if ( ! function_exists('get_plugins') || ! function_exists('is_plugin_active')) { + require_once ABSPATH . '/wp-admin/includes/plugin.php'; +} +if(is_plugin_inactive('give-cielo/lkn-give-cielo.php')){ + $lkn_multicurrency_all_plugins = get_plugins(); + + if(isset($lkn_multicurrency_all_plugins['give-cielo/lkn-give-cielo.php']) && !isset($lkn_multicurrency_all_plugins['give-cielo/give-cielo.php'])){ + add_action('admin_notices', '__lkn_multicurrency_linkn_inactive_notice'); + } +} + +/** + * Notice for IonCube not found. + * + * @since 4.0.1 + */ +function __lkn_multicurrency_linkn_inactive_notice(): void { + $message = '

Atenção: O plugin Give Multimoedas detectou que o plugin Cielo API 3.0 encontra-se inativo. Ativar na área de plugins.

'; + + echo $message; +} \ No newline at end of file diff --git a/includes/actions.php b/includes/actions.php old mode 100644 new mode 100755 diff --git a/includes/admin/form-settings.php b/includes/admin/form-settings.php old mode 100644 new mode 100755 diff --git a/includes/admin/setting-admin.php b/includes/admin/setting-admin.php old mode 100644 new mode 100755 index 3a8ef07..0bacf2f --- a/includes/admin/setting-admin.php +++ b/includes/admin/setting-admin.php @@ -52,7 +52,8 @@ function lkn_give_multi_currency_add_setting_into_existing_tab($settings) { 'eur' => __('Euro (€)', 'give'), 'jpy' => __('Iene (¥)', 'give'), 'gbp' => __('Libra esterlina (£)', 'give'), - 'sar' => __('Rial Saudita (ر.س)', 'give') + 'sar' => __('Rial Saudita (ر.س)', 'give'), + 'mxn' => __('Peso mexicano ($)', 'give') ], ]; } @@ -71,7 +72,8 @@ function lkn_give_multi_currency_add_setting_into_existing_tab($settings) { 'EUR' => __('Euro (€)', 'give'), 'JPY' => __('Iene (¥)', 'give'), 'GBP' => __('Libra esterlina (£)', 'give'), - 'SAR' => __('Rial Saudita (ر.س)', 'give') + 'SAR' => __('Rial Saudita (ر.س)', 'give'), + 'MXN' => __('Peso mexicano ($)', 'give') ], ]; } diff --git a/includes/exchange-rates.php b/includes/exchange-rates.php old mode 100644 new mode 100755 diff --git a/includes/misc-functions.php b/includes/misc-functions.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Autoloader.php b/plugin-updater/Puc/Autoloader.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/InstalledPackage.php b/plugin-updater/Puc/InstalledPackage.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Metadata.php b/plugin-updater/Puc/Metadata.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Plugin/Info.php b/plugin-updater/Puc/Plugin/Info.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Plugin/Package.php b/plugin-updater/Puc/Plugin/Package.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Plugin/Ui.php b/plugin-updater/Puc/Plugin/Ui.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Plugin/Update.php b/plugin-updater/Puc/Plugin/Update.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Plugin/UpdateChecker.php b/plugin-updater/Puc/Plugin/UpdateChecker.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Scheduler.php b/plugin-updater/Puc/Scheduler.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/StateStore.php b/plugin-updater/Puc/StateStore.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Update.php b/plugin-updater/Puc/Update.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/UpdateChecker.php b/plugin-updater/Puc/UpdateChecker.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/UpgraderStatus.php b/plugin-updater/Puc/UpgraderStatus.php old mode 100644 new mode 100755 diff --git a/plugin-updater/Puc/Utils.php b/plugin-updater/Puc/Utils.php old mode 100644 new mode 100755 diff --git a/plugin-updater/languages/plugin-update-checker-ca.mo b/plugin-updater/languages/plugin-update-checker-ca.mo old mode 100644 new mode 100755 diff --git a/plugin-updater/languages/plugin-update-checker-ca.po b/plugin-updater/languages/plugin-update-checker-ca.po old mode 100644 new mode 100755 diff --git a/plugin-updater/languages/plugin-update-checker-pt_BR.mo b/plugin-updater/languages/plugin-update-checker-pt_BR.mo old mode 100644 new mode 100755 diff --git a/plugin-updater/languages/plugin-update-checker-pt_BR.po b/plugin-updater/languages/plugin-update-checker-pt_BR.po old mode 100644 new mode 100755 diff --git a/plugin-updater/languages/plugin-update-checker.pot b/plugin-updater/languages/plugin-update-checker.pot old mode 100644 new mode 100755 diff --git a/plugin-updater/license.txt b/plugin-updater/license.txt old mode 100644 new mode 100755 diff --git a/plugin-updater/load-puc.php b/plugin-updater/load-puc.php old mode 100644 new mode 100755 diff --git a/plugin-updater/plugin-update-checker.php b/plugin-updater/plugin-update-checker.php old mode 100644 new mode 100755 diff --git a/uninstall.php b/uninstall.php old mode 100644 new mode 100755