1 2 3 4 5 6 7 8 9
<?php if ($user) { _view("nav_logged_in", [ "user" => $user, "isViewingOwnProfile" => $isViewingOwnProfile ?? false, ]); } else { _view("nav_guest"); }