From 9b4d6f1037229228b113a9ee185b9b848b02b8ed Mon Sep 17 00:00:00 2001 From: DanielS Date: Wed, 11 Nov 2026 00:33:33 +0100 Subject: [PATCH] Wasserrad: German menu and units, inner-page header, cleaner demo data Seed script renames menu links and "Room/Rooms" unit labels to German, hides the Properties/Testimonials links, removes demo room features (King, 600 sq ft) and copies gallery photos unpadded. Skin gets the wine header on inner pages and object-fit gallery thumbnails. Co-Authored-By: Claude Opus 5.5 --- docker/seed-wasserrad-demo.php | 20 +++++++++++++++++++ .../hotel-reservation-theme/css/wasserrad.css | 6 ++++++ themes/hotel-reservation-theme/header.tpl | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/docker/seed-wasserrad-demo.php b/docker/seed-wasserrad-demo.php index 1040cedc0..fe83152d1 100644 --- a/docker/seed-wasserrad-demo.php +++ b/docker/seed-wasserrad-demo.php @@ -161,6 +161,26 @@ foreach (Db::getInstance()->executeS('SELECT id_interior_image, name FROM '._DB_ } $log(count($gallery).' Bilder'); +echo "Unit labels and room features\n"; +// "Room"/"Rooms" etc. are DB labels inserted in English by the installer. +$units = array(1 => array('Zimmer', 'Zimmer'), 2 => array('Bett', 'Betten'), 3 => array('Ferienwohnung', 'Ferienwohnungen'), 27 => array('Ferienhaus', 'Ferienhäuser')); +foreach ($units as $id => $u) { + Db::getInstance()->update('room_type_selling_object_lang', array('name' => pSQL($u[0]), 'plural_name' => pSQL($u[1])), 'id_room_type_selling_object = '.(int)$id); +} +// Demo features ("King", "600 sq ft", "Smart TV") are not this hotel's data: remove them from the rooms. +Db::getInstance()->delete('feature_product', 'id_product IN ('.implode(',', array_map('intval', array_keys($rooms))).')'); +$log('Einheiten auf Deutsch, Demo-Ausstattungsmerkmale entfernt'); + +echo "Navigation\n"; +// Menu labels are stored in the DB in English. Single property: hide "Properties"; +// testimonials are hidden below, so hide that link too. +$nav = array(1 => 'Startseite', 3 => 'Ambiente', 4 => 'Ausstattung', 5 => 'Zimmer', 12 => 'Kontakt'); +foreach ($nav as $id => $label) { + Db::getInstance()->update('htl_custom_navigation_link_lang', array('name' => pSQL($label)), 'id_navigation_link = '.(int)$id); +} +Db::getInstance()->update('htl_custom_navigation_link', array('active' => 0), 'id_navigation_link IN (2, 6)'); +$log('Menü auf Deutsch, "Properties" und "Testimonials" ausgeblendet'); + echo "Testimonials\n"; // Demo reviews mention "Hotel Prime": hide them instead of showing invented guest quotes. Db::getInstance()->update('htl_testimonials_block_data', array('active' => 0)); diff --git a/themes/hotel-reservation-theme/css/wasserrad.css b/themes/hotel-reservation-theme/css/wasserrad.css index cb04a0caa..eb5531bdf 100644 --- a/themes/hotel-reservation-theme/css/wasserrad.css +++ b/themes/hotel-reservation-theme/css/wasserrad.css @@ -313,6 +313,12 @@ body .footer-container #footer .social_block a { background-color: var(--wr-wine body .footer-container #footer .form-control { background: rgba(255, 255, 255, .08); border-color: rgba(241, 226, 169, .3); color: #fff; } /* ---------- Inner pages ---------- */ +body:not(#index) #header { + background: linear-gradient(180deg, var(--wr-wine-deep) 0%, var(--wr-wine) 100%) !important; + border-bottom: 4px solid var(--wr-terra); +} +body:not(#index) .header-rmsearch-details-wrapper { background: var(--wr-sand-soft) !important; border-bottom: 1px solid var(--wr-line); } +body .product_reviews_link, body a[href*="review"], body .open-review-form { color: var(--wr-wine) !important; } body .page-heading { border-bottom: 2px solid var(--wr-sand); color: var(--wr-wine) !important; diff --git a/themes/hotel-reservation-theme/header.tpl b/themes/hotel-reservation-theme/header.tpl index 144a38378..e65323865 100644 --- a/themes/hotel-reservation-theme/header.tpl +++ b/themes/hotel-reservation-theme/header.tpl @@ -76,7 +76,7 @@ {* Google Fonts removed (GDPR); Wasserrad skin self-hosts Lora and Open Sans and is loaded last *} - +