| 1 |
<?php $gateways = LP_Gateways::instance()->get_gateways(); ?> |
| 2 |
|
| 3 |
<table class="learn-press-payments<?php echo sizeof( $gateways ) > 1 ? ' sortable' : ''; ?>"> |
| 4 |
<thead> |
| 5 |
<tr> |
| 6 |
<th class="order"></th> |
| 7 |
<th class="name"><?php esc_html_e( 'Payment', 'learnpress' ); ?></th> |
| 8 |
<th class="id"><?php esc_html_e( 'ID', 'learnpress' ); ?></th> |
| 9 |
<th class="description"><?php esc_html_e( 'Description', 'learnpress' ); ?></th> |
| 10 |
<th class="status"><?php esc_html_e( 'Enable/Disable', 'learnpress' ); ?></th> |
| 11 |
</tr> |
| 12 |
</thead> |
| 13 |
|
| 14 |
<tbody> |
| 15 |
<?php foreach ( $gateways as $gateway ) : ?> |
| 16 |
<tr id="payment-<?php echo esc_attr( $gateway->get_id() ); ?>" data-payment="<?php echo esc_attr( $gateway->get_id() ); ?>"> |
| 17 |
<td class="order"><span class="dashicons dashicons-menu"></span></td> |
| 18 |
<td class="name"> |
| 19 |
<a href="<?php echo esc_url_raw( admin_url( 'admin.php?page=learn-press-settings&tab=payments§ion=' . $gateway->get_id() ) ); ?>"> |
| 20 |
<?php echo esc_html( $gateway->get_method_title() ); ?> |
| 21 |
</a> |
| 22 |
</td> |
| 23 |
<td class="id"><?php echo esc_html( $gateway->get_id() ); ?></td> |
| 24 |
<td class="description"><?php echo wp_kses_post( $gateway->get_method_description() ); ?></td> |
| 25 |
<td class="status<?php echo esc_attr( $gateway->is_enabled() ? ' enabled' : '' ); ?>"> |
| 26 |
<span class="dashicons dashicons-yes"></span> |
| 27 |
<input type="hidden" name="payment-order" value="<?php echo esc_attr( $gateway->get_id() ); ?>"/> |
| 28 |
</td> |
| 29 |
</tr> |
| 30 |
<?php endforeach; ?> |
| 31 |
</tbody> |
| 32 |
</table> |
| 33 |
|