| Server IP : 170.10.161.225 / Your IP : 216.73.217.54 Web Server : Apache System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : calvet ( 273824) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /home/www/calvetrealty.com/wp-content/plugins/um-recaptcha/templates/ |
Upload File : |
<?php
/**
* Template for the UM Google reCAPTCHA
*
* Called from the um_add_recaptcha_wp_lostpassword_form(), um_add_recaptcha_login_form() functions
* @version 2.3.2
*
* This template can be overridden by copying it to yourtheme/ultimate-member/um-recaptcha/captcha.php
* @var string $mode
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// phpcs:disable VariableAnalysis
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
?>
<div class="g-recaptcha" id="um-login-recaptcha" data-type="<?php /** @noinspection PhpUndefinedVariableInspection */ echo esc_attr( $type ); ?>" data-size="<?php /** @noinspection PhpUndefinedVariableInspection */ echo esc_attr( $size ); ?>" data-theme="<?php /** @noinspection PhpUndefinedVariableInspection */ echo esc_attr( $theme ); ?>" data-sitekey="<?php /** @noinspection PhpUndefinedVariableInspection */ echo esc_attr( $sitekey ); ?>"></div>
<script type="text/javascript">
<?php if ( 'invisible' === $size ) { ?>
var onSubmit = function( token ) {
var me = jQuery('#<?php echo esc_js( $mode ); ?>form');
me.attr('disabled', 'disabled');
me.submit();
};
var onloadCallback = function() {
grecaptcha.render( 'wp-submit', {
'sitekey': '<?php echo esc_js( $sitekey ); ?>',
'callback': onSubmit
});
};
function um_recaptcha_refresh() {
grecaptcha.reset();
onloadCallback();
}
<?php } else { ?>
var onloadCallback = function() {
jQuery('.g-recaptcha').each( function (i) {
grecaptcha.render( jQuery(this).attr('id'), {
'sitekey': jQuery(this).data('sitekey'),
'theme': jQuery(this).data('theme')
});
});
};
function um_recaptcha_refresh() {
jQuery('.g-recaptcha').html('');
grecaptcha.reset();
onloadCallback();
}
<?php } ?>
</script>