summaryrefslogtreecommitdiff
path: root/web/views/modal
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-03-29 22:29:56 -0400
committerFreya Murphy <freya@freyacat.org>2024-03-29 22:29:56 -0400
commit944b6b0526032ad8c1b4a2612d6723bec75e0e4c (patch)
treed3da5584df33a7878c087622b4fc2ec2883cf880 /web/views/modal
downloadxssbook2-944b6b0526032ad8c1b4a2612d6723bec75e0e4c.tar.gz
xssbook2-944b6b0526032ad8c1b4a2612d6723bec75e0e4c.tar.bz2
xssbook2-944b6b0526032ad8c1b4a2612d6723bec75e0e4c.zip
start database (user and post), and initial barebones home page
Diffstat (limited to '')
-rw-r--r--web/views/modal/new-post.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/web/views/modal/new-post.php b/web/views/modal/new-post.php
new file mode 100644
index 0000000..7215862
--- /dev/null
+++ b/web/views/modal/new-post.php
@@ -0,0 +1,28 @@
+<?php
+ $user = $this->main->user();
+?>
+<form>
+<div class="modal-content new-post-modal">
+ <div class="row">
+ <?php $this->view('template/pfp', array('user' => $user))?>
+ <div class="col ml">
+ <strong><?=$user['first_name'] . ' ' . $user['last_name']?></strong>
+ <span class="dim"><?=lang('now')?></span>
+ </div>
+ </div>
+ <textarea
+ type="text"
+ name="text"
+ id="text"
+ placeholder="<?=lang('action_new_post_text', sub: [$user['first_name']])?>"
+ ></textarea>
+</div>
+<div class="modal-footer">
+ <?=ilang('action_submit',
+ id: 'new-post-submit',
+ class: 'btn-action',
+ attrs: array('type' => 'submit'),
+ button: TRUE
+ )?>
+</div>
+</form>