Files
Bookshelf/Old/bd-murphy-author/page-signup.php
bdm 38cdebd0c6 Track Bookshelf WordPress theme, plugins and specs
Initial import of the bdmurphy Bookshelf work: the bd-bookshelf theme,
bd-bookshelf-plugin, bd-bookshelfhelper and bd-simpleemail plugins, plus
the specification documents, mockups and release archives.
2026-09-28 06:24:25 -07:00

47 lines
1.9 KiB
PHP

<?php
/**
* Template Name: Sign Up
*/
get_header();
?>
<div class="signup-container">
<div class="signup-content">
<h1><?php esc_html_e('Sign Up for Updates', 'bd-murphy'); ?></h1>
<p class="signup-description"><?php esc_html_e('Stay updated with new releases, newsletters, and exclusive content.', 'bd-murphy'); ?></p>
<?php if (isset($_GET['success'])) : ?>
<div class="signup-success">
<p><?php esc_html_e('Thank you for signing up! Check your email to confirm your subscription.', 'bd-murphy'); ?></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-murphy'); ?> *</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-murphy'); ?></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-murphy'); ?></label>
</p>
<p class="form-submit">
<button type="submit" class="submit-btn"><?php esc_html_e('Subscribe', 'bd-murphy'); ?></button>
</p>
</form>
<?php endif; ?>
</div>
</div>
<?php
get_footer();