24 lines
931 B
PHP
24 lines
931 B
PHP
<?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';
|