diff --git a/ImprintFooterModule.php b/ImprintFooterModule.php index 5291dae..f20edb1 100644 --- a/ImprintFooterModule.php +++ b/ImprintFooterModule.php @@ -24,12 +24,6 @@ /* * tbd for next release * ============================================================== - * Fehlermeldung: Der Parameter "tree" fehlt, wenn die verantwortliche Person leer ist - * Formatierung: Name und Adresse oben auf einer Linie - * alle Übersetzungen aktualisieren (u.a. "Adreßzusatz") - * Test der Übersetzung "other" = "divers" - * Test ohne einen sichtbaren Baum - * Test der Initialisierung bei Erstverwendung mit erstem Admin (Name und E-Mail) * Test: alle Kombinationen von: Adreßzusatz = leer und Straße = leer und Ort = leer * README.md: Screenshot des erzeugten Impressums * README.md: Aktualisierung des Screenshots des Verwaltungsmenüs @@ -37,7 +31,11 @@ * tbd later on * ============================================================== * alle offenen issues aus GitHub - * Validierung der Base_URL + * Fehlermeldung: Der Parameter "tree" fehlt, wenn die verantwortliche Person leer ist + * Vorbelegung der verantwortlichen Person aus den Angaben für den ersten Website-Administrator (Vor-, Nachname, E-Mail) + * Formatierung: Name und Adresse oben auf einer Linie + * Test der Initialisierung bei Erstverwendung mit erstem Admin (Name und E-Mail) + * Validierung der Base_URL aktivieren * Warum is require_once nötig? * E-Mail-Funktion: check if there is one @ inside emailAddress and no blanks; if address is not correct: use it as simple eMail * Dokumentation in Deutsch für webtrees-Handbuch fertigstellen und README anpassen (Rückportierung) @@ -64,7 +62,6 @@ use Fisharebest\Webtrees\Module\PrivacyPolicy; use Fisharebest\Webtrees\Services\ModuleService; use Fisharebest\Webtrees\Services\UserService; -use Fisharebest\Webtrees\Tree; use Fisharebest\Webtrees\Validator; use Fisharebest\Webtrees\View; use Psr\Http\Message\ResponseInterface; @@ -372,8 +369,8 @@ public function getPageAction(ServerRequestInterface $request): ResponseInterfac return $this->viewResponse($this->name() . '::page', [ 'title' => $this->title(), - 'tree' => Validator::attributes($request)->tree(), - //'tree' => Validator::attributes($request)->treeOptional(), + //'tree' => Validator::attributes($request)->tree(), + 'tree' => Validator::attributes($request)->treeOptional(), 'imprintHead1' => I18N::translate('Responsible person'), 'imprintHead2' => I18N::translate('This website is operated by:'), 'responsibleName' => $this->responsibleName(), @@ -644,14 +641,14 @@ private function getHostName(ServerRequestInterface $request): string * @source https://gravatar.com/site/implement/images/php/ */ private function getGravatar( string $email, string $s = '80', string $d = 'mp', string $r = 'g', - bool $img = true, array $atts = array() ) : string + bool $img = true, array $attributes = array() ) : string { $url = 'https://www.gravatar.com/avatar/'; $url .= md5( strtolower( trim( $email ) ) ); $url .= "?s=$s&d=$d&r=$r"; if ( $img ) { $url = ' $val ) + foreach ( $attributes as $key => $val ) $url .= ' ' . $key . '="' . $val . '"'; $url .= ' />'; } diff --git a/README.md b/README.md index f5cf0e8..60a9751 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,10 @@ The webtrees admin can choose if the following additional parts should be shown ## Screenshots -Screenshot of control panel page +Screenshot of imprint (in German language) +

Screenshot of imprint

+ +Screenshot of control panel page (in German language)

Screenshot of control panel menu

@@ -85,7 +88,8 @@ This section documents installation instructions for this module. 4. Rename the folder to `hh_imprint` 5. Login to **webtrees** as administrator, go to Control Panel/Modules/Website/Footers, and find the module. It will be called "Imprint". Check if it has a tick for "Enabled". 6. Click at the wrench symbol and add all desired information fields -7. Finally, click SAVE, to complete the installation. +7. Maybe you like to deactivate the module "contact information" (depending whether you have activated this in the imprint module). +8. Finally, click SAVE, to complete the installation. ## Upgrade diff --git a/resources/docs/imprint.png b/resources/docs/imprint.png new file mode 100644 index 0000000..518833a Binary files /dev/null and b/resources/docs/imprint.png differ diff --git a/resources/docs/imprint_control_panel.png b/resources/docs/imprint_control_panel.png index 9626c4c..3e73e2e 100644 Binary files a/resources/docs/imprint_control_panel.png and b/resources/docs/imprint_control_panel.png differ diff --git a/resources/lang/de.po b/resources/lang/de.po index d168de2..6ce34c9 100644 --- a/resources/lang/de.po +++ b/resources/lang/de.po @@ -149,7 +149,7 @@ msgstr[0] "Der Website-Verwalter ist für die Benutzerverwaltung zuständig und msgstr[1] "Die Website-Verwalter sind für die Benutzerverwaltung zuständig und definieren die Einstellungen für diese Website." #: resources/views/settings.phtml:77 -msgid "other" +msgid "other sex" msgstr "divers" #: resources/views/settings.phtml:215 diff --git a/resources/lang/nl.mo b/resources/lang/nl.mo index e00d70a..7bcafb0 100644 Binary files a/resources/lang/nl.mo and b/resources/lang/nl.mo differ diff --git a/resources/lang/nl.po b/resources/lang/nl.po index 290f837..b205b27 100644 --- a/resources/lang/nl.po +++ b/resources/lang/nl.po @@ -116,7 +116,7 @@ msgid "female" msgstr "vrouw" #: resources/views/settings.phtml:77 -msgid "other" +msgid "other sex" msgstr "overig" #: resources/views/settings.phtml:87 diff --git a/resources/views/settings.phtml b/resources/views/settings.phtml index 4a75612..af39e74 100644 --- a/resources/views/settings.phtml +++ b/resources/views/settings.phtml @@ -74,7 +74,7 @@ use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 'options' => [ 'M' => I18N::translate('male'), 'F' => I18N::translate('female'), - 'X' => I18N::translate('other'), + 'X' => I18N::translate('other sex'), ], 'selected' => $responsibleSex, ]) ?>