Initial dev export (exclude uploads/runtime)
This commit is contained in:
23
modules/newsletter/views/site/unsubscribe.php
Normal file
23
modules/newsletter/views/site/unsubscribe.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
$pageTitle = $title ?? 'Unsubscribe';
|
||||
$email = $email ?? '';
|
||||
$status = $status ?? '';
|
||||
ob_start();
|
||||
?>
|
||||
<section class="card">
|
||||
<div class="badge">Newsletter</div>
|
||||
<h1 style="margin-top:12px; font-size:30px;">Unsubscribe</h1>
|
||||
<p style="color:var(--muted); margin-top:8px;">Remove your email from the newsletter list.</p>
|
||||
|
||||
<?php if ($status !== ''): ?>
|
||||
<div style="margin-top:12px; color:var(--muted);"><?= htmlspecialchars($status, ENT_QUOTES, 'UTF-8') ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="post" action="/newsletter/unsubscribe" style="margin-top:14px; display:grid; gap:10px;">
|
||||
<input class="input" name="email" value="<?= htmlspecialchars((string)$email, ENT_QUOTES, 'UTF-8') ?>" placeholder="you@example.com">
|
||||
<button type="submit" class="btn" style="width:max-content;">Unsubscribe</button>
|
||||
</form>
|
||||
</section>
|
||||
<?php
|
||||
$content = ob_get_clean();
|
||||
require __DIR__ . '/../../../views/site/layout.php';
|
||||
Reference in New Issue
Block a user