From 7d68985c16bce83dcd641f852779de6ed4fdcee0 Mon Sep 17 00:00:00 2001 From: Mahbub Hasan Imon Date: Tue, 24 Jan 2023 04:53:59 +0600 Subject: [PATCH] Changed Plugin Name and some code and doc fixes --- assets/admin/js/admin.js | 3 --- assets/public/js/bdpg-public.js | 3 --- bd-payment-gateways.php | 10 ++++------ includes/Helper.php | 3 +-- readme.md | 8 +++++++- readme.txt | 13 +++++++++---- 6 files changed, 21 insertions(+), 19 deletions(-) diff --git a/assets/admin/js/admin.js b/assets/admin/js/admin.js index e1784f9..3a3e841 100755 --- a/assets/admin/js/admin.js +++ b/assets/admin/js/admin.js @@ -6,9 +6,6 @@ * @package BDPaymentsGateway */ -/** - * Swiper Slider - */ jQuery(document).ready( function ($) { diff --git a/assets/public/js/bdpg-public.js b/assets/public/js/bdpg-public.js index 7abeead..463ab3f 100755 --- a/assets/public/js/bdpg-public.js +++ b/assets/public/js/bdpg-public.js @@ -6,9 +6,6 @@ * @package BDPaymentGateways */ -/** - * Swiper Slider - */ jQuery(document).ready( function ($) { $(document.body).on( diff --git a/bd-payment-gateways.php b/bd-payment-gateways.php index 15d63ce..1260db2 100644 --- a/bd-payment-gateways.php +++ b/bd-payment-gateways.php @@ -6,10 +6,10 @@ */ /** - * Plugin Name: Bangladeshi Payment Gateways + * Plugin Name: Bangladeshi Payment Gateways - Make Payment Using QR Code * Plugin URI: https://ultradevs.com/plugins/bangladeshi-payment-gateways * Description: Bangladeshi Payment Gateways for WooCommerce. - * Version: 2.0.5 + * Version: 2.0.6 * Author: ultraDevs * Author URI: https://ultradevs.com * License: GPL v2 or later @@ -122,7 +122,7 @@ public function init() { $this->upay = new ultraDevs\BDPG\Gateways\Upay(); // Helper Class. - $helper = new ultraDevs\BDPG\Helper(); + new ultraDevs\BDPG\Helper(); // Assets Manager Class. $assets_manager = new ultraDevs\BDPG\Assets_Manager(); @@ -130,7 +130,7 @@ public function init() { // Activate. $activate = new ultraDevs\BDPG\Activate(); - // Helper Class. + // Review Class. $review = new ultraDevs\BDPG\Review(); add_action( 'woocommerce_payment_gateways', array( $this, 'add_payment_gateways' ) ); @@ -152,9 +152,7 @@ public function init() { } else { // Frontend Assets. add_action( 'wp_enqueue_scripts', array( $assets_manager, 'frontend_assets' ) ); - } - } /** diff --git a/includes/Helper.php b/includes/Helper.php index 885f7ae..267dc90 100644 --- a/includes/Helper.php +++ b/includes/Helper.php @@ -41,8 +41,7 @@ public static function add_option( $key, $value ) { */ public static function get_option( $key, $default = false ) { // Get Option. - $value = get_option( $key, $default ); - return $value; + return get_option( $key, $default ); } /** diff --git a/readme.md b/readme.md index 67fda81..dbc6ffa 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# Bangladeshi Payment Gateways for WooCommerce +# Bangladeshi Payment Gateways - Make Payment Using QR Code == Description == @@ -64,6 +64,12 @@ No, You must install and active woocommerce plugin to make this plugin work. == Changelog == += 2.0.6 - 24/01/2023 = + +* Updated: Plugin Name. +* Updated: Some Code Documentation +* Updated: Some Code + = 2.0.5 - 25/10/2021 = * Added: Upay diff --git a/readme.txt b/readme.txt index 6fbc007..04a615c 100644 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,10 @@ -=== Bangladeshi Payment Gateways === +=== Bangladeshi Payment Gateways - Make Payment Using QR Code === Contributors: ultradevs, mhimon Donate link: https://ultradevs.com/donate/ -Tags: mobile payment gateways, bangladeshi mobile banking, payment, gateway, bKash, rocket,nagad,upay qr code +Tags: mobile payment gateways, bangladeshi mobile banking, payment, gateway, bKash, rocket,nagad,upay qr code, qr code Requires at least: 4.4 -Tested up to: 6.0 -Stable tag: 2.0.5 +Tested up to: 6.1.1 +Stable tag: 2.0.6 Requires PHP: 5.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -79,6 +79,11 @@ No, You must install and active woocommerce plugin to make this plugin work. == Changelog == += 2.0.6 - 24/01/2023 = +* Updated: Plugin Name +* Updated: Code Documentation +* Updated: Some Code + = 2.0.5 - 25/10/2021 = * Added: Upay * Fixed: b tag issue