<?php
/**
 * PW Rewards Checkout Rewards Join
 *
 * Shows the enroll rewards program information on the checkout page.
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/checkout/checkout-rewards-join.php.
 *
 * HOWEVER, on occasion Pimwick will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see https://woocommerce.com/document/template-structure/
 */

defined( 'ABSPATH' ) or exit;

do_action( 'pwlpar_before_checkout_rewards_join' );

?>
<div class="pwlpar-checkout-rewards-join-container">
    <div>
        <label>
            <input type="checkbox" id="pwlpar-checkout-rewards-join" name="pwlpar_join" value="True" checked/>
            <?php
                /* translators: %s is the rewards program name */
                printf( esc_html__( 'Join %s', 'pw-loyalty-points-and-rewards-for-woocommerce' ), esc_html( pwlpar_program_name() ) );
            ?>
        </label>
    </div>
    <div class="pwlpar-nl2br"><?php echo wp_kses_post( pwlpar_format_string( pwlpar_checkout_join_cta() ) ); ?></div>
</div>
<?php

do_action( 'pwlpar_after_checkout_rewards_join' );
