diff --git a/README.txt b/README.txt
index 6fe133d..2c3b04a 100644
--- a/README.txt
+++ b/README.txt
@@ -4,7 +4,7 @@ Tags: orders notifications, woocommerce whatsapp, whatsapp automations, woocomme
Donate link: https://buymeacoffee.com/homescriptone/
Requires at least: 4.4
Tested up to: 6.1
-Stable tag: 1.9.8.2
+Stable tag: 1.9.8.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
diff --git a/abstract/constants.php b/abstract/constants.php
index 671f9cc..95ee312 100644
--- a/abstract/constants.php
+++ b/abstract/constants.php
@@ -2,7 +2,7 @@
/**
* All the constants related to the plugin are defined here.
*/
-define( 'WOO_USN_VERSION', '1.9.8.2' );
+define( 'WOO_USN_VERSION', '1.9.8.3' );
define( 'WOO_USN_PATH', plugin_dir_path( __FILE__ ) );
define( 'WOO_USN_URL', plugins_url( '/', __FILE__ ) );
define( 'WOO_USN_PLUGIN_ID', '6855' );
diff --git a/abstract/globals.php b/abstract/globals.php
old mode 100755
new mode 100644
diff --git a/abstract/premium_loading.php b/abstract/premium_loading.php
old mode 100755
new mode 100644
diff --git a/admin/class-woo-usn-admin-menu.php b/admin/class-woo-usn-admin-menu.php
old mode 100755
new mode 100644
index 64ae465..bf7dcee
--- a/admin/class-woo-usn-admin-menu.php
+++ b/admin/class-woo-usn-admin-menu.php
@@ -1,6 +1,5 @@
' . __( 'Knowledge Base', 'ultimate-sms-notifications' ) . '', 'manage_options', 'https://help.ultimatesmsnotifications.com/?utm_source=' . get_site_url() );
$submenu['ultimate-sms-notifications'][23] = array( '
' . __( 'Contact us', 'ultimate-sms-notifications' ) . '
', 'manage_options', 'https://chatting.page/homescriptone?utm_source=' . get_site_url() );
$first_menu = $submenu['ultimate-sms-notifications'][0];
- $new_menu = array( '' . __( 'Logs', 'ultimate-sms-notifications' ) . '
', 'manage_options', admin_url( "admin.php?page=ultimate-sms-notifications-pricing" ) );
+ $new_menu = array( '' . __( 'Logs', 'ultimate-sms-notifications' ) . '
', 'manage_options', admin_url( 'admin.php?page=ultimate-sms-notifications-pricing' ) );
$bm = array( $first_menu, $new_menu );
$setting_menu = array_slice( $submenu['ultimate-sms-notifications'], 1 );
$submenu['ultimate-sms-notifications'] = array_merge_recursive( $bm, $setting_menu );
- $submenu['ultimate-sms-notifications'][3][2] = admin_url( "admin.php?page=ultimate-sms-notifications-pricing" );
- $submenu['ultimate-sms-notifications'][4][2] = admin_url( "admin.php?page=ultimate-sms-notifications-pricing" );
+ $submenu['ultimate-sms-notifications'][3][2] = admin_url( 'admin.php?page=ultimate-sms-notifications-pricing' );
+ $submenu['ultimate-sms-notifications'][4][2] = admin_url( 'admin.php?page=ultimate-sms-notifications-pricing' );
}
}
\ No newline at end of file
diff --git a/admin/class-woo-usn-admin-settings.php b/admin/class-woo-usn-admin-settings.php
old mode 100755
new mode 100644
index aa9f792..be92c8f
--- a/admin/class-woo-usn-admin-settings.php
+++ b/admin/class-woo-usn-admin-settings.php
@@ -1,6 +1,5 @@
__( 'SMS Gateways', 'ultimate-sms-notifications' ),
),
'whatsapp-api' => array(
- 'url' => admin_url( "admin.php?page=ultimate-sms-notifications-pricing" ),
+ 'url' => admin_url( 'admin.php?page=ultimate-sms-notifications-pricing' ),
'title' => __( 'WhatsApp Gateways', 'ultimate-sms-notifications' ),
),
) );
?>
-
'woo_usn_saving',
)
);
- echo " " ;
+ echo ' ' ;
submit_button(
__( 'Delete API Credentials ', 'ultimate-sms-notifications' ),
'primary',
@@ -679,21 +686,21 @@ public static function display_settings_fields()
)
);
?>
-
-
+
' );
Woo_Usn_UI_Fields::format_html_fields( '
' );
@@ -1068,8 +1074,8 @@ public static function add_external_api_fields()
Woo_Usn_UI_Fields::format_html_fields( '
' );
Woo_Usn_UI_Fields::format_html_fields( "You will need a Waapi Client ID and Instance ID in order to send Whatsapp messages. If you already have an account you can retrieve\n\t\tthem from your account
dashboard or watching this video
here to see how to do." );
?>
-
-
+
+
' );
Woo_Usn_UI_Fields::format_html_fields( '
' );
@@ -1096,8 +1102,8 @@ public static function add_external_api_fields()
Woo_Usn_UI_Fields::format_html_fields( '
' );
Woo_Usn_UI_Fields::format_html_fields( "You will need a Message Bird
API Key and
Originator in order to send SMS. " );
?>
-
-
+
+
' );
Woo_Usn_UI_Fields::format_html_fields( '
' );
@@ -1107,7 +1113,7 @@ public static function add_external_api_fields()
'input_class' => array( 'woousn-text-customs-api' ),
'required' => true,
'placeholder' => 'https://api.sendchamp.com/api/v1/sms/send/',
- 'default' => esc_attr( get_option( 'woo_usn_sendchamp_domain_url', "https://api.sendchamp.com/api/v1/sms/send/" ) ),
+ 'default' => esc_attr( get_option( 'woo_usn_sendchamp_domain_url', 'https://api.sendchamp.com/api/v1/sms/send/' ) ),
'description' => __( "You can retrieve it from your
SendChamp account.", 'ultimate-sms-notifications' ),
) );
Woo_Usn_UI_Fields::format_html_fields( '
' );
@@ -1134,17 +1140,17 @@ public static function add_external_api_fields()
Woo_Usn_UI_Fields::format_html_fields( '
' );
Woo_Usn_UI_Fields::format_html_fields( "You will need a SendChamp
API Key and
Channel ID in order to send SMS. " );
?>
-
+
' );
Woo_Usn_UI_Fields::format_html_fields( '
' );
$woo_usn_creds = get_option( 'woo_usn_creds', false );
- $first_data = "";
- $second_data = "";
+ $first_data = '';
+ $second_data = '';
- if ( "AvlyText" == $api_choosed ) {
+ if ( 'AvlyText' == $api_choosed ) {
$first_data = $woo_usn_creds['first'];
$second_data = $woo_usn_creds['second'];
}
@@ -1172,7 +1178,7 @@ public static function add_external_api_fields()
'placeholder' => 'My Shop',
'required' => true,
'default' => esc_attr( $second_data ),
- 'description' => __( "Define the name of the sender you would like to have displayed when sending SMS.", 'ultimate-sms-notifications' ),
+ 'description' => __( 'Define the name of the sender you would like to have displayed when sending SMS.', 'ultimate-sms-notifications' ),
),
esc_attr( $second_data ),
true
@@ -1186,10 +1192,10 @@ public static function add_external_api_fields()
Woo_Usn_UI_Fields::format_html_fields( 'Set Octopush by providing information necessary in the fields below.
' );
Woo_Usn_UI_Fields::format_html_fields( '
' );
$woo_usn_creds = get_option( 'woo_usn_creds', false );
- $first_data = "";
- $second_data = "";
+ $first_data = '';
+ $second_data = '';
- if ( "Octopush" == $api_choosed ) {
+ if ( 'Octopush' == $api_choosed ) {
$first_data = $woo_usn_creds['first'];
$second_data = $woo_usn_creds['second'];
}
@@ -1230,10 +1236,10 @@ public static function add_external_api_fields()
Woo_Usn_UI_Fields::format_html_fields( 'Set Tyntec SMS by providing information necessary in the fields below.
' );
Woo_Usn_UI_Fields::format_html_fields( '
' );
$woo_usn_creds = get_option( 'woo_usn_creds', false );
- $first_data = "";
- $second_data = "";
+ $first_data = '';
+ $second_data = '';
- if ( "tyntecsms" == $api_choosed ) {
+ if ( 'tyntecsms' == $api_choosed ) {
$first_data = $woo_usn_creds['first'];
$second_data = $woo_usn_creds['second'];
}
@@ -1260,7 +1266,7 @@ public static function add_external_api_fields()
'input_class' => array( 'woousn-text-customs-api' ),
'placeholder' => 'My Shop',
'required' => true,
- 'description' => __( "Define the SMS Sender Name.", 'ultimate-sms-notifications' ),
+ 'description' => __( 'Define the SMS Sender Name.', 'ultimate-sms-notifications' ),
),
esc_attr( $second_data ),
true
@@ -1275,10 +1281,10 @@ public static function add_external_api_fields()
Woo_Usn_UI_Fields::format_html_fields( 'Set Fast2SMS by providing information necessary in the fields below.
' );
Woo_Usn_UI_Fields::format_html_fields( '
' );
$woo_usn_creds = get_option( 'woo_usn_creds', false );
- $first_data = "";
- $second_data = "";
+ $first_data = '';
+ $second_data = '';
- if ( "fast2sms" == $api_choosed ) {
+ if ( 'fast2sms' == $api_choosed ) {
$first_data = $woo_usn_creds['first'];
$second_data = $woo_usn_creds['second'];
}
@@ -1312,17 +1318,17 @@ public static function add_external_api_fields()
public static function send_sms()
{
?>
-
-
+
-
-
+
+
__( 'Using Phone Number', 'ultimate-sms-notifications' ),
- 'use-contact-list-premium' => wp_kses_post( '
' . __( 'Using Contact List ( Pro Feature )', 'ultimate-sms-notifications' ) . " " . wp_sprintf( "%s", admin_url( "admin.php?page=ultimate-sms-notifications-pricing" ), __( 'Click here to upgrade', 'ultimate-sms-notifications' ) ) . '' ),
+ 'use-contact-list-premium' => wp_kses_post( '
' . __( 'Using Contact List ( Pro Feature )', 'ultimate-sms-notifications' ) . ' ' . wp_sprintf( "%s", admin_url( 'admin.php?page=ultimate-sms-notifications-pricing' ), __( 'Click here to upgrade', 'ultimate-sms-notifications' ) ) . '' ),
) );
?>
-
+
__( 'Type your message here.', 'ultimate-sms-notifications' ),
) );
- if ( isset( $_GET['page'] ) && "ultimate-sms-notifications-send-sms" === $_GET['page'] ) {
+ if ( isset( $_GET['page'] ) && 'ultimate-sms-notifications-send-sms' === $_GET['page'] ) {
$sms_message_text = __( 'Try SMS Sending', 'ultimate-sms-notifications' );
} else {
$sms_message_text = __( 'Send Test SMS', 'ultimate-sms-notifications' );
@@ -1398,13 +1404,13 @@ public static function send_sms()
)
);
?>
-
-
-
+
+
+
-
-
-
+