# convertkit/3.4.3/views/frontend/restrict-content/login.php

Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages, version 3.4.3. 27 lines.

- Page: https://pluginprobe.com/plugins/convertkit/3.4.3/code/views/frontend/restrict-content/login.php
- Raw: https://pluginprobe.com/plugins/convertkit/3.4.3/raw/views/frontend/restrict-content/login.php
- Modified: 2025-02-18T03:37:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/convertkit/3.4.3/code/views/frontend/restrict-content/login.php#L10-L20`.

```php
<?php
/**
 * Outputs the restricted content product email field
 * for the subscriber to enter their email address if
 * they've already subscribed to the ConvertKit resource.
 *
 * @package ConvertKit
 * @author ConvertKit
 */

// If scripts are disabled in the Plugin's settings, output the email login form now.
if ( $this->settings->scripts_disabled() ) {
	?>
	<p>
		<?php echo esc_html( $this->restrict_content_settings->get_by_key( 'email_text' ) ); ?>
	</p>
	<?php
	require 'login-email.php';
} else {
	// Just output the paragraph with a link to login, which will trigger the modal to display.
	?>
	<p>
		<?php echo esc_html( $this->restrict_content_settings->get_by_key( 'email_text' ) ); ?>
		<a href="#" class="convertkit-restrict-content-modal-open"><?php echo esc_attr( $this->restrict_content_settings->get_by_key( 'email_button_label' ) ); ?></a>
	</p>
	<?php
}
```
