Add newsletter management functionality

This commit is contained in:
Alex Cabal 2022-03-20 17:40:19 -05:00
parent 90ee0a93c9
commit b0197d189a
57 changed files with 1017 additions and 143 deletions

22
templates/Error.php Normal file
View file

@ -0,0 +1,22 @@
<?
if(!$exception){
return;
}
$exceptions = [];
if($exception instanceof Exceptions\ValidationException){
$exceptions = $exception->Exceptions;
}
else{
$exceptions[] = $exception;
}
?>
<ul class="error">
<? foreach($exceptions as $ex){ ?>
<li>
<p><? $message = $ex->getMessage(); if($message == ''){ $message = 'An error occurred.'; } ?><?= Formatter::ToPlainText($message) ?></p>
</li>
<? } ?>
</ul>