44 lines
1.5 KiB
PHP
44 lines
1.5 KiB
PHP
<?php
|
|
// Copyright 2026 Umbra Tools (umbratools.com)
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
/**
|
|
* Template Name: Unsubscribe
|
|
*
|
|
* @package BD_Murphy
|
|
*/
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<div class="unsubscribe-container">
|
|
<div class="unsubscribe-content">
|
|
<h1><?php esc_html_e('Unsubscribe', 'bd-bookshelf'); ?></h1>
|
|
|
|
<?php if (isset($_GET['success'])) : ?>
|
|
<div class="unsubscribe-success" role="alert">
|
|
<p><?php esc_html_e('You have been successfully unsubscribed.', 'bd-bookshelf'); ?></p>
|
|
</div>
|
|
<?php else : ?>
|
|
<p><?php esc_html_e('Enter your email address to unsubscribe from the mailing list.', 'bd-bookshelf'); ?></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-bookshelf'); ?></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-bookshelf'); ?></button>
|
|
</p>
|
|
</form>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|