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 <noreply@anthropic.com>
This commit is contained in:
DanielS
2026-11-11 00:33:33 +01:00
parent 8434d950dd
commit 9b4d6f1037
3 changed files with 27 additions and 1 deletions

View File

@@ -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));

View File

@@ -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;

View File

@@ -76,7 +76,7 @@
<!-- <link href='https://fonts.googleapis.com/css?family=Parisienne' rel='stylesheet' type='text/css'> -->
<!-- <link href='https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700,700italic' rel='stylesheet' type='text/css'> -->
{* Google Fonts removed (GDPR); Wasserrad skin self-hosts Lora and Open Sans and is loaded last *}
<link rel="stylesheet" href="{$css_dir|escape:'html':'UTF-8'}wasserrad.css?v=5" type="text/css" media="all" />
<link rel="stylesheet" href="{$css_dir|escape:'html':'UTF-8'}wasserrad.css?v=6" type="text/css" media="all" />
</head>
<!-- Built with QloApps -->
<body{if isset($page_name)} id="{$page_name|escape:'html':'UTF-8'}"{/if} class="qloapps {if isset($page_name)}{$page_name|escape:'html':'UTF-8'}{/if}{if isset($body_classes) && $body_classes|@count} {' '|implode:$body_classes}{/if}{if $hide_left_column} hide-left-column{else} show-left-column{/if}{if $hide_right_column} hide-right-column{else} hide-right-column{/if}{if isset($content_only) && $content_only} content_only{/if} lang_{$lang_iso}" style="{if $page_name == 'index'}height: 100%;{/if}">