form-redeem-voucher.php 957 Bytes
Newer Older
cyrille's avatar
cyrille committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<?php
/**
 * Redeem vouchers
 *
 * @package LifterLMS/Templates
 *
 * @since 2.0.0
 * @since 4.12.0 Updated the label `for` attribute and added an `id` to the input element.
 * @version 4.12.0
 */

defined( 'ABSPATH' ) || exit;
?>

<?php llms_print_notices(); ?>

<?php do_action( 'lifterlms_my_account_navigation' ); ?>

<?php do_action( 'lifterlms_before_redeem_voucher' ); ?>

<form action="" method="POST">

	<p class="form-row form-row-first">
		<label for="llms-voucher-code"><?php _e( 'Voucher Code', 'lifterlms' ); ?></label>
		<input id="llms-voucher-code" type="text" placeholder="<?php _e( 'Voucher Code', 'lifterlms' ); ?>" name="llms_voucher_code" required="required">
	</p>

	<button id="llms-redeem-voucher-submit" type="submit"><?php _ex( 'Submit', 'Voucher Code', 'lifterlms' ); ?></button>

	<?php wp_nonce_field( 'lifterlms_voucher_check', 'lifterlms_voucher_nonce' ); ?>

</form>

<?php do_action( 'lifterlms_after_redeem_voucher' ); ?>