Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0.1 - Correção e melhoria visual na exibição do plugin #25

Merged
merged 3 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: '3.0.0'
custom_tag: '3.0.1'

# Generate new release
- name: Generate new Release
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 3.0.0 - 17/07/2024
# 3.0.1 - 27/08/2024
* Correção e melhoria visual na exibição do plugin

# 3.0.0 - 16/08/2024
* Adição de suporte ao formulario GiveWP 3.0.0
* Correção de bugs
* Limpeza no código
Expand Down
2 changes: 1 addition & 1 deletion Includes/GiveMultiCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private function public_hooks(): void {
// FrontEnd Multimoedas Legado
$this->loader->add_action('give_before_donation_levels', 'Lkn\GiveMultimoedas\Includes\GiveMultiCurrencyActions', 'lkn_give_multi_currency_selector', 10, 3);
$this->loader->add_action( 'wp_enqueue_scripts', 'Lkn\GiveMultimoedas\Includes\GiveMultiCurrencyActions', 'give_import_script_method', 11, 1 );
// Front End Multimoedas 3.0.0
// Front End Multimoedas 3.0.1

add_action("give_init", function(): void {
Hooks::addAction(
Expand Down
48 changes: 40 additions & 8 deletions Includes/GiveMultiCurrencyActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,55 @@ public static function lkn_give_multi_currency_selector($form_id, $args) {
?>

<style>
.lkn-mc-select-classic {
padding: 13px;
margin: 0px 50px;
.lkn-mc-select-classic {
padding: 20px;
text-align: center;
margin: 0 auto;
}

#give-mc-select {
font-size: 18px;
display: block;
margin: 0 auto;
max-width: 300px;
padding: 10px;
}

#link-multi-currency {
justify-content: center;
align-items: center;
display: block;
text-align: center;
margin: 5px auto;
font-size: 11px;
font-size: 17px;
font-weight: 600;
padding: 5px;
padding: 5px 10px;
margin: 5px 0px 15px 0px;
color: #0073e6;
text-decoration: none;
position: relative;
transition: color 0.3s, transform 0.3s;
}

#link-multi-currency::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background-color: #0073e6;
transition: width 0.3s, background-color 0.3s;
transform: translateX(-50%);
}

#link-multi-currency:hover::after,
#link-multi-currency:focus::after {
width: 35%;
background-color: #005bb5;
}

#link-multi-currency:hover,
#link-multi-currency:focus {
color: #005bb5;
transform: translateY(-2px);
}

.hidden-lkn {
Expand Down
4 changes: 2 additions & 2 deletions give-currency.php
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/multimoeda/
* Description: Adiciona opções de escolha de moedas aos formulários do GiveWP.
* Version: 3.0.0
* Version: 3.0.1
* Author: Link Nacional
* Author URI: https://www.linknacional.com.br
* License: GNU General Public License v3 or later
Expand All @@ -21,7 +21,7 @@
use Lkn\GiveMultimoedas\Includes\GiveMultiCurrency;

if ( ! defined('GIVE_MULTI_CURRENCY_VERSION')) {
define('GIVE_MULTI_CURRENCY_VERSION', '3.0.0');
define('GIVE_MULTI_CURRENCY_VERSION', '1');
}

// Set it to latest.
Expand Down
Loading