podcasts as $userPodcast) { $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}
CODE_SAMPLE; } $interactAsText = lang('Admin.choose_interact'); $route = 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 (user()->podcasts !== []) { $menuItems = array_merge([ [ 'type' => 'html', 'content' => esc(<< {$interactAsText}
{$csrfField} {$interactButtons}
CODE_SAMPLE), ], [ 'type' => 'separator', ], ], $menuItems); } ?>