diff options
Diffstat (limited to 'app/Theme/ThemeInterface.php')
| -rw-r--r-- | app/Theme/ThemeInterface.php | 177 |
1 files changed, 89 insertions, 88 deletions
diff --git a/app/Theme/ThemeInterface.php b/app/Theme/ThemeInterface.php index b0b4b162e8..755b1eafae 100644 --- a/app/Theme/ThemeInterface.php +++ b/app/Theme/ThemeInterface.php @@ -24,103 +24,104 @@ use Fisharebest\Webtrees\User; /** * Specification for a theme. */ -interface ThemeInterface { - /** - * Create a contact link for a user. - * - * @param User $user - * - * @return string - */ - public function contactLink(User $user); +interface ThemeInterface +{ + /** + * Create a contact link for a user. + * + * @param User $user + * + * @return string + */ + public function contactLink(User $user); - /** - * Display an icon for this fact. - * - * @param Fact $fact - * - * @return string - */ - public function icon(Fact $fact); + /** + * Display an icon for this fact. + * + * @param Fact $fact + * + * @return string + */ + public function icon(Fact $fact); - /** - * Display an individual in a box - for charts, etc. - * - * @param Individual $individual - * - * @return string - */ - public function individualBox(Individual $individual); + /** + * Display an individual in a box - for charts, etc. + * + * @param Individual $individual + * + * @return string + */ + public function individualBox(Individual $individual); - /** - * Display an empty box - for a missing individual in a chart. - * - * @return string - */ - public function individualBoxEmpty(); + /** + * Display an empty box - for a missing individual in a chart. + * + * @return string + */ + public function individualBoxEmpty(); - /** - * Display an individual in a box - for charts, etc. - * - * @param Individual $individual - * - * @return string - */ - public function individualBoxLarge(Individual $individual); + /** + * Display an individual in a box - for charts, etc. + * + * @param Individual $individual + * + * @return string + */ + public function individualBoxLarge(Individual $individual); - /** - * Display an individual in a box - for charts, etc. - * - * @param Individual $individual - * - * @return string - */ - public function individualBoxSmall(Individual $individual); + /** + * Display an individual in a box - for charts, etc. + * + * @param Individual $individual + * + * @return string + */ + public function individualBoxSmall(Individual $individual); - /** - * Display an individual in a box - for charts, etc. - * - * @return string - */ - public function individualBoxSmallEmpty(); + /** + * Display an individual in a box - for charts, etc. + * + * @return string + */ + public function individualBoxSmallEmpty(); - /** - * Initialise the theme. We cannot pass these in a constructor, as the construction - * happens in a theme file, and we need to be able to change it. - * - * @param Tree|null $tree The current tree (if there is one). - */ - public function init(Tree $tree = null); + /** + * Initialise the theme. We cannot pass these in a constructor, as the construction + * happens in a theme file, and we need to be able to change it. + * + * @param Tree|null $tree The current tree (if there is one). + */ + public function init(Tree $tree = null); - /** - * Links, to show in chart boxes; - * - * @param Individual $individual - * - * @return Menu[] - */ - public function individualBoxMenu(Individual $individual); + /** + * Links, to show in chart boxes; + * + * @param Individual $individual + * + * @return Menu[] + */ + public function individualBoxMenu(Individual $individual); - /** - * Misecellaneous dimensions, fonts, styles, etc. - * - * @param string $parameter_name - * - * @return string|int|float - */ - public function parameter($parameter_name); + /** + * Misecellaneous dimensions, fonts, styles, etc. + * + * @param string $parameter_name + * + * @return string|int|float + */ + public function parameter($parameter_name); - /** - * A fixed string to identify this theme, in settings, etc. - * - * @return string - */ - public function themeId(); + /** + * A fixed string to identify this theme, in settings, etc. + * + * @return string + */ + public function themeId(); - /** - * What is this theme called? - * - * @return string - */ - public function themeName(); + /** + * What is this theme called? + * + * @return string + */ + public function themeName(); } |
