Created
August 18, 2020 13:47
-
-
Save champsupertramp/9b7a5f5ed6c88bbea113ff26a8c63dae to your computer and use it in GitHub Desktop.
Ultimate Member - Open GDPR terms and condition link to a new tab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> | |
<!-- This file should primarily consist of HTML with a little bit of PHP. --> | |
<div class="um-field um-field-type_terms_conditions" data-key="use_terms_conditions_agreement" style="display:block;padding:0;"> | |
<div class="um-field-area"> | |
<?php $confirm = ! empty( $args['use_gdpr_agreement'] ) ? $args['use_gdpr_agreement'] : __( 'Please confirm that you agree to our privacy policy', 'ultimate-member' ); ?> | |
<label class="um-field-checkbox"> | |
<input type="checkbox" name="use_gdpr_agreement" value="1"> | |
<span class="um-field-checkbox-state"><i class="um-icon-android-checkbox-outline-blank"></i></span> | |
<span class="um-field-checkbox-option"><?php echo esc_html( $confirm ); ?></span> | |
</label> | |
<div class="um-clear"></div> | |
<?php $errors = UM()->form()->errors; | |
if ( isset( $errors['use_gdpr_agreement'] ) ) { | |
$error_message = ! empty( $args['use_gdpr_error_text'] ) ? $args['use_gdpr_error_text'] : __( 'Please confirm your acceptance of our privacy policy', 'ultimate-member' ); ?> | |
<p class="um-notice err"> | |
<i class="um-icon-ios-close-empty" onclick="jQuery(this).parent().fadeOut();"></i><?php echo esc_html( $error_message ) ?> | |
</p> | |
<br/> | |
<?php } ?> | |
<div class="um-clear"></div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment