| @@ -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' ); |
| @@ -22,38 +22,22 @@ | ||
| 22 | 22 | */ |
| 23 | 23 | ?> |
| 24 | 24 | <script type="text/template" id="tmpl-elementor-beta-tester"> |
| 25 | 25 | <form id="elementor-beta-tester-form" method="post"> |
| 26 | - <?php // PHPCS - This is a nonce, doesn't need to be escaped. ?> | |
| 27 | - <input type="hidden" name="_nonce" value="<?php echo $ajax->create_nonce(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"> | |
| 26 | + <input type="hidden" name="_nonce" value="<?php echo $ajax->create_nonce(); ?>"> | |
| 28 | 27 | <input type="hidden" name="action" value="elementor_beta_tester_signup" /> |
| 29 | - <div id="elementor-beta-tester-form__caption"><?php echo esc_html__( 'Get Beta Updates', 'elementor' ); ?></div> | |
| 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> | |
| 28 | + <div id="elementor-beta-tester-form__caption"><?php echo __( 'Get Beta Updates', 'elementor' ); ?></div> | |
| 29 | + <div id="elementor-beta-tester-form__description"><?php echo __( '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 | 30 | <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"> | |
| 31 | + <input id="elementor-beta-tester-form__email" name="beta_tester_email" type="email" placeholder="<?php echo __( 'Your Email', 'elementor' ); ?>" required value="<?php echo $beta_tester_email; ?>" /> | |
| 32 | + <button id="elementor-beta-tester-form__submit" class="elementor-button elementor-button-success"> | |
| 34 | 33 | <span class="elementor-state-icon"> |
| 35 | 34 | <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> |
| 36 | 35 | </span> |
| 37 | - <?php echo esc_html__( 'Sign Up', 'elementor' ); ?> | |
| 36 | + <?php echo __( 'Sign Up', 'elementor' ); ?> | |
| 38 | 37 | </button> |
| 39 | 38 | </div> |
| 40 | 39 | <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 | - ?> | |
| 40 | + <?php echo sprintf( __( '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 ); ?> | |
| 57 | 41 | </div> |
| 58 | 42 | </form> |
| 59 | 43 | </script> |