| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | - exit; // Exit if accessed directly. | |
| 5 | + exit; // Exit if accessed directly | |
| 6 | 6 | } |
| 7 | 7 | $user = wp_get_current_user(); |
| 8 | 8 | |
| 9 | 9 | $ajax = Plugin::$instance->common->get_component( 'ajax' ); |
| @@ -28,10 +28,10 @@ | ||
| 28 | 28 | <input type="hidden" name="action" value="elementor_beta_tester_signup" /> |
| 29 | 29 | <div id="elementor-beta-tester-form__caption"><?php echo esc_html__( 'Get Beta Updates', 'elementor' ); ?></div> |
| 30 | 30 | <div id="elementor-beta-tester-form__description"><?php echo esc_html__( 'As a beta tester, you’ll receive an update that includes a testing version of Elementor and its content directly to your Email', 'elementor' ); ?></div> |
| 31 | 31 | <div id="elementor-beta-tester-form__input-wrapper"> |
| 32 | - <input id="elementor-beta-tester-form__email" name="beta_tester_email" type="email" placeholder="<?php echo esc_attr__( 'Your Email', 'elementor' ); ?>" required value="<?php echo esc_attr( $beta_tester_email ); ?>" /> | |
| 33 | - <button id="elementor-beta-tester-form__submit" class="elementor-button"> | |
| 32 | + <input id="elementor-beta-tester-form__email" name="beta_tester_email" type="email" placeholder="<?php echo esc_html__( 'Your Email', 'elementor' ); ?>" required value="<?php echo esc_html( $beta_tester_email ); ?>" /> | |
| 33 | + <button id="elementor-beta-tester-form__submit" class="elementor-button elementor-button-success"> | |
| 34 | 34 | <span class="elementor-state-icon"> |
| 35 | 35 | <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> |
| 36 | 36 | </span> |
| 37 | 37 | <?php echo esc_html__( 'Sign Up', 'elementor' ); ?> |
| @@ -37,23 +37,9 @@ | ||
| 37 | 37 | <?php echo esc_html__( 'Sign Up', 'elementor' ); ?> |
| 38 | 38 | </button> |
| 39 | 39 | </div> |
| 40 | 40 | <div id="elementor-beta-tester-form__terms"> |
| 41 | - <?php | |
| 42 | - printf( | |
| 43 | - /* translators: 1. "Terms of service" link, 2. "Privacy policy" link */ | |
| 44 | - esc_html__( 'By clicking Sign Up, you agree to Elementor\'s %1$s and %2$s', 'elementor' ), | |
| 45 | - sprintf( | |
| 46 | - '<a href="%1$s" target="_blank">%2$s</a>', | |
| 47 | - esc_url( Beta_Testers::NEWSLETTER_TERMS_URL ), | |
| 48 | - esc_html__( 'Terms of Service', 'elementor' ) | |
| 49 | - ), | |
| 50 | - sprintf( | |
| 51 | - '<a href="%1$s" target="_blank">%2$s</a>', | |
| 52 | - esc_url( Beta_Testers::NEWSLETTER_PRIVACY_URL ), | |
| 53 | - esc_html__( 'Privacy Policy', 'elementor' ) | |
| 54 | - ) | |
| 55 | - ) | |
| 56 | - ?> | |
| 41 | + <?php // PHPCS - The content is escaped inside the sprintf. ?> | |
| 42 | + <?php echo sprintf( esc_html__( 'By clicking Sign Up, you agree to Elementor\'s <a href="%1$s">Terms of Service</a> and <a href="%2$s">Privacy Policy</a>', 'elementor' ), Beta_Testers::NEWSLETTER_TERMS_URL, Beta_Testers::NEWSLETTER_PRIVACY_URL ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 57 | 43 | </div> |
| 58 | 44 | </form> |
| 59 | 45 | </script> |