From 1f04b83be337cc91a3fabcf4e574e2306f3d2eaa Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 30 Mar 2024 12:14:42 -0400 Subject: refactor --- web/views/template/comment.php | 2 ++ web/views/template/error.php | 12 ++++++++++++ web/views/template/modal.php | 2 ++ web/views/template/pfp.php | 2 ++ web/views/template/post.php | 2 ++ web/views/template/toast.php | 19 +++++++++++++++++++ 6 files changed, 39 insertions(+) create mode 100644 web/views/template/error.php create mode 100644 web/views/template/toast.php (limited to 'web/views/template') diff --git a/web/views/template/comment.php b/web/views/template/comment.php index ef7a081..943f232 100644 --- a/web/views/template/comment.php +++ b/web/views/template/comment.php @@ -1,3 +1,5 @@ + +
view('template/pfp', array('user' => $user))?>
diff --git a/web/views/template/error.php b/web/views/template/error.php new file mode 100644 index 0000000..2e02cb1 --- /dev/null +++ b/web/views/template/error.php @@ -0,0 +1,12 @@ + + + + <?=$code . ' - ' . $msg?> + + +
+

+
+
+ + diff --git a/web/views/template/modal.php b/web/views/template/modal.php index 4f47400..e3ce6fe 100644 --- a/web/views/template/modal.php +++ b/web/views/template/modal.php @@ -1,3 +1,5 @@ + +