diff options
| author | winter Sparkles | 2026-07-02 19:07:41 +0100 |
|---|---|---|
| committer | winter Sparkles | 2026-07-02 19:07:41 +0100 |
| commit | e14f4b88e77b380afa8e40e1e66f48772515e95c (patch) | |
| tree | 9992c008bf21315dc880b10c38a387c55cbfcc24 /templates | |
| parent | d9bf17761d6b770e8e56c642a8fa0f8e460a662f (diff) | |
add IDN support in various ui places
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/actor/profile.php | 2 | ||||
| -rw-r--r-- | templates/actor/profile_editable.php | 4 | ||||
| -rw-r--r-- | templates/actor/profile_page.php | 4 | ||||
| -rw-r--r-- | templates/note/note.php | 2 | ||||
| -rw-r--r-- | templates/thread_page.php | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/templates/actor/profile.php b/templates/actor/profile.php index 0029e8e..aa403a6 100644 --- a/templates/actor/profile.php +++ b/templates/actor/profile.php @@ -21,7 +21,7 @@ $actorUser = UserAccount::findByLinkedActor($actor); <div> <div class="displayName"><?= htmlspecialchars($actor->displayName) ?></div> <div class="pronouns"><?= htmlspecialchars($actor->pronouns) ?></div> - <div class="handle">@<?= $actor->getFullHandle() ?></div> + <div class="handle">@<?= $actor->getFullHandle($convertIdn = true) ?></div> <div class="joinedDate"><?= sprintf(__('user.profile.createdAt'), format_datetime($actor->created)) ?></div> <?php if ($actor->automated): ?> <div class="inlinePill"> diff --git a/templates/actor/profile_editable.php b/templates/actor/profile_editable.php index f6a0fc4..bb5f72c 100644 --- a/templates/actor/profile_editable.php +++ b/templates/actor/profile_editable.php @@ -15,7 +15,7 @@ value="<?= htmlspecialchars($actor->pronouns) ?>"> </div> </div> - <div class="handle">@<?= $actor->getFullHandle() ?></div> + <div class="handle">@<?= $actor->getFullHandle($convertIdn = true) ?></div> <div class="joinedDate"><?= sprintf(__('user.profile.createdAt'), format_datetime($actor->created)) ?></div> </div> </div> @@ -38,4 +38,4 @@ </button> <button class="primary"><?= __('form.saveChanges') ?></button> </div> -</form>
\ No newline at end of file +</form> diff --git a/templates/actor/profile_page.php b/templates/actor/profile_page.php index f9b688c..53bd47d 100644 --- a/templates/actor/profile_page.php +++ b/templates/actor/profile_page.php @@ -8,7 +8,7 @@ $lang = get_ui_language(); $actorUser = UserAccount::findByLinkedActor($actor); call_template('skeleton', [ - 'pageTitle' => "$actor->displayName - @" . $actor->getFullHandle(), + 'pageTitle' => "$actor->displayName - @" . $actor->getFullHandle($convertIdn = true), 'renderTitleHeading' => false, 'ogTitle' => $actor->displayName, 'ogDesc' => $actor->bio, @@ -58,4 +58,4 @@ call_template('skeleton', [ call_template('placeholder_text', ['count' => $countNotShown]); } } -});
\ No newline at end of file +}); diff --git a/templates/note/note.php b/templates/note/note.php index ddc2bac..331a1ea 100644 --- a/templates/note/note.php +++ b/templates/note/note.php @@ -156,4 +156,4 @@ if ($user != null) { <?php call_template('note/reply_form', ['note' => $note]); ?> </div> -</article>
\ No newline at end of file +</article> diff --git a/templates/thread_page.php b/templates/thread_page.php index da7c556..f36930c 100644 --- a/templates/thread_page.php +++ b/templates/thread_page.php @@ -3,7 +3,7 @@ use Digitigrade\Model\Note; use Digitigrade\Model\UserAccount; call_template('skeleton', [ - 'pageTitle' => '"' . $note->plainContent . '" - @' . $note->author->getFullHandle(), + 'pageTitle' => '"' . $note->plainContent . '" - @' . $note->author->getFullHandle($convertIdn = true), 'renderTitleHeading' => false, 'ogTitle' => $note->author->displayName, 'ogDesc' => $note->plainContent, @@ -21,4 +21,4 @@ call_template('skeleton', [ call_template('note/note', ['note' => $n, 'selected' => $n == $targetNote]); } } -});
\ No newline at end of file +}); |
