LLMS_Settings_Checkout::get_gateway_table_html()
Get HTML for the payment gateways table
Return Return
(string)
Source Source
File: includes/admin/settings/class.llms.settings.checkout.php
public function get_gateway_table_html() {
$gateways = llms()->payment_gateways()->get_payment_gateways();
usort( $gateways, array( $this, 'sort_gateways' ) );
ob_start();
?>
<table class="llms-table zebra text-left size-large llms-gateway-table">
<thead>
<tr>
<th class="sort"></th>
<th><?php _e( 'Gateway', 'lifterlms' ); ?></th>
<th><?php _e( 'Gateway ID', 'lifterlms' ); ?></th>
<th><?php _e( 'Enabled', 'lifterlms' ); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ( $gateways as $gateway ) : ?>
<tr>
<td class="sort">
<i class="fa fa-bars llms-action-icon" aria-hidden="true"></i>
<input type="hidden" name="<?php echo $gateway->get_option_name( 'display_order' ); ?>" value="<?php echo $gateway->get_display_order(); ?>">
</td>
<td><a href="<?php echo esc_url( admin_url( 'admin.php?page=llms-settings&tab=' . $this->id . '§ion=' . $gateway->get_id() ) ); ?>"><?php echo $gateway->get_admin_title(); ?></a></td>
<td><?php echo $gateway->get_id(); ?></td>
<td class="status">
<?php if ( $gateway->is_enabled() ) : ?>
<span class="tip--bottom-right" data-tip="<?php esc_attr_e( 'Enabled', 'lifterlms' ); ?>">
<span class="screen-reader-text"><?php _e( 'Enabled', 'lifterlms' ); ?></span>
<i class="fa fa-check-circle" aria-hidden="true"></i>
</span>
<?php else : ?>
–
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php
return ob_get_clean();
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.17.5 | Introduced. |