Skip to content

Commit 8c4f514

Browse files
authored
Merge pull request #12 from razorpay/css_bug_fix
Fix for dashboard alignment and css issue
2 parents cc81181 + c9ef27a commit 8c4f514

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

razorpay-payment-buttons.php

+6-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Razorpay Payment Button for Elementor
44
* Plugin URI: https://github.com/razorpay/payment-button-elementor-plugin
55
* Description: Razorpay Payment Button for Elementor
6-
* Version: 1.2.2
6+
* Version: 1.2.3
77
* Author: Razorpay
88
* Author URI: https://razorpay.com
99
*/
@@ -15,15 +15,17 @@
1515
require_once __DIR__.'/includes/rzp-payment-buttons.php';
1616
require_once __DIR__.'/widget/Widget.php';
1717

18-
1918
use Razorpay\Api\Api;
2019
use Razorpay\Api\Errors;
2120

2221
add_action('admin_enqueue_scripts', 'bootstrap_scripts_enqueue_elementor', 0);
2322
add_action('admin_post_rzp_btn_elementor_action', 'razorpay_payment_button_elementor_action', 0);
2423

25-
function bootstrap_scripts_enqueue_elementor()
24+
function bootstrap_scripts_enqueue_elementor($admin_page)
2625
{
26+
if ($admin_page != 'admin_page_rzp_button_view_elementor') {
27+
return;
28+
}
2729
wp_register_style('bootstrap-css-elementor', plugin_dir_url(__FILE__) . 'public/css/bootstrap.min.css',
2830
null, null);
2931
wp_register_style('button-css-elementor', plugin_dir_url(__FILE__) . 'public/css/button.css',
@@ -80,11 +82,10 @@ public function rzp_add_plugin_page()
8082
add_submenu_page( esc_attr__( 'razorpay_button_elementor', 'textdomain' ), esc_html__( 'Razorpay Settings', 'textdomain' ),
8183
'Settings', 'administrator','razorpay_elementor_settings', array( $this, 'razorpay_elementor_settings' ));
8284

83-
add_submenu_page( esc_attr__( 'razorpay_button_elementor', 'textdomain' ), esc_html__( 'Razorpay Buttons Elementor', 'textdomain' ),
85+
add_submenu_page( esc_attr__( '', 'textdomain' ), esc_html__( 'Razorpay Buttons Elementor', 'textdomain' ),
8486
'Razorpay Buttons Elementor', 'administrator','rzp_button_view_elementor', array( $this, 'rzp_button_view_elementor' ));
8587
}
8688

87-
8889
/**
8990
* Initialize razorpay api instance
9091
**/
@@ -104,8 +105,6 @@ public function get_razorpay_api_instance()
104105
</div>');
105106
}
106107

107-
108-
109108
/**
110109
* Creating the settings link from the plug ins page
111110
**/

readme.txt

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
=== Razorpay Payment Button Elementor Plugin ===
22
Contributors: razorpay
33
Tags: Payment gateway, Donate button, UPI/credit/debit card, Payment plugin, India
4-
Tested up to: 5.9
5-
Stable tag: 1.2.2
4+
Tested up to: 5.9.1
5+
Stable tag: 1.2.3
66
License: GPLv2 or later
77
License URI: http://www.gnu.org/licenses/gpl-2.0.html
88

@@ -96,7 +96,11 @@ Connect your WordPress website with your Razorpay account and you're all ready t
9696

9797
== Changelog ==
9898

99-
= 1.2.1 =
99+
= 1.2.3 =
100+
* Fix for dashboard alignment and css issue.
101+
* Tested upto WordPress 5.9.1
102+
103+
= 1.2.2 =
100104
* Updated razorpay php sdk.
101105
* Tested upto WordPress 5.9
102106

0 commit comments

Comments
 (0)