PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.4
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.4
2.4.3 2.4.4 2.4.2 2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 All 60 releases
← All changes | includes/Gateways/ManualGateway.php +23 -18 2.3.7 → 2.4.4 View file →
@@ -17,8 +17,13 @@
17 17 * Handles manual payment processing for cash, check, and bank transfer payments
18 18 *
19 19 * @since 1.0.0
20 20 */
21 +/**
22 + * @deprecated 2.4.2 No longer registered. Bank transfer, cheque and cash are
23 + * separate OfflineGateway instances (see Services\OfflinePayments);
24 + * the class stays so code that type-checks against it keeps loading.
25 + */
21 26 class ManualGateway extends AbstractPaymentGateway implements PaymentGatewayInterface {
22 27
23 28 /**
24 29 * Gateway name
@@ -185,9 +190,9 @@
185 190 <div class="payment-method-option">
186 191 <input type="radio" id="payment-cash" name="payment_type" value="cash" checked>
187 192 <label for="payment-cash">
188 193 <i class="fas fa-money-bill-wave"></i>
189 - <span><?php _e('Cash', 'easy-invoice'); ?></span>
194 + <span><?php esc_html_e('Cash', 'easy-invoice'); ?></span>
190 195 </label>
191 196 </div>
192 197 <div class="payment-method-option">
193 198 <input type="radio" id="payment-bank" name="payment_type" value="bank">
@@ -192,9 +197,9 @@
192 197 <div class="payment-method-option">
193 198 <input type="radio" id="payment-bank" name="payment_type" value="bank">
194 199 <label for="payment-bank">
195 200 <i class="fas fa-university"></i>
196 - <span><?php _e('Bank Transfer', 'easy-invoice'); ?></span>
201 + <span><?php esc_html_e('Bank Transfer', 'easy-invoice'); ?></span>
197 202 </label>
198 203 </div>
199 204 <div class="payment-method-option">
200 205 <input type="radio" id="payment-cheque" name="payment_type" value="cheque">
@@ -199,9 +204,9 @@
199 204 <div class="payment-method-option">
200 205 <input type="radio" id="payment-cheque" name="payment_type" value="cheque">
201 206 <label for="payment-cheque">
202 207 <i class="fas fa-money-check"></i>
203 - <span><?php _e('Cheque', 'easy-invoice'); ?></span>
208 + <span><?php esc_html_e('Cheque', 'easy-invoice'); ?></span>
204 209 </label>
205 210 </div>
206 211 </div>
207 212
@@ -206,9 +211,9 @@
206 211 </div>
207 212
208 213 <div class="payment-details">
209 214 <div class="cash-details" id="cash-details">
210 - <p><?php _e('Please pay in cash and notify the administrator.', 'easy-invoice'); ?></p>
215 + <p><?php esc_html_e('Please pay in cash and notify the administrator.', 'easy-invoice'); ?></p>
211 216 </div>
212 217
213 218 <div class="bank-details" id="bank-details" style="display: none;">
214 219 <?php $this->renderBankDetails(); ?>
@@ -219,15 +224,15 @@
219 224 </div>
220 225 </div>
221 226
222 227 <div class="payment-proof-section">
223 - <h4><?php _e('Upload Payment Proof', 'easy-invoice'); ?></h4>
228 + <h4><?php esc_html_e('Upload Payment Proof', 'easy-invoice'); ?></h4>
224 229 <div class="form-group">
225 - <label for="payment_proof"><?php _e('Upload receipt or proof of payment:', 'easy-invoice'); ?></label>
230 + <label for="payment_proof"><?php esc_html_e('Upload receipt or proof of payment:', 'easy-invoice'); ?></label>
226 231 <input type="file" id="payment_proof" name="payment_proof" accept="image/*,.pdf">
227 232 </div>
228 233 <div class="form-group">
229 - <label for="payment_notes"><?php _e('Additional notes:', 'easy-invoice'); ?></label>
234 + <label for="payment_notes"><?php esc_html_e('Additional notes:', 'easy-invoice'); ?></label>
230 235 <textarea id="payment_notes" name="payment_notes" rows="3"></textarea>
231 236 </div>
232 237 </div>
233 238
@@ -232,9 +237,9 @@
232 237 </div>
233 238
234 239 <div class="form-actions">
235 240 <button type="button" class="manual-payment-submit" data-invoice-id="<?php echo esc_attr($invoice_id); ?>">
236 - <?php _e('Submit Manual Payment', 'easy-invoice'); ?>
241 + <?php esc_html_e('Submit Manual Payment', 'easy-invoice'); ?>
237 242 </button>
238 243 </div>
239 244 </div>
240 245 <?php
@@ -254,30 +259,30 @@
254 259 $swift_code = get_option('easy_invoice_manual_swift_code', '');
255 260 $bank_address = get_option('easy_invoice_manual_bank_address', '');
256 261
257 262 if (empty($bank_name)) {
258 - echo '<p>' . __('Bank transfer details will be provided by the administrator.', 'easy-invoice') . '</p>';
263 + echo '<p>' . esc_html__('Bank transfer details will be provided by the administrator.', 'easy-invoice') . '</p>';
259 264 return;
260 265 }
261 266
262 267 echo '<table class="bank-details-table">';
263 268 if ($bank_name) {
264 - echo '<tr><th>' . __('Bank Name', 'easy-invoice') . '</th><td>' . esc_html($bank_name) . '</td></tr>';
269 + echo '<tr><th>' . esc_html__('Bank Name', 'easy-invoice') . '</th><td>' . esc_html($bank_name) . '</td></tr>';
265 270 }
266 271 if ($account_name) {
267 - echo '<tr><th>' . __('Account Name', 'easy-invoice') . '</th><td>' . esc_html($account_name) . '</td></tr>';
272 + echo '<tr><th>' . esc_html__('Account Name', 'easy-invoice') . '</th><td>' . esc_html($account_name) . '</td></tr>';
268 273 }
269 274 if ($account_number) {
270 - echo '<tr><th>' . __('Account Number', 'easy-invoice') . '</th><td>' . esc_html($account_number) . '</td></tr>';
275 + echo '<tr><th>' . esc_html__('Account Number', 'easy-invoice') . '</th><td>' . esc_html($account_number) . '</td></tr>';
271 276 }
272 277 if ($routing_number) {
273 - echo '<tr><th>' . __('Routing Number', 'easy-invoice') . '</th><td>' . esc_html($routing_number) . '</td></tr>';
278 + echo '<tr><th>' . esc_html__('Routing Number', 'easy-invoice') . '</th><td>' . esc_html($routing_number) . '</td></tr>';
274 279 }
275 280 if ($swift_code) {
276 - echo '<tr><th>' . __('SWIFT Code', 'easy-invoice') . '</th><td>' . esc_html($swift_code) . '</td></tr>';
281 + echo '<tr><th>' . esc_html__('SWIFT Code', 'easy-invoice') . '</th><td>' . esc_html($swift_code) . '</td></tr>';
277 282 }
278 283 if ($bank_address) {
279 - echo '<tr><th>' . __('Bank Address', 'easy-invoice') . '</th><td>' . esc_html($bank_address) . '</td></tr>';
284 + echo '<tr><th>' . esc_html__('Bank Address', 'easy-invoice') . '</th><td>' . esc_html($bank_address) . '</td></tr>';
280 285 }
281 286 echo '</table>';
282 287 }
283 288
@@ -291,18 +296,18 @@
291 296 $payee_name = get_option('easy_invoice_manual_payee_name', '');
292 297 $payee_address = get_option('easy_invoice_manual_payee_address', '');
293 298
294 299 if (empty($payee_name)) {
295 - echo '<p>' . __('Cheque payment details will be provided by the administrator.', 'easy-invoice') . '</p>';
300 + echo '<p>' . esc_html__('Cheque payment details will be provided by the administrator.', 'easy-invoice') . '</p>';
296 301 return;
297 302 }
298 303
299 304 echo '<div class="cheque-info">';
300 305 if ($payee_name) {
301 - echo '<p><strong>' . __('Make cheque payable to:', 'easy-invoice') . '</strong> ' . esc_html($payee_name) . '</p>';
306 + echo '<p><strong>' . esc_html__('Make cheque payable to:', 'easy-invoice') . '</strong> ' . esc_html($payee_name) . '</p>';
302 307 }
303 308 if ($payee_address) {
304 - echo '<p><strong>' . __('Mail cheque to:', 'easy-invoice') . '</strong> ' . esc_html($payee_address) . '</p>';
309 + echo '<p><strong>' . esc_html__('Mail cheque to:', 'easy-invoice') . '</strong> ' . esc_html($payee_address) . '</p>';
305 310 }
306 311 echo '</div>';
307 312 }
308 313