From 944b6b0526032ad8c1b4a2612d6723bec75e0e4c Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 29 Mar 2024 22:29:56 -0400 Subject: start database (user and post), and initial barebones home page --- web/views/template/comment.php | 10 ++++++++ web/views/template/modal.php | 12 +++++++++ web/views/template/pfp.php | 6 +++++ web/views/template/post.php | 58 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 86 insertions(+) create mode 100644 web/views/template/comment.php create mode 100644 web/views/template/modal.php create mode 100644 web/views/template/pfp.php create mode 100644 web/views/template/post.php (limited to 'web/views/template') diff --git a/web/views/template/comment.php b/web/views/template/comment.php new file mode 100644 index 0000000..ef7a081 --- /dev/null +++ b/web/views/template/comment.php @@ -0,0 +1,10 @@ +
+ view('template/pfp', array('user' => $user))?> +
+
+ main->display_name($user)?> + main->display_date($comment['date'])?> +
+ +
+
diff --git a/web/views/template/modal.php b/web/views/template/modal.php new file mode 100644 index 0000000..4f47400 --- /dev/null +++ b/web/views/template/modal.php @@ -0,0 +1,12 @@ + diff --git a/web/views/template/pfp.php b/web/views/template/pfp.php new file mode 100644 index 0000000..842fc92 --- /dev/null +++ b/web/views/template/pfp.php @@ -0,0 +1,6 @@ + + + + diff --git a/web/views/template/post.php b/web/views/template/post.php new file mode 100644 index 0000000..d9c7c92 --- /dev/null +++ b/web/views/template/post.php @@ -0,0 +1,58 @@ +
+
+ view('template/pfp', array('user' => $user))?> +
+ + +
+
+

+ +

+main->user(); +?> + +
+
+ + +
+
+ +
+ +
+ comments(); + ilang('action_load_comments', + class: 'action-load-comments btn btn-line mt', + attrs: array('postId' => $post['id']) + ); + ?> +
+ +
+ view('template/pfp', array('user' => $user))?> +
+ + +
+
+ +
-- cgit v1.2.3-freya