Skip to content

Commit 914cc24

Browse files
committed
Remove deprecated properties and format code
1 parent 3ee9da9 commit 914cc24

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

views/altapay-payment-form-external.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@
756756
$cc_form_styling = get_option( 'altapay_cc_form_styling' );
757757
$container_class .= ( $cc_form_styling === 'checkout_v2' ) ? ' checkout-v2' : '';
758758

759-
$surcharge = 'no';
759+
$surcharge = 'no';
760760
$wpml_language = $order->get_meta( 'wpml_language' );
761761
if ( ! empty( $wpml_language ) ) {
762762
global $sitepress;
@@ -788,9 +788,9 @@
788788
<ul class="order_details">
789789
<li class="order">
790790
<strong><?php esc_html_e( 'Order number:', 'woocommerce' ); ?></strong>
791-
<?php echo esc_html( $order->get_order_number() ); ?>
791+
<?php echo esc_html( $order->get_order_number() ); ?>
792792
</li>
793-
<?php if ( $surcharge === 'yes' ) { ?>
793+
<?php if ( $surcharge === 'yes' ) { ?>
794794
<li class="surcharge">
795795
<strong><?php echo __( 'Surcharge:', 'woocommerce' ); ?></strong>
796796
<span id="PensioSurcharge"></span>
@@ -801,12 +801,12 @@
801801
<span id="PensioTotal"></span>
802802
<span class="currency-symbol"><?php echo get_woocommerce_currency_symbol(); ?></span>
803803
</li>
804-
<?php } else { ?>
804+
<?php } else { ?>
805805
<li class="total">
806806
<strong><?php esc_html_e( 'Total:', 'woocommerce' ); ?></strong>
807-
<?php echo wp_kses_post( $order->get_formatted_order_total() ); ?>
807+
<?php echo wp_kses_post( $order->get_formatted_order_total() ); ?>
808808
</li>
809-
<?php } ?>
809+
<?php } ?>
810810
</ul>
811811
</div>
812812
<form id="PensioPaymentForm">

views/forms/adminSettings.blade.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@
1414
do_settings_sections('altapay-settings-group');
1515
@endphp
1616
<table class="form-table">
17-
<tr valign="top">
17+
<tr>
1818
<th scope="row"><?php esc_html_e( 'Gateway URL', 'altapay' ); ?></th>
1919
<td><input class="input-text regular-input" type="text" placeholder="{{__('Enter gateway url','altapay')}}" name="altapay_gateway_url"
2020
value="{{$gatewayURL}}" required />
2121
<i><p style="font-size: 10px;">{{__('e.g. https://testgateway.altapaysecure.com', 'altapay')}}</p></i>
2222
</td>
2323
</tr>
24-
<tr valign="top">
24+
<tr>
2525
<th scope="row"><?php esc_html_e( 'API username', 'altapay' ); ?></th>
2626
<td><input class="input-text regular-input" type="text" placeholder="{{__('Enter API username','altapay')}}" name="altapay_username"
2727
value="{{$username}}" required />
2828
</td>
2929
</tr>
3030

31-
<tr valign="top">
31+
<tr>
3232
<th scope="row"><?php esc_html_e( 'API password', 'altapay' ); ?></th>
3333
<td><input class="input-text regular-input" type="password" placeholder="{{__('Enter API password','altapay')}}" name="altapay_password"
3434
value="{{$password}}" required />
3535
</td>
3636
</tr>
37-
<tr valign="top">
37+
<tr>
3838
<th scope="row"><?php esc_html_e( 'Payment page', 'altapay' ); ?></th>
3939
<td>
4040
@php // Validate if payment page exists by looping through the pages
@@ -62,7 +62,7 @@
6262
</td>
6363
</tr>
6464

65-
<tr valign="top">
65+
<tr>
6666
<th scope="row"><?php esc_html_e( 'Checkout form style', 'altapay' ); ?></th>
6767
<td>
6868
<select name="altapay_cc_form_styling">
@@ -74,7 +74,7 @@
7474
</td>
7575
</tr>
7676

77-
<tr valign="top">
77+
<tr>
7878
<th scope="row"><?php esc_html_e( 'Payment page layout', 'altapay' ); ?></th>
7979
<td>
8080
<select name="altapay_payment_page_layout">
@@ -86,13 +86,13 @@
8686
</td>
8787
</tr>
8888

89-
<tr valign="top">
89+
<tr>
9090
<th scope="row" colspan="2">
9191
<h2 style="background: #006064; color:white; line-height: 30px; padding-left: 1%;"><?php esc_html_e( 'Fraud detection service', 'altapay' ); ?></h2>
9292
</th>
9393
</tr>
9494

95-
<tr valign="top">
95+
<tr>
9696
<th scope="row"><?php esc_html_e( 'Fraud detection', 'altapay' ); ?></th>
9797
<td>
9898
<select name="altapay_fraud_detection">
@@ -101,7 +101,7 @@
101101
</select>
102102
</td>
103103
</tr>
104-
<tr valign="top">
104+
<tr>
105105
<th scope="row"><?php esc_html_e( 'Release/Refund on Fraud detection', 'altapay' ); ?></th>
106106
<td>
107107
<select name="altapay_fraud_detection_action">
@@ -112,13 +112,13 @@
112112
</tr>
113113

114114
@if ($terminals)
115-
<tr valign="top">
115+
<tr>
116116
<th scope="row" colspan="2">
117117
<h2 style="background: #006064; color:white; line-height: 30px; padding-left: 1%;"><?php esc_html_e( 'Terminals', 'altapay' ); ?></h2>
118118
</th>
119119
</tr>
120120
@foreach ($terminals as $terminal)
121-
<tr valign="top">
121+
<tr>
122122
<th scope="row">{{$terminal->name}}</th>
123123
<td><input type="checkbox" name="altapay_terminals_enabled[]"
124124
value="{{$terminal->key}}"

0 commit comments

Comments
 (0)