Lines Matching refs:Menu

41 use Fisharebest\Webtrees\Menu;  alias
159 …usort($menus, static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel…
176 …$menus[] = new Menu('<strong>' . I18N::translate('Family with spouse') . '</strong>', $family->url…
179 $menus[] = new Menu($spouse->fullName(), $spouse->url());
183 $menus[] = new Menu($child->fullName(), $child->url());
196 * @return Menu|null
198 public function menuChangeBlocks(Tree $tree): Menu|null
204 …return new Menu(I18N::translate('Customize this page'), route(UserPageEdit::class, ['tree' => $tre…
208 …return new Menu(I18N::translate('Customize this page'), route(TreePageEdit::class, ['tree' => $tre…
219 * @return Menu|null
221 public function menuControlPanel(Tree $tree): Menu|null
224 … return new Menu(I18N::translate('Control panel'), route(ControlPanel::class), 'menu-admin');
228 …return new Menu(I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name…
237 * @return Menu|null
239 public function menuLanguages(): Menu|null
241 $menu = new Menu(I18N::translate('Language'), '#', 'menu-language');
246 $menu->addSubmenu(new Menu($active_locale->endonym(), '#', $class, [
261 * @return Menu|null
263 public function menuLogin(): Menu|null
284 return new Menu(I18N::translate('Sign in'), $url, 'menu-login', ['rel' => 'nofollow']);
290 * @return Menu|null
292 public function menuLogout(): Menu|null
300 return new Menu(I18N::translate('Sign out'), '#', 'menu-logout', $parameters);
311 * @return Menu
313 public function menuMyAccount(Tree|null $tree): Menu
317 return new Menu(I18N::translate('My account'), $url, 'menu-myaccount');
325 * @return Menu|null
327 public function menuMyIndividualRecord(Tree $tree): Menu|null
332 … return new Menu(I18N::translate('My individual record'), $record->url(), 'menu-myrecord');
343 * @return Menu
345 public function menuMyPage(Tree $tree): Menu
347 …return new Menu(I18N::translate('My page'), route(UserPage::class, ['tree' => $tree->name()]), 'me…
355 * @return Menu|null
357 public function menuMyPages(Tree|null $tree): Menu|null
361 return new Menu(I18N::translate('My pages'), '#', 'menu-mymenu', [], array_filter([
382 * @return Menu|null
384 public function menuMyPedigree(Tree $tree): Menu|null
397 return new Menu(
413 * @return Menu|null
415 public function menuPendingChanges(Tree|null $tree): Menu|null
425 return new Menu(I18N::translate('Pending changes'), $url, 'menu-pending');
434 * @return Menu|null
436 public function menuThemes(): Menu|null
443 …$submenus = $themes->map(static function (ModuleThemeInterface $theme) use ($current_theme): Menu {
447 return new Menu($theme->title(), '#', $class, [
452 return new Menu(I18N::translate('Theme'), '#', 'menu-theme', [], $submenus->all());
475 ->map(static fn (ModuleMenuInterface $menu): Menu|null => $menu->getMenu($tree))
489 …return implode('', array_map(static fn (Menu $menu): string => view('components/menu-item', ['menu…