1<?php 2/** 3 * webtrees: online genealogy 4 * Copyright (C) 2019 webtrees development team 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16declare(strict_types=1); 17 18namespace Fisharebest\Webtrees\Module; 19 20use Fisharebest\Webtrees\Fact; 21use Fisharebest\Webtrees\Individual; 22use Fisharebest\Webtrees\Menu; 23use Fisharebest\Webtrees\Tree; 24 25/** 26 * Interface ModuleThemelInterface - Classes and libraries for module system 27 */ 28interface ModuleThemeInterface extends ModuleInterface 29{ 30 /** 31 * Display an icon for this fact. 32 * 33 * @param Fact $fact 34 * 35 * @return string 36 */ 37 public function icon(Fact $fact): string; 38 39 /** 40 * Links, to show in chart boxes; 41 * 42 * @param Individual $individual 43 * 44 * @return Menu[] 45 */ 46 public function individualBoxMenu(Individual $individual): array; 47 48 /** 49 * Themes menu. 50 * 51 * @return Menu|null 52 */ 53 public function menuThemes(): ?Menu; 54 55 /** 56 * Misecellaneous dimensions, fonts, styles, etc. 57 * 58 * @param string $parameter_name 59 * 60 * @return string|int|float 61 */ 62 public function parameter($parameter_name); 63 64 /** 65 * Generate a list of items for the main menu. 66 * 67 * @param Tree|null $tree 68 * 69 * @return Menu[] 70 */ 71 public function genealogyMenu(?Tree $tree): array; 72 73 /** 74 * Generate a list of items for the user menu. 75 * 76 * @param Tree|null $tree 77 * 78 * @return Menu[] 79 */ 80 public function userMenu(?Tree $tree): array; 81 82 /** 83 * A list of CSS files to include for this page. 84 * 85 * @return string[] 86 */ 87 public function stylesheets(): array; 88} 89