<?php

defined( 'ABSPATH' ) or exit;

?>
<div class="wrap">
    <div class="pwlpara-header">
        <div class="pwlpara-title-container">
            <div class="pwlpara-title"><?php echo esc_html( PWLPAR_PLUGIN_NAME ); ?></div>
            <div class="pwlpara-credits pwlpar-pull-right">by <a href="https://www.pimwick.com" target="_blank" class="pwlpara-link">Pimwick</a></div>
            <div class="pwlpara-version pwlpar-pull-left">v<?php echo esc_html( PWLPAR_VERSION ); ?></div>
        </div>
    </div>
</div>
<?php

if ( !pwlpar_wc_account_creation_enabled() ) {
    // Display an alert notice that user registration is required.
    ?>
    <div class="pwlpara-header-alert">
        <div class="pwlpara-header-alert-title">
            <?php esc_html_e( 'ERROR: WooCommerce account creation is not enabled.', 'pw-loyalty-points-and-rewards-for-woocommerce' ); ?>
        </div>
        <div>
            <?php esc_html_e( 'Customers must be able to create an account in order to sign up for rewards. Go to WooCommerce > Settings > Accounts & Privacy to enable account creation.', 'pw-loyalty-points-and-rewards-for-woocommerce' ); ?>
        </div>
    </div>
    <?php
}
