user()); ?>
'html', 'content' => esc(<<{$notificationsTitle} HTML), ], ]; if ($userPodcasts !== []) { foreach ($userPodcasts as $userPodcast) { $userPodcastTitle = esc($userPodcast->title); $unreadNotificationDotDisplayClass = in_array($userPodcast->actor_id, $actorIdsWithUnreadNotifications, true) ? '' : 'hidden'; $items[] = [ 'type' => 'link', 'title' => <<
{$userPodcastTitle}
HTML , 'uri' => route_to('notification-list', $userPodcast->id), ]; } } else { $noNotificationsText = lang('Notifications.no_notifications'); $items[] = [ 'type' => 'html', 'content' => esc(<<{$noNotificationsText} HTML), ]; } ?> user(), $userPodcast->id, 'interact-as')) { $checkMark = interact_as_actor_id() === $userPodcast->actor_id ? icon('check', 'ml-2 bg-accent-base text-accent-contrast rounded-full') : ''; $userPodcastTitle = esc($userPodcast->title); $interactButtons .= <<
{$userPodcastTitle}{$checkMark}
HTML; } } $interactAsText = lang('Common.choose_interact'); $interactAsRoute = route_to('interact-as-actor'); $csrfField = csrf_field(); $menuItems = [ [ 'type' => 'link', 'title' => lang('Navigation.account.my-account'), 'uri' => route_to('my-account'), ], [ 'type' => 'link', 'title' => lang('Navigation.account.change-password'), 'uri' => route_to('change-password'), ], [ 'type' => 'separator', ], [ 'type' => 'link', 'title' => lang('Navigation.account.logout'), 'uri' => route_to('logout'), ], ]; if ($userPodcasts !== []) { $menuItems = array_merge([ [ 'type' => 'html', 'content' => esc(<< {$interactAsText}
{$csrfField} {$interactButtons}
HTML), ], [ 'type' => 'separator', ], ], $menuItems); } ?>