Files
wyczarujprezent.pl/modules/leoelements/includes/admin-templates/beta-tester.php
2024-10-28 22:14:22 +01:00

60 lines
2.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* 2007-2022 Apollotheme
*
* NOTICE OF LICENSE
*
* LeoElements is module help you can build content for your shop
*
* DISCLAIMER
*
* @author Apollotheme <apollotheme@gmail.com>
* @copyright 2007-2022 Apollotheme
* @license http://apollotheme.com - prestashop template provider
*/
namespace LeoElements;
use LeoElements\Leo_Helper;
if ( ! defined( '_PS_VERSION_' ) ) {
exit; // Exit if accessed directly
}
$user = wp_get_current_user();
$ajax = Plugin::$instance->common->get_component( 'ajax' );
$beta_tester_email = $user->user_email;
/**
* Print beta tester dialog.
*
* Display a dialog box to suggest the user to opt-in to the beta testers newsletter.
*
* Fired by `admin_footer` filter.
*
* @since 2.6.0
* @access public
*/
?>
<script type="text/template" id="tmpl-elementor-beta-tester">
<form id="elementor-beta-tester-form" method="post">
<input type="hidden" name="_nonce" value="<?php echo $ajax->create_nonce(); ?>">
<input type="hidden" name="action" value="elementor_beta_tester_signup" />
<div id="elementor-beta-tester-form__caption"><?php echo Leo_Helper::__( 'Get Beta Updates', 'elementor' ); ?></div>
<div id="elementor-beta-tester-form__description"><?php echo Leo_Helper::__( 'As a beta tester, youll receive an update that includes a testing version of Elementor and its content directly to your Email', 'elementor' ); ?></div>
<div id="elementor-beta-tester-form__input-wrapper">
<input id="elementor-beta-tester-form__email" name="beta_tester_email" type="email" placeholder="<?php echo Leo_Helper::__( 'Your Email', 'elementor' ); ?>" required value="<?php echo $beta_tester_email; ?>" />
<button id="elementor-beta-tester-form__submit" class="elementor-button elementor-button-success">
<span class="elementor-state-icon">
<i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
</span>
<?php echo Leo_Helper::__( 'Sign Up', 'elementor' ); ?>
</button>
</div>
<div id="elementor-beta-tester-form__terms">
<?php echo sprintf( Leo_Helper::__( '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 ); ?>
</div>
</form>
</script>