Server IP : 192.64.118.117 / Your IP : 3.144.252.197 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/mcprintingandpromotions.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>