55 lines
2.0 KiB
PHP
55 lines
2.0 KiB
PHP
<?php
|
|
// Copyright 2026 Umbra Tools (umbratools.com)
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
/**
|
|
* Template Name: Sign Up
|
|
*
|
|
* @package BD_Murphy
|
|
*/
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<div class="signup-container">
|
|
<div class="signup-content">
|
|
<h1><?php esc_html_e('Sign Up for Updates', 'bd-bookshelf'); ?></h1>
|
|
<p class="signup-description">
|
|
<?php esc_html_e('Stay updated with new releases, newsletters, and exclusive content.', 'bd-bookshelf'); ?>
|
|
</p>
|
|
|
|
<?php if (isset($_GET['success'])) : ?>
|
|
<div class="signup-success" role="alert">
|
|
<p><?php esc_html_e('Thank you for signing up! Check your email to confirm your subscription.', 'bd-bookshelf'); ?></p>
|
|
</div>
|
|
<?php else : ?>
|
|
<form id="signup-form" class="signup-form" method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
|
|
<?php wp_nonce_field('bdm_signup', 'bdm_signup_nonce'); ?>
|
|
<input type="hidden" name="action" value="bdm_signup_submit">
|
|
|
|
<p class="form-field">
|
|
<label for="email"><?php esc_html_e('Email Address', 'bd-bookshelf'); ?> *</label>
|
|
<input type="email" id="email" name="email" required>
|
|
</p>
|
|
|
|
<p class="form-field">
|
|
<label for="first_name"><?php esc_html_e('First Name', 'bd-bookshelf'); ?></label>
|
|
<input type="text" id="first_name" name="first_name">
|
|
</p>
|
|
|
|
<p class="form-field checkbox-field">
|
|
<input type="checkbox" id="opt_in" name="opt_in" value="1" required>
|
|
<label for="opt_in"><?php esc_html_e('I agree to receive email updates from the author.', 'bd-bookshelf'); ?></label>
|
|
</p>
|
|
|
|
<p class="form-submit">
|
|
<button type="submit" class="submit-btn"><?php esc_html_e('Subscribe', 'bd-bookshelf'); ?></button>
|
|
</p>
|
|
</form>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|