📈 Add mailing list subscription button (#92)
Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit was merged in pull request #92.
This commit is contained in:
@@ -1,11 +1,22 @@
|
|||||||
<footer class="footer mt-auto py-3">
|
<footer class="footer mt-auto py-3">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<span class="text-muted">
|
<span class="pull-left text-muted">
|
||||||
<?php
|
<?php
|
||||||
echo( $_ENV['APP_NAME'] . " v" . $_ENV['APP_VERSION']);
|
echo( $_ENV['APP_NAME'] . " v" . $_ENV['APP_VERSION']);
|
||||||
if ($_ENV['APP_NAME'] != "FHeD") {echo(", powered by FHeD");};
|
if ($_ENV['APP_NAME'] != "FHeD") {echo(", powered by FHeD");};
|
||||||
?>
|
?>
|
||||||
</span>
|
</span>
|
||||||
|
<?php if (is_signed_in()) { ?>
|
||||||
|
<span class="pull-right text-muted">
|
||||||
|
<form method="post" action="https://mailer.tainton.uk/subscription/form" class="listmonk-form">
|
||||||
|
<div class="form-group">
|
||||||
|
<input hidden type="text" class="form-control" id="name" name="name" value="<?php echo($_SESSION['full_name']); ?>">
|
||||||
|
<input hidden type="text" class="form-control" id="email" name="email" value="<?php echo($_SESSION['email']); ?>">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-secondary">Subscribe</button>
|
||||||
|
</form>
|
||||||
|
</span>
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user