Files
Bookshelf/Old/bd-murphy-author/page-unsubscribe.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

38 lines
1.3 KiB
PHP

<?php
/**
* Template Name: Unsubscribe
*/
get_header();
?>
<div class="unsubscribe-container">
<div class="unsubscribe-content">
<h1><?php esc_html_e('Unsubscribe', 'bd-murphy'); ?></h1>
<?php if (isset($_GET['success'])) : ?>
<div class="unsubscribe-success">
<p><?php esc_html_e('You have been successfully unsubscribed.', 'bd-murphy'); ?></p>
</div>
<?php else : ?>
<p><?php esc_html_e('Enter your email address to unsubscribe from the mailing list.', 'bd-murphy'); ?></p>
<form id="unsubscribe-form" class="unsubscribe-form" method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
<?php wp_nonce_field('bdm_unsubscribe', 'bdm_unsubscribe_nonce'); ?>
<input type="hidden" name="action" value="bdm_unsubscribe_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-submit">
<button type="submit" class="submit-btn"><?php esc_html_e('Unsubscribe', 'bd-murphy'); ?></button>
</p>
</form>
<?php endif; ?>
</div>
</div>
<?php
get_footer();