diff options
Diffstat (limited to 'templates/skeleton.php')
| -rw-r--r-- | templates/skeleton.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/skeleton.php b/templates/skeleton.php index 6eb6bd1..fced6b8 100644 --- a/templates/skeleton.php +++ b/templates/skeleton.php @@ -1,4 +1,6 @@ <?php + +use Digitigrade\Model\FollowRelation; $user = Digitigrade\Model\UserAccount::findByCurrentSession(); ?> <!DOCTYPE html> @@ -44,6 +46,15 @@ $user = Digitigrade\Model\UserAccount::findByCurrentSession(); <?php if ($user != null) { call_template('write_note_form'); + call_template('side_navigation', ['links' => [ + [ + 'href' => '/followrequests', + 'icon' => 'person_add', + 'label' => __('navigation.followRequests'), + 'unreadCount' => FollowRelation::countWhere("object = ? AND status = 'pending'", [$user->actor->id]) + ], + ['href' => '/logout', 'icon' => 'logout', 'label' => __('navigation.logout')] + ]]); } ?> </section> |
