Skip to content

Commit

Permalink
Merge pull request #16 from LinkNacional/dev
Browse files Browse the repository at this point in the history
2.7.0 - Adição de suporte a peso mexicano e ajustes
  • Loading branch information
emanuellopess authored Jun 13, 2024
2 parents ab8ec4b + 9762402 commit 11d14f6
Show file tree
Hide file tree
Showing 33 changed files with 34 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Empty file modified LICENSE.txt
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
27 changes: 25 additions & 2 deletions give-currency.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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 = '<div id="message" class="error"><p><b>Atenção: </b>O plugin Give Multimoedas detectou que o plugin Cielo API 3.0 encontra-se inativo. <a href="plugins.php">Ativar na área de plugins</a>.</div>';

echo $message;
}
Empty file modified includes/actions.php
100644 → 100755
Empty file.
Empty file modified includes/admin/form-settings.php
100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions includes/admin/setting-admin.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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')
],
];
}
Expand All @@ -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')
],
];
}
Expand Down
Empty file modified includes/exchange-rates.php
100644 → 100755
Empty file.
Empty file modified includes/misc-functions.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Autoloader.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/InstalledPackage.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Metadata.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Plugin/Info.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Plugin/Package.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Plugin/Ui.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Plugin/Update.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Plugin/UpdateChecker.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Scheduler.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/StateStore.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Update.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/UpdateChecker.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/UpgraderStatus.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/Puc/Utils.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/languages/plugin-update-checker-ca.mo
100644 → 100755
Empty file.
Empty file modified plugin-updater/languages/plugin-update-checker-ca.po
100644 → 100755
Empty file.
Empty file modified plugin-updater/languages/plugin-update-checker-pt_BR.mo
100644 → 100755
Empty file.
Empty file modified plugin-updater/languages/plugin-update-checker-pt_BR.po
100644 → 100755
Empty file.
Empty file modified plugin-updater/languages/plugin-update-checker.pot
100644 → 100755
Empty file.
Empty file modified plugin-updater/license.txt
100644 → 100755
Empty file.
Empty file modified plugin-updater/load-puc.php
100644 → 100755
Empty file.
Empty file modified plugin-updater/plugin-update-checker.php
100644 → 100755
Empty file.
Empty file modified uninstall.php
100644 → 100755
Empty file.

0 comments on commit 11d14f6

Please sign in to comment.