HEX
Server: LiteSpeed
System: Linux dune179.sitesanctuary.org 5.14.0-427.40.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 16 07:08:17 EDT 2024 x86_64
User: h278792 (1197)
PHP: 8.1.29
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/h278792/www/wp-content/plugins/learnpress/templates/checkout/guest-checkout.php
<?php
/**
 * Template for displaying user email field which enable checkout as guest.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/checkout/guest-email.php.
 *
 * @author   ThimPress
 * @package  Learnpress/Templates
 * @version  4.0.0
 */

defined( 'ABSPATH' ) || exit();

$checkout  = LP()->checkout();
$is_exists = $checkout->checkout_email_exists();
?>

<input type="radio" id="checkout-account-switch-to-guest" name="checkout-account-switch-form" value="guest" checked="checked"/>

<div id="checkout-account-guest" class="lp-checkout-block <?php echo $is_exists ? 'email-exists' : ''; ?>">
	<h4><?php esc_html_e( 'به عنوان مهمان', 'learnpress' ); ?></h4>
	<ul class="lp-form-fields">
		<li class="form-field">
			<input size="30" placeholder="<?php esc_attr_e( 'ایمیل خود را وارد کنید...', 'learnpress' ); ?>" type="text" id="guest_email" name="guest_email" autocomplete="off">
			<div class="lp-guest-checkout-notice">
				<?php esc_html_e( 'پس از انجام موفقیت آمیز پرداخت، کلید سفارش فعال سازی دوره به ایمیل شما ارسال می شود.', 'learnpress' ); ?>
			</div>

			<?php
			$signin = $signup = $divider = '';

			if ( LP()->checkout()->is_enable_login() ) {
				$signin = sprintf( '<a href="javascript:void(0)"><label for="checkout-account-switch-to-login">%s</label></a>', esc_html( _x( 'ورود', 'checkout sign in link', 'learnpress' ) ) );
			}

			if ( LP()->checkout()->is_enable_login() && LP()->checkout()->is_enable_register() ) {
				$divider = ',';
			}

			if ( LP()->checkout()->is_enable_register() ) {
				$signup = sprintf( '<a href="javascript:void(0)"><label for="checkout-account-switch-to-register">%s</label></a>', esc_html( _x( 'ثبت نام', 'checkout sign up link', 'learnpress' ) ) );
			}
			?>

			<?php if ( LP()->checkout()->is_enable_login() || LP()->checkout()->is_enable_register() ) : ?>
				<div class="lp-guest-switch-login"><?php echo sprintf( __( 'یا شما می توانید %1$s%2$s %3$s اکنون.', 'learnpress' ), $signin, $divider, $signup ); ?></div>
			<?php endif; ?>
		</li>
	</ul>
	<input type="hidden" name="learn-press-checkout-nonce" value="<?php echo esc_attr( wp_create_nonce( 'learn-press-guest-checkout' ) ); ?>"/>
</div>