| 1 |
<?php |
| 2 |
/** |
| 3 |
* Output a single payment method |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/payment-method.php. |
| 6 |
* |
| 7 |
* HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 |
* (the theme developer) will need to copy the new files to your theme to |
| 9 |
* maintain compatibility. We try to do this as little as possible, but it does |
| 10 |
* happen. When this occurs the version of the template file will be bumped and |
| 11 |
* the readme will list any important changes. |
| 12 |
* |
| 13 |
* @see https://docs.woocommerce.com/document/template-structure/ |
| 14 |
* @package WooCommerce\Templates |
| 15 |
* @version 3.5.0 |
| 16 |
*/ |
| 17 |
|
| 18 |
if ( ! defined( 'ABSPATH' ) ) { |
| 19 |
exit; |
| 20 |
} |
| 21 |
?> |
| 22 |
<li class="wc_payment_method payment_method_<?php echo esc_attr( $gateway->id ); ?>"> |
| 23 |
<label class="wrp"> |
| 24 |
<input id="payment_method_<?php echo esc_attr( $gateway->id ); ?>" type="radio" class="input-radio sellkit-one-page-pay-method" name="payment_method" value="<?php echo esc_attr( $gateway->id ); ?>" <?php checked( $gateway->chosen, true ); ?> data-order_button_text="<?php echo esc_attr( $gateway->order_button_text ); ?>" /> |
| 25 |
<span class="checkmark"></span> |
| 26 |
<label for="payment_method_<?php echo esc_attr( $gateway->id ); ?>" > |
| 27 |
<div class="sellkit-checkout-payment-gateway-title"><?php echo wp_kses_post( $gateway->get_title() ); ?></div> |
| 28 |
<?php echo wp_kses_post( $gateway->get_icon() ); ?> |
| 29 |
</label> |
| 30 |
</label> |
| 31 |
</li> |
| 32 |
<?php if ( $gateway->has_fields() || $gateway->get_description() ) : ?> |
| 33 |
<div class="sellkit_payment_box sellkit-checkout-widget-divider" > |
| 34 |
<?php $gateway->payment_fields(); ?> |
| 35 |
</div> |
| 36 |
<?php endif; ?> |
| 37 |
|