diff options
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 |
