diff options
| author | winter | 2025-01-19 22:17:12 +0000 |
|---|---|---|
| committer | winter | 2025-01-19 22:17:12 +0000 |
| commit | 8c6dad8c48d5d730b102d9de0079fee9752b0d35 (patch) | |
| tree | 2cfe07a8c7958f78c767fd0d1444c3f8fef70511 /templates/notification.php | |
| parent | 2d9bd87fb1c565ee161f93219ce2533e8dbffe06 (diff) | |
implement notifications
Diffstat (limited to 'templates/notification.php')
| -rw-r--r-- | templates/notification.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/notification.php b/templates/notification.php new file mode 100644 index 0000000..a010ff9 --- /dev/null +++ b/templates/notification.php @@ -0,0 +1,23 @@ +<div class="notification"> + <div class="notifImage"> + <?php if ($imageUrl != null): ?> + <?php if ($imageLink != null): ?> + <a href="<?= $imageLink ?>"> + <?php endif; ?> + <img src="<?= $imageUrl ?>"> + <?php if ($imageLink != null): ?> + </a> + <?php endif; ?> + <?php endif; ?> + </div> + <div class="notifContent"> + <?php if ($titleLink != null): ?> + <a href="<?= $titleLink ?>"> + <?php endif; ?> + <span class="title"><?= htmlspecialchars($title) ?></span> + <?php if ($titleLink != null): ?> + </a> + <?php endif; ?> + <span class="body"><?= htmlspecialchars($body) ?></span> + </div> +</div>
\ No newline at end of file |
