Entwicklerhinweis "Entwickelt von Loheide.eu" ergänzen
Some checks are pending
CI / PHP Lint (push) Waiting to run
CI / PHP Lint-1 (push) Waiting to run
CI / Unit Tests & Static Analysis (push) Waiting to run
CI / PHP Lint (pull_request) Waiting to run
CI / PHP Lint-1 (pull_request) Waiting to run
CI / Unit Tests & Static Analysis (pull_request) Waiting to run
Some checks are pending
CI / PHP Lint (push) Waiting to run
CI / PHP Lint-1 (push) Waiting to run
CI / Unit Tests & Static Analysis (push) Waiting to run
CI / PHP Lint (pull_request) Waiting to run
CI / PHP Lint-1 (pull_request) Waiting to run
CI / Unit Tests & Static Analysis (pull_request) Waiting to run
Zentral in Ui::credit() gepflegt und dezent im Seitenfuß eingebunden:
- Admin-Bereich: unter dem Benutzerbereich in der Sidebar
- öffentliche Voucher-Seite: unter der Karte
- Anmeldung, Installer und Updater: am Ende der jeweiligen Karte
- Wartungsseite: direkt im Markup, da sie bewusst eigenständig bleibt
- README: im Kopf und in der Fußzeile
Der Hinweis ist übersetzt ("Entwickelt von" / "Developed by") und stört
das Branding der Betreiber nicht – die konfigurierbare Fußzeile der
Login-Seite bleibt unverändert.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
7dc60c5bb0
commit
7fa423a74c
26 changed files with 45 additions and 2 deletions
|
|
@ -116,6 +116,22 @@ class Ui
|
|||
. '</style>';
|
||||
}
|
||||
|
||||
/** Entwicklerhinweis – bewusst an einer Stelle gepflegt. */
|
||||
public const CREDIT_NAME = 'Loheide.eu';
|
||||
public const CREDIT_URL = 'https://loheide.eu';
|
||||
|
||||
/**
|
||||
* Dezenter Hinweis auf den Entwickler, wie er im Seitenfuß erscheint.
|
||||
*/
|
||||
public static function credit(): string
|
||||
{
|
||||
$label = function_exists('__') ? __('credit_by') : 'Entwickelt von';
|
||||
|
||||
return '<p class="app-credit">' . htmlspecialchars($label) . ' '
|
||||
. '<a href="' . self::CREDIT_URL . '" target="_blank" rel="noopener">'
|
||||
. self::CREDIT_NAME . '</a></p>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Standard-Druckvorlage (wird nur verwendet, solange keine eigene
|
||||
* Vorlage gespeichert ist). {QR_CODE} fuellt der Browser.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue