Files
Umbra-Bookshelf/theme/page-unsubscribe.php
bdm 5b5303186a Establish Umbra-Bookshelf as the successor repository
Continues the Bookshelf history. The three plugins tracked there are
consolidated into umbra-bookshelf/ and this repository becomes the canonical
home for the plugin and the theme.

  bd-bookshelf/  ->  theme/     separate artifact, name unchanged
  (root specs)   ->  umbra-bookshelf/spec/  aligned to Umbra Bookshelf
  old plugin zips -> archive/pre-umbra-releases/

Adds a repository README and drops the Bookshelf closure notice.
2026-10-18 19:56:26 -07:00

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();