diff options
Diffstat (limited to '')
-rw-r--r-- | src/web/_views/_modal/about.php (renamed from src/web/_views/modal/about.php) | 0 | ||||
-rw-r--r-- | src/web/_views/_modal/new_post.php (renamed from src/web/_views/modal/new_post.php) | 25 | ||||
-rw-r--r-- | src/web/_views/_modal/register.php (renamed from src/web/_views/modal/register.php) | 2 |
3 files changed, 12 insertions, 15 deletions
diff --git a/src/web/_views/modal/about.php b/src/web/_views/_modal/about.php index 4bc7a4f..4bc7a4f 100644 --- a/src/web/_views/modal/about.php +++ b/src/web/_views/_modal/about.php diff --git a/src/web/_views/modal/new_post.php b/src/web/_views/_modal/new_post.php index 66e6561..aff19a5 100644 --- a/src/web/_views/modal/new_post.php +++ b/src/web/_views/_modal/new_post.php @@ -1,31 +1,28 @@ <?php /* Copyright (c) 2024 Freya Murphy */ ?> <?php /* vi: syntax=php */ ?> -<?php - $user = $this->main->user(); -?> <form id="new-post-form"> <div class="modal-content new-post-modal"> <div class="row"> - <?=pfp($user)?> + <?=pfp($session)?> <div class="col ml"> - <strong><?=$user['first_name'] . ' ' . $user['last_name']?></strong> - <span class="subtext"><?=ucfirst(lang('now'))?></span> + <strong><?=$session['first_name'] . ' ' . $session['last_name']?></strong> + <span class="subtext"><?=ucfirst(lang('now'))?></span> </div> </div> <textarea type="text" name="content" id="new-post-content" - placeholder="<?=ucfirst(lang('action_new_post_text', sub: [$user['first_name']]))?>" + placeholder="<?=ucfirst(lang('action_new_post_text', sub: [$session['first_name']]))?>" ></textarea> </div> <div class="modal-footer"> - <?=ilang('action_submit', - id: 'new-post-submit', - class: 'btn btn-submit btn-alt grow', - attrs: array('type' => 'submit'), - button: TRUE - )?> + <?=ilang('action_submit', + id: 'new-post-submit', + class: 'btn btn-submit btn-alt grow', + attrs: array('type' => 'submit'), + type: 'button', + )?> </div> </form> <script> @@ -44,7 +41,7 @@ const onPost = function(data) { let id = data[0].id; $.get({ - url: '/_util/post/post?id=' + id, + url: '/_post/post?id=' + id, success: getPost }); } diff --git a/src/web/_views/modal/register.php b/src/web/_views/_modal/register.php index 5c76fe9..2126d0d 100644 --- a/src/web/_views/modal/register.php +++ b/src/web/_views/_modal/register.php @@ -125,7 +125,7 @@ id: 'register-submit', class: 'btn btn-submit btn-alt grow', attrs: array('type' => 'submit'), - button: TRUE + type: 'button', )?> </div> </form> |