Skip to content

Commit 9024015

Browse files
committed
v1.0.0
1 parent a2e1f9c commit 9024015

File tree

4 files changed

+42
-44
lines changed

4 files changed

+42
-44
lines changed

core/actions/Upn_CustomAjax.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public function upn_ajax() {
3333
wp_send_json(
3434
array(
3535
'status' => false,
36-
'title' => __( 'Invalid token', 'real-time-auto-find-and-replace' ),
37-
'text' => __( 'Sorry! we are unable recognize your auth!', 'real-time-auto-find-and-replace' ),
36+
'title' => __( 'Invalid token', 'ultimate-push-notifications' ),
37+
'text' => __( 'Sorry! we are unable recognize your auth!', 'ultimate-push-notifications' ),
3838
)
3939
);
4040
}
@@ -49,8 +49,8 @@ public function upn_ajax() {
4949
wp_send_json(
5050
array(
5151
'status' => false,
52-
'title' => __( 'Invalid Request', 'real-time-auto-find-and-replace' ),
53-
'text' => __( 'Method parameter missing / invalid!', 'real-time-auto-find-and-replace' ),
52+
'title' => __( 'Invalid Request', 'ultimate-push-notifications' ),
53+
'text' => __( 'Method parameter missing / invalid!', 'ultimate-push-notifications' ),
5454
)
5555
);
5656
}
@@ -60,8 +60,8 @@ public function upn_ajax() {
6060
wp_send_json(
6161
array(
6262
'status' => false,
63-
'title' => __( 'Invalid Library', 'real-time-auto-find-and-replace' ),
64-
'text' => sprintf( __( 'Library Class "%s" not found! ', 'real-time-auto-find-and-replace' ), $class_path ),
63+
'title' => __( 'Invalid Library', 'ultimate-push-notifications' ),
64+
'text' => sprintf( __( 'Library Class "%s" not found! ', 'ultimate-push-notifications' ), $class_path ),
6565
)
6666
);
6767
}
@@ -70,8 +70,8 @@ public function upn_ajax() {
7070
wp_send_json(
7171
array(
7272
'status' => false,
73-
'title' => __( 'Invalid Method', 'real-time-auto-find-and-replace' ),
74-
'text' => sprintf( __( 'Method "%1$s" not found in Class "%2$s"! ', 'real-time-auto-find-and-replace' ), $method[1], $class_path ),
73+
'title' => __( 'Invalid Method', 'ultimate-push-notifications' ),
74+
'text' => sprintf( __( 'Method "%1$s" not found in Class "%2$s"! ', 'ultimate-push-notifications' ), $method[1], $class_path ),
7575
)
7676
);
7777
}

core/admin/options/pages/AppConfig.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -181,24 +181,24 @@ public function generate_page( $args, $option ) {
181181
$args['show_btn'] = true;
182182
$args['body_class'] = 'no-bottom-margin';
183183

184-
$args['well'] = "<ul>
185-
<li> <b>Basic Hints</b>
186-
<ol>
187-
<li>
188-
Please register on - <a href='https://console.firebase.google.com/' target=\"_blank\">https://console.firebase.google.com/</a> and create a project
189-
</li>
190-
<li>
191-
After creating project on firebase, create a APP by clicking on 'Add app' button
192-
</li>
193-
<li>
194-
When app platform appear, click the 'web' to create your app. Then follow the steps.
195-
</li>
196-
<li>
197-
After registered your app, you will see the following configuration field's value. Get these and setup the following configuration.
198-
</li>
199-
</ol>
200-
</li>
201-
</ul>";
184+
$args['well'] = '<ul>
185+
<li> <b>' . __( 'Basic Hints', 'ultimate-push-notifications' ) . '</b>
186+
<ol>
187+
<li>
188+
' . sprintf( __( 'Please register on - %1$s%2$s and create a project', 'ultimate-push-notifications' ), "<a href='https://console.firebase.google.com/' target=\"_blank\">", 'https://console.firebase.google.com/</a>' ) . '
189+
</li>
190+
<li>
191+
' . __( 'After creating project on firebase, create a APP by clicking on \'Add app\' button', 'ultimate-push-notifications' ) . '
192+
</li>
193+
<li>
194+
' . __( 'When app platform appear, click the \'web\' to create your app. Then follow the steps.', 'ultimate-push-notifications' ) . '
195+
</li>
196+
<li>
197+
' . __( 'After registered your app, you will see the following configuration field\'s value. Get these and setup the following configuration.', 'ultimate-push-notifications' ) . '
198+
</li>
199+
</ol>
200+
</li>
201+
</ul>';
202202

203203
return $this->Admin_Page_Generator->generate_page( $args );
204204
}

core/admin/options/pages/SetNotifications.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php namespace UltimatePushNotifications\admin\options\pages;
22

33
/**
4-
* Class: App Configuration
4+
* Class: Set Notifications
55
*
66
* @package Options
77
* @since 1.0.0
@@ -85,21 +85,21 @@ public function generate_page( $args, $option ) {
8585
'desc_tip' => __( 'Please set the following configuration to get WooCommerce related notifications.', 'ultimate-push-notifications' ),
8686
),
8787
'cs_set_notifications[add_to_cart]' => array(
88-
'title' => __( 'Add To Cart', 'woo-altcoin-payment-gateway' ),
88+
'title' => __( 'Add To Cart', 'ultimate-push-notifications' ),
8989
'type' => 'miscellaneous',
90-
'desc_tip' => __( 'Please check the checkbox to get notification when a product get added to cart. You can change the notification message with your won words. You can use : {product_title}, {product_price}', 'woo-altcoin-payment-gateway' ),
90+
'desc_tip' => __( 'Please check the checkbox to get notification when a product get added to cart. You can change the notification message with your won words. You can use : {product_title}, {product_price}', 'ultimate-push-notifications' ),
9191
'options' => array(
9292
'cs_set_notifications[addToCartCheck]' => array(
9393
'type' => 'checkbox',
9494
'class' => '',
9595
'value' => FormBuilder::get_value( 'addToCartCheck', $option, '' ),
96-
'placeholder' => __( 'Enter discount amount', 'woo-altcoin-payment-gateway' ),
96+
'placeholder' => __( 'Enter discount amount', 'ultimate-push-notifications' ),
9797
),
9898
'cs_set_notifications[addToCartTitle]' => array(
9999
'type' => 'text',
100100
'class' => 'form-control notification-title',
101101
'value' => FormBuilder::get_value( 'addToCartTitle', $option, 'New Product added to cart' ),
102-
'placeholder' => __( 'Enter notification title. Maxlength : 38', 'woo-altcoin-payment-gateway' ),
102+
'placeholder' => __( 'Enter notification title. Maxlength : 38', 'ultimate-push-notifications' ),
103103
'custom_attributes' => array(
104104
'maxlength' => 38,
105105
),
@@ -108,7 +108,7 @@ public function generate_page( $args, $option ) {
108108
'type' => 'textarea',
109109
'class' => 'form-control mt-10',
110110
'value' => FormBuilder::get_value( 'addToCartBody', $option, 'A new product was added to cart: {product_title}' ),
111-
'placeholder' => __( 'Enter notification description. Maxlength : 174', 'woo-altcoin-payment-gateway' ),
111+
'placeholder' => __( 'Enter notification description. Maxlength : 174', 'ultimate-push-notifications' ),
112112
'custom_attributes' => array(
113113
'maxlength' => 174,
114114
),
@@ -117,21 +117,21 @@ public function generate_page( $args, $option ) {
117117
),
118118
),
119119
'cs_set_notifications[product_sold]' => array(
120-
'title' => __( 'Product sold', 'woo-altcoin-payment-gateway' ),
120+
'title' => __( 'Product sold', 'ultimate-push-notifications' ),
121121
'type' => 'miscellaneous',
122-
'desc_tip' => __( 'Please check the checkbox to get notification when a product get sold. You can change the notification message with your won words.You can use: {first_name}, {last_name}, {full_name}, {total}', 'woo-altcoin-payment-gateway' ),
122+
'desc_tip' => __( 'Please check the checkbox to get notification when a product get sold. You can change the notification message with your won words.You can use: {first_name}, {last_name}, {full_name}, {total}', 'ultimate-push-notifications' ),
123123
'options' => array(
124124
'cs_set_notifications[productSoldCheck]' => array(
125125
'type' => 'checkbox',
126126
'class' => '',
127127
'value' => FormBuilder::get_value( 'productSoldCheck', $option, '' ),
128-
'placeholder' => __( 'Enter discount amount', 'woo-altcoin-payment-gateway' ),
128+
'placeholder' => __( 'Enter discount amount', 'ultimate-push-notifications' ),
129129
),
130130
'cs_set_notifications[productSoldTitle]' => array(
131131
'type' => 'text',
132132
'class' => 'form-control notification-title',
133133
'value' => FormBuilder::get_value( 'productSoldTitle', $option, 'New Product Sold' ),
134-
'placeholder' => __( 'Enter notification title. Maxlength : 38', 'woo-altcoin-payment-gateway' ),
134+
'placeholder' => __( 'Enter notification title. Maxlength : 38', 'ultimate-push-notifications' ),
135135
'custom_attributes' => array(
136136
'maxlength' => 38,
137137
),
@@ -140,7 +140,7 @@ public function generate_page( $args, $option ) {
140140
'type' => 'textarea',
141141
'class' => 'form-control mt-10',
142142
'value' => FormBuilder::get_value( 'productSoldBody', $option, 'New order from: {full_name} for a total of: {total}' ),
143-
'placeholder' => __( 'Enter notification description. Maxlength : 174', 'woo-altcoin-payment-gateway' ),
143+
'placeholder' => __( 'Enter notification description. Maxlength : 174', 'ultimate-push-notifications' ),
144144
'custom_attributes' => array(
145145
'maxlength' => 174,
146146
),
@@ -149,21 +149,21 @@ public function generate_page( $args, $option ) {
149149
),
150150
),
151151
'cs_set_notifications[order_status_updated]' => array(
152-
'title' => __( 'Order status update', 'woo-altcoin-payment-gateway' ),
152+
'title' => __( 'Order status update', 'ultimate-push-notifications' ),
153153
'type' => 'miscellaneous',
154-
'desc_tip' => __( 'Please check the checkbox to get notification when Order status update. You can change the notification message with your won words.You can use: {first_name}, {last_name}, {full_name}, {order_id}, {status_from}, {status_to}', 'woo-altcoin-payment-gateway' ),
154+
'desc_tip' => __( 'Please check the checkbox to get notification when Order status update. You can change the notification message with your won words.You can use: {first_name}, {last_name}, {full_name}, {order_id}, {status_from}, {status_to}', 'ultimate-push-notifications' ),
155155
'options' => array(
156156
'cs_set_notifications[orderStatusUpdatedCheck]' => array(
157157
'type' => 'checkbox',
158158
'class' => '',
159159
'value' => FormBuilder::get_value( 'orderStatusUpdatedCheck', $option, '' ),
160-
'placeholder' => __( 'Enter discount amount', 'woo-altcoin-payment-gateway' ),
160+
'placeholder' => __( 'Enter discount amount', 'ultimate-push-notifications' ),
161161
),
162162
'cs_set_notifications[orderStatusUpdatedTitle]' => array(
163163
'type' => 'text',
164164
'class' => 'form-control notification-title',
165165
'value' => FormBuilder::get_value( 'orderStatusUpdatedTitle', $option, 'Order status changed' ),
166-
'placeholder' => __( 'Enter notification title. Maxlength : 38', 'woo-altcoin-payment-gateway' ),
166+
'placeholder' => __( 'Enter notification title. Maxlength : 38', 'ultimate-push-notifications' ),
167167
'custom_attributes' => array(
168168
'maxlength' => 38,
169169
),
@@ -172,7 +172,7 @@ public function generate_page( $args, $option ) {
172172
'type' => 'textarea',
173173
'class' => 'form-control mt-10',
174174
'value' => FormBuilder::get_value( 'orderStatusUpdatedBody', $option, 'The status of order: #{order_id} requested by {full_name} was changed from {status_from} to {status_to}.' ),
175-
'placeholder' => __( 'Enter notification description. Maxlength : 174', 'woo-altcoin-payment-gateway' ),
175+
'placeholder' => __( 'Enter notification description. Maxlength : 174', 'ultimate-push-notifications' ),
176176
'custom_attributes' => array(
177177
'maxlength' => 174,
178178
),

core/install/Activate.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
exit;
1313
}
1414

15-
use UltimatePushNotifications\admin\functions\Masking;
16-
1715
if ( ! \class_exists( 'Activate' ) ) {
1816

1917
class Activate {

0 commit comments

Comments
 (0)