Skip to content

Commit fffdd84

Browse files
committed
IONOS(theming): fix dynamic copyright year in guest footer
- Add --current-year CSS variable (set from date('Y') in IonosTheme::getCSSVariables()) so the guest-page footer copyright year is not hardcoded - Use content: '© ' var(--current-year) ' IONOS SE' in guest.css Signed-off-by: Tatjana Kaschperko Lindt <kaschperko-lindt@strato.de> Assisted-by: ClaudeCode:claude-sonnet-4-6
1 parent 642ea42 commit fffdd84

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/theming/css/ionos/guest.css‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
* bottom of the viewport instead of appearing as an inline chip.
1414
*
1515
* The footer text "HiDrive Next" (getShortFooter entity) is replaced
16-
* with "© YEAR IONOS SE" via a CSS pseudo-element. The slogan is set to
16+
* with "© YEAR IONOS SE" via a CSS pseudo-element; the year comes from the
17+
* --current-year CSS variable set in IonosTheme::getCSSVariables(). The slogan is set to
1718
* empty in nc-config so getShortFooter() only renders the entity <a>.
1819
* The href still points to the configured ionos_homepage URL.
1920
*/
@@ -36,7 +37,7 @@ body#body-login footer.guest-box p.info a.entity-name {
3637
}
3738

3839
body#body-login footer.guest-box p.info a.entity-name::before {
39-
content: '© 2026 IONOS SE';
40+
content: '© ' var(--current-year) ' IONOS SE';
4041
font-size: var(--default-font-size, 14px);
4142
color: var(--color-text-maxcontrast);
4243
}

‎apps/theming/lib/Themes/IonosTheme.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ public function getCSSVariables(): array {
274274
'--background-invert-if-bright' => 'invert(100%)',
275275
'--background-image-invert-if-bright' => 'no',
276276
'--background-image-color-text' => '#ffffff',
277+
'--current-year' => '"' . date('Y') . '"',
277278
];
278279

279280
return array_merge(

0 commit comments

Comments
 (0)