xref: /webtrees/app/Module/ModuleThemeInterface.php (revision fceda430129b1f9eadbe3ee42fc1f28a5c37c72b)
1a25f0a04SGreg Roach<?php
23976b470SGreg Roach
3a25f0a04SGreg Roach/**
4a25f0a04SGreg Roach * webtrees: online genealogy
58fcd0d32SGreg Roach * Copyright (C) 2019 webtrees development team
6a25f0a04SGreg Roach * This program is free software: you can redistribute it and/or modify
7a25f0a04SGreg Roach * it under the terms of the GNU General Public License as published by
8a25f0a04SGreg Roach * the Free Software Foundation, either version 3 of the License, or
9a25f0a04SGreg Roach * (at your option) any later version.
10a25f0a04SGreg Roach * This program is distributed in the hope that it will be useful,
11a25f0a04SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12a25f0a04SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13a25f0a04SGreg Roach * GNU General Public License for more details.
14a25f0a04SGreg Roach * You should have received a copy of the GNU General Public License
15a25f0a04SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
16a25f0a04SGreg Roach */
17fcfa147eSGreg Roach
18e7f56f2aSGreg Roachdeclare(strict_types=1);
19e7f56f2aSGreg Roach
2076692c8bSGreg Roachnamespace Fisharebest\Webtrees\Module;
21a25f0a04SGreg Roach
22ade503dfSGreg Roachuse Fisharebest\Webtrees\Individual;
23ade503dfSGreg Roachuse Fisharebest\Webtrees\Menu;
240c8c69d4SGreg Roachuse Fisharebest\Webtrees\Tree;
25ade503dfSGreg Roach
26a25f0a04SGreg Roach/**
27ade503dfSGreg Roach * Interface ModuleThemelInterface - Classes and libraries for module system
28a25f0a04SGreg Roach */
2937eb8894SGreg Roachinterface ModuleThemeInterface extends ModuleInterface
30c1010edaSGreg Roach{
31ade503dfSGreg Roach    /**
32ade503dfSGreg Roach     * Links, to show in chart boxes;
33ade503dfSGreg Roach     *
34ade503dfSGreg Roach     * @param Individual $individual
35ade503dfSGreg Roach     *
36ade503dfSGreg Roach     * @return Menu[]
37ade503dfSGreg Roach     */
38ade503dfSGreg Roach    public function individualBoxMenu(Individual $individual): array;
39ade503dfSGreg Roach
40ade503dfSGreg Roach    /**
41ade503dfSGreg Roach     * Themes menu.
42ade503dfSGreg Roach     *
43ade503dfSGreg Roach     * @return Menu|null
44ade503dfSGreg Roach     */
45e364afe4SGreg Roach    public function menuThemes(): ?Menu;
46ade503dfSGreg Roach
47ade503dfSGreg Roach    /**
48*fceda430SGreg Roach     * Miscellaneous dimensions, fonts, styles, etc.
49ade503dfSGreg Roach     *
50ade503dfSGreg Roach     * @param string $parameter_name
51ade503dfSGreg Roach     *
52ade503dfSGreg Roach     * @return string|int|float
53ade503dfSGreg Roach     */
54ade503dfSGreg Roach    public function parameter($parameter_name);
55ade503dfSGreg Roach
56ade503dfSGreg Roach    /**
57ade503dfSGreg Roach     * Generate a list of items for the main menu.
58ade503dfSGreg Roach     *
590c8c69d4SGreg Roach     * @param Tree|null $tree
600c8c69d4SGreg Roach     *
61ade503dfSGreg Roach     * @return Menu[]
62ade503dfSGreg Roach     */
630c8c69d4SGreg Roach    public function genealogyMenu(?Tree $tree): array;
64ade503dfSGreg Roach
65ade503dfSGreg Roach    /**
66ade503dfSGreg Roach     * Generate a list of items for the user menu.
67ade503dfSGreg Roach     *
680c8c69d4SGreg Roach     * @param Tree|null $tree
690c8c69d4SGreg Roach     *
70ade503dfSGreg Roach     * @return Menu[]
71ade503dfSGreg Roach     */
720c8c69d4SGreg Roach    public function userMenu(?Tree $tree): array;
73ade503dfSGreg Roach
74ade503dfSGreg Roach    /**
75ade503dfSGreg Roach     * A list of CSS files to include for this page.
76ade503dfSGreg Roach     *
77ade503dfSGreg Roach     * @return string[]
78ade503dfSGreg Roach     */
79ade503dfSGreg Roach    public function stylesheets(): array;
80a25f0a04SGreg Roach}
81