customers
4 years ago
orders
4 years ago
subscriptions
4 years ago
add-edit-coupon.php
4 years ago
add-edit-plan.php
4 years ago
checkout-field-item.php
4 years ago
checkout-fields.php
4 years ago
coupons-page-sidebar.php
4 years ago
index.php
4 years ago
payment-method-list.php
4 years ago
plans-page-sidebar.php
4 years ago
tax-rates-setup.php
4 years ago
payment-method-list.php
47 lines
| 1 | <?php $payment_methods = ProfilePress\Core\Membership\PaymentMethods\PaymentMethods::get_instance()->get_all(); ?> |
| 2 | <div class="ppress-payment-methods-wrap"> |
| 3 | <table cellspacing="0" class="widefat"> |
| 4 | <thead> |
| 5 | <tr> |
| 6 | <th class="ppress-payment-method-table-sort"></th> |
| 7 | <th class="ppress-payment-method-table-title"><?php esc_html_e('Method', 'wp-user-avatar') ?></th> |
| 8 | <th class="ppress-payment-method-table-enabled"><?php esc_html_e('Enabled', 'wp-user-avatar') ?></th> |
| 9 | <th class="ppress-payment-method-table-description"><?php esc_html_e('Description', 'wp-user-avatar') ?></th> |
| 10 | <th class="ppress-payment-method-table-subscription-support"><?php esc_html_e('Subscription Support', 'wp-user-avatar') ?></th> |
| 11 | <th class="ppress-payment-method-table-actions"></th> |
| 12 | </tr> |
| 13 | </thead> |
| 14 | <tbody> |
| 15 | <?php foreach ($payment_methods as $payment_method) : ?> |
| 16 | <?php $config_url = esc_url(add_query_arg('method', $payment_method->get_id())); ?> |
| 17 | <tr> |
| 18 | <td class="ppress-payment-method-table-sort"> |
| 19 | <span class="gateway-sort"><span class="dashicons dashicons-menu"></span> |
| 20 | <input type="hidden" name="payment_gateways_order[]" value="<?php echo $payment_method->get_id() ?>"></span> |
| 21 | </td> |
| 22 | <td class="ppress-payment-method-table-title"> |
| 23 | <a href="<?= $config_url ?>"><?php echo $payment_method->get_method_title() ?></a> |
| 24 | </td> |
| 25 | <td class="ppress-payment-method-table-enabled"> |
| 26 | <?php echo $payment_method->is_enabled() ? |
| 27 | '<span class="ppress-payment-method-icon ico-yes"><span class="dashicons dashicons-yes"></span></span>' : |
| 28 | '<span class="ppress-payment-method-icon"><span class="dashicons dashicons-no-alt"></span></span>' |
| 29 | ?> |
| 30 | </td> |
| 31 | <td class="ppress-payment-method-table-description"> |
| 32 | <?php echo $payment_method->get_method_description() ?> |
| 33 | </td> |
| 34 | <td class="ppress-payment-method-table-subscription-support"> |
| 35 | <?php echo $payment_method->supports($payment_method::SUBSCRIPTIONS) ? |
| 36 | '<span class="ppress-payment-method-icon ico-yes"><span class="dashicons dashicons-yes"></span></span>' : |
| 37 | '<span class="ppress-payment-method-icon"><span class="dashicons dashicons-no-alt"></span></span>' |
| 38 | ?> |
| 39 | </td> |
| 40 | <td class="ppress-payment-method-table-actions"> |
| 41 | <a href="<?= $config_url ?>" class="button"><?php esc_html_e('Configure', 'wp-user-avatar'); ?></a> |
| 42 | </td> |
| 43 | </tr> |
| 44 | <?php endforeach; ?> |
| 45 | </tbody> |
| 46 | </table> |
| 47 | </div> |