Skip to content

Commit 42f1706

Browse files
committed
Fixing the agreement icon and WPCS updates
1 parent 8ac961d commit 42f1706

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

includes/classes/class-email-invoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public function send_invoice( $form_id, $currency, $amount, $name, $email, $code
5757
$this->email = stripslashes( $email );
5858
$this->referer_url = $referer_url;
5959

60-
/* Translators: %1$s is the currency code, %2$s is the formatted amount */
6160
$this->subject = sprintf(
61+
// Translators: %1$s is the currency code, %2$s is the formatted amount
6262
__( 'Payment Invoice for %1$s %2$s', 'text-domain' ),
6363
$currency,
6464
number_format( $amount )

includes/classes/class-email-receipt.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,16 @@ public function get_html_body() {
160160
<p style="font-family:Helvetica,Arial,sans-serif;font-size:15px;line-height:23px;margin-top:8px;margin-bottom:16px">
161161
<?php
162162
printf(
163-
/* translators: %s: Amount */
164-
esc_html__( 'Amount : %s %s', 'pff-paystack' ),
163+
// translators: %1$s is the currency code, %2$s is the formatted amount
164+
esc_html__( 'Amount : %1$s %2$s', 'pff-paystack' ),
165165
esc_html( $this->currency ),
166166
number_format_i18n( $this->amount )
167167
);
168168
?><br>
169169
<?php
170170
printf(
171-
/* translators: %s: Email */
172-
esc_html__( 'Email : %s', 'pff-paystack' ),
171+
/* translators: %1$s is the Email */
172+
esc_html__( 'Email : %1$s', 'pff-paystack' ),
173173
esc_html( $this->email )
174174
);
175175
?><br>

includes/classes/class-field-shortcodes.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ public function text_field( $atts ) {
5757

5858
$code .= '</label>
5959
<div class="input">
60-
<input type="text" id="' . esc_attr( $id ) . '" name="' . esc_attr( $name ) . '" placeholder="' . sprintf( esc_attr__( 'Enter %s', 'pff-paystack' ), $name ) . '" ' . esc_attr( $required ) . ' /></div></div>';
60+
<input type="text" id="' . esc_attr( $id ) . '" name="' . esc_attr( $name ) . '" placeholder="' .
61+
// translators: %s: input field name to be entered by the user
62+
sprintf( esc_attr__( 'Enter %s', 'pff-paystack' ), $name ) .
63+
'" ' . esc_attr( $required ) . ' /></div></div>';
6164

6265
return $code;
6366
}

includes/classes/class-form-shortcode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,11 @@ public function get_amount_field() {
373373
*/
374374
public function get_agreement_field() {
375375
$html = '';
376-
if ( $this->meta['useagreement'] == 'yes' ) {
376+
if ( 'yes' === $this->meta['useagreement'] ) {
377377
$html = '<div class="span12 unit">
378378
<label class="checkbox">
379379
<input type="checkbox" name="agreement" id="pf-agreement" required value="yes">
380-
<i></i>
380+
<i id="pf-agreementicon"></i>
381381
Accept terms <a target="_blank" href="' . esc_url( $this->meta['agreementlink'] ) . '">Link</a>
382382
</label>
383383
</div><br>';

includes/classes/class-form-submit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ public function process_images() {
215215
if ( $value['size'] > 0 ) {
216216
if ( $value['size'] > $max_file_size ) {
217217
$response['result'] = 'failed';
218+
// translators: %s: maximum upload file size in MB
218219
$response['message'] = sprintf( __( 'Max upload size is %sMB', 'pff-paystack' ), $this->meta['filelimit'] );
219220
exit( wp_json_encode( $response ) );
220221
} else {

0 commit comments

Comments
 (0)