From e0588a6113ff6b3c1000fa6c82629f81fb5e05b5 Mon Sep 17 00:00:00 2001 From: winter Date: Sat, 15 Mar 2025 18:53:29 +0000 Subject: [refactor] move some templates to subdirs --- templates/actor_profile_page.php | 52 ---------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 templates/actor_profile_page.php (limited to 'templates/actor_profile_page.php') diff --git a/templates/actor_profile_page.php b/templates/actor_profile_page.php deleted file mode 100644 index 1b2981d..0000000 --- a/templates/actor_profile_page.php +++ /dev/null @@ -1,52 +0,0 @@ - "$actor->displayName - @" . $actor->getFullHandle(), - 'renderTitleHeading' => false, - 'ogTitle' => $actor->displayName, - 'ogDesc' => $actor->bio, - 'ogImage' => $actor->avatar ?? path_to_uri('/static/default-avatar.png'), - 'ogType' => 'profile', - 'ogHandle' => '@' . $actor->getFullHandle(true), - 'headLinks' => ($actorUser != null && (new UserSettings($actorUser))->getBool('profile.rssEnabled')) ? [ - [ - 'rel' => 'alternate', - 'type' => 'application/rss+xml', - 'href' => "/actor/$actor->id/feed/$lang/feed.rss", - 'title' => __('user.profile.feed.rss') - ], - [ - 'rel' => 'alternate', - 'type' => 'application/atom+xml', - 'href' => "/actor/$actor->id/feed/$lang/feed.atom", - 'title' => __('user.profile.feed.atom') - ] - ] : [] -], function () use ($actor) { - $user = UserAccount::findByCurrentSession(); - - call_template('actor_profile', ['actor' => $actor]); - echo '
'; - $notes = Note::findAllWithAuthor($actor, 20); - if (count($notes) == 0) { - call_template('placeholder_text', ['message' => __('user.notes.placeholder')]); - } elseif ($user != null && $user->actor->blocks($actor)) { - call_template('placeholder_text', ['message' => __('user.profile.notesHidden')]); - } else { - foreach ($notes as $n) { - if ($n->isViewableBy($user)) - call_template('note', ['note' => $n]); - } - $countNotShown = Note::countWithAuthor($actor) - count($notes); - if ($countNotShown >= 0) { - call_template('placeholder_text', ['count' => $countNotShown]); - } - } -}); \ No newline at end of file -- cgit v1.3