PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.3
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.3
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
learnpress / inc / admin / meta-box / fields / payment-order.php

payment-order.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.3, at inc/admin/meta-box/fields/payment-order.php

33 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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&section=' . $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