Home
last modified time | relevance | path

Searched refs:Menu (Results 1 – 25 of 113) sorted by relevance

12345

/webtrees/app/Module/
H A DModuleThemeTrait.php41 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
[all …]
H A DSearchMenuModule.php28 use Fisharebest\Webtrees\Menu; alias
72 * @return Menu|null
74 public function getMenu(Tree $tree): Menu|null
85 … return new Menu(I18N::translate('Search'), '#', 'menu-search', ['rel' => 'nofollow'], $submenu);
91 * @return Menu
93 protected function menuSearchGeneral(Tree $tree): Menu
95 …return new Menu(I18N::translate('General search'), route(SearchGeneralPage::class, ['tree' => $tre…
101 * @return Menu
103 protected function menuSearchPhonetic(Tree $tree): Menu
108 …return new Menu(I18N::translate('Phonetic search'), $url, 'menu-search-soundex', ['rel' => 'nofoll…
[all …]
H A DCalendarMenuModule.php24 use Fisharebest\Webtrees\Menu; alias
64 public function getMenu(Tree $tree): Menu|null
72 …return new Menu(I18N::translate('Calendar'), '#', 'menu-calendar', ['rel' => 'nofollow'], $submenu…
78 * @return Menu
80 protected function calendarDayMenu(Tree $tree): Menu
82 return new Menu(I18N::translate('Day'), route(CalendarPage::class, [
91 * @return Menu
93 protected function calendarMonthMenu(Tree $tree): Menu
95 return new Menu(I18N::translate('Month'), route(CalendarPage::class, [
104 * @return Menu
[all …]
H A DListsMenuModule.php24 use Fisharebest\Webtrees\Menu; alias
77 * @return Menu|null
79 public function getMenu(Tree $tree): Menu|null
82 ->map(static fn (ModuleListInterface $module): Menu|null => $module->listMenu($tree))
84 … ->sort(static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel()));
90 return new Menu(I18N::translate('Lists'), '#', 'menu-list', [], $submenus->all());
H A DReportsMenuModule.php24 use Fisharebest\Webtrees\Menu; alias
80 * @return Menu|null
82 public function getMenu(Tree $tree): Menu|null
88 … ->map(static fn (ModuleReportInterface $module): Menu => $module->getReportMenu($individual))
89 … ->sort(static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel()));
95 …return new Menu(I18N::translate('Reports'), '#', 'menu-report', ['rel' => 'nofollow'], $submenus->…
H A DModuleChartTrait.php23 use Fisharebest\Webtrees\Menu; alias
49 * @return Menu|null
51 public function chartBoxMenu(Individual $individual): Menu|null
61 * @return Menu
63 public function chartMenu(Individual $individual): Menu
65 return new Menu(
H A DTreesMenuModule.php24 use Fisharebest\Webtrees\Menu; alias
81 * @return Menu|null
83 public function getMenu(Tree $tree): Menu|null
88 …return new Menu(I18N::translate('Family tree'), route(TreePage::class, ['tree' => $tree->name()]),…
98 …$submenus[] = new Menu(e($menu_tree->title()), route(TreePage::class, ['tree' => $menu_tree->name(…
101 return new Menu(I18N::translate('Family trees'), '#', 'menu-tree', [], $submenus);
H A DChartsMenuModule.php24 use Fisharebest\Webtrees\Menu; alias
78 public function getMenu(Tree $tree): Menu|null
84 ->map(static fn (ModuleChartInterface $module): Menu => $module->chartMenu($individual))
85 … ->sort(static fn (Menu $x, Menu $y): int => I18N::comparator()($x->getLabel(), $y->getLabel()));
91 …return new Menu(I18N::translate('Charts'), '#', 'menu-chart', ['rel' => 'nofollow'], $submenus->al…
H A DColorsTheme.php24 use Fisharebest\Webtrees\Menu; alias
116 * @return Menu
118 protected function menuPalette(): Menu
121 $menu = new Menu(I18N::translate('Palette'), '#', 'menu-color');
128 $submenu = new Menu(
H A DModuleChartInterface.php23 use Fisharebest\Webtrees\Menu; alias
33 public function chartBoxMenu(Individual $individual): Menu|null;
40 * @return Menu
42 public function chartMenu(Individual $individual): Menu;
H A DModuleReportTrait.php24 use Fisharebest\Webtrees\Menu; alias
60 * @return Menu
62 public function getReportMenu(Individual $individual): Menu
64 return new Menu(
H A DFamilyGroupReportModule.php26 use Fisharebest\Webtrees\Menu; alias
59 * @return Menu
61 public function getReportMenu(Individual $individual): Menu
66 return new Menu(
H A DModuleListTrait.php22 use Fisharebest\Webtrees\Menu; alias
49 * @return Menu|null
51 public function listMenu(Tree $tree): Menu|null
57 return new Menu(
H A DRelationshipsChartModule.php32 use Fisharebest\Webtrees\Menu; alias
127 * @return Menu|null
129 public function chartBoxMenu(Individual $individual): Menu|null
139 * @return Menu
141 public function chartMenu(Individual $individual): Menu
149 return new Menu(
158 return new Menu(
H A DModuleReportInterface.php23 use Fisharebest\Webtrees\Menu; alias
42 * @return Menu
44 public function getReportMenu(Individual $individual): Menu;
H A DModuleMenuInterface.php22 use Fisharebest\Webtrees\Menu; alias
58 * @return Menu|null
60 public function getMenu(Tree $tree): Menu|null;
H A DModuleThemeInterface.php23 use Fisharebest\Webtrees\Menu; alias
43 * @return Menu|null
45 public function menuThemes(): Menu|null;
H A DModuleMenuTrait.php22 use Fisharebest\Webtrees\Menu; alias
70 * @return Menu|null
72 public function getMenu(Tree $tree): Menu|null
H A DModuleListInterface.php22 use Fisharebest\Webtrees\Menu; alias
35 * @return Menu|null
37 public function listMenu(Tree $tree): Menu|null;
H A DStoriesModule.php27 use Fisharebest\Webtrees\Menu; alias
180 * @return Menu|null
182 public function getMenu(Tree $tree): Menu|null
184 return new Menu($this->title(), route('module', [
H A DFrequentlyAskedQuestionsModule.php25 use Fisharebest\Webtrees\Menu; alias
94 * @return Menu|null
96 public function getMenu(Tree $tree): Menu|null
99 return new Menu($this->title(), route('module', [
H A DInteractiveTreeModule.php25 use Fisharebest\Webtrees\Menu; alias
137 * @return Menu|null
139 public function chartBoxMenu(Individual $individual): Menu|null
/webtrees/tests/app/
H A DMenuTest.php29 $menu = new Menu('Test!');
40 $submenus = [new Menu('Submenu')];
41 $menu = new Menu('Test!', 'link.html', 'link-class', ['foo' => 'bar'], $submenus);
52 $menu = new Menu('Test!');
62 $menu = new Menu('Test!');
72 $menu = new Menu('Test!');
82 $menu = new Menu('Test!');
92 $menu = new Menu('Test!');
94 new Menu('Sub1'),
95 new Menu('Sub2'),
/webtrees/resources/views/
H A Dchart-box.phtml10 use Fisharebest\Webtrees\Menu; alias
19 * @var Collection|Menu[] $menus
30 …), Auth::user())->map(static function (ModuleChartInterface $module) use ($individual): Menu|null {
35 …$menus->push(new Menu('<strong>' . I18N::translate('Family with spouse') . '</strong>', $family->u…
38 $menus->push(new Menu($spouse->fullName(), $spouse->url()));
42 $menus->push(new Menu($child->fullName(), $child->url()));
/webtrees/app/
H A DMenu.php25 class Menu class
162 * @param Menu $menu
166 public function addSubmenu(Menu $menu): self

12345