. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Webtrees; /** * Class PoweredByWebtreesModule - provide a link to the project home page. */ class PoweredByWebtreesModule extends AbstractModule implements ModuleFooterInterface { use ModuleFooterTrait; /** * How should this module be labelled on tabs, footers, etc.? * * @return string */ public function title(): string { /* I18N: Name of a module */ return I18N::translate('Powered by webtrees™'); } /** * A sentence describing what this module does. * * @return string */ public function description(): string { /* I18N: Description of the “webtrees” module */ return I18N::translate('A link to the webtrees home page.'); } /** * The default position for this footer. It can be changed in the control panel. * * @return int */ public function defaultFooterOrder(): int { return 1; } /** * A footer, to be added at the bottom of every page. * * @return string */ public function getFooter(): string { return view('modules/powered-by-webtrees/footer', [ 'name' => Webtrees::NAME, 'url' => Webtrees::URL, ]); } }