Fix layout: add Smarty template inheritance for Hummingbird theme
Hummingbird (PS8) requires module front controller templates to explicitly
extend a layout via {extends}. Without it, the template renders as a bare
HTML fragment without the theme wrapper (no header, CSS, nav, footer).
All three front templates now extend layouts/layout-full-width.tpl and
define their content inside {block name='content'}.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
{extends file='layouts/layout-full-width.tpl'}
|
||||
|
||||
{block name='content'}
|
||||
<section class="cyp-withdrawal-page">
|
||||
<header class="page-header">
|
||||
<h1>{l s='Widerruf bestätigen' mod='simple_withdrawalbutton'}</h1>
|
||||
@@ -5,7 +8,7 @@
|
||||
|
||||
<div class="cyp-steps">
|
||||
<div class="cyp-step done">
|
||||
<div class="cyp-step-bubble">✓</div>
|
||||
<div class="cyp-step-bubble">✓</div>
|
||||
<div class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
|
||||
</div>
|
||||
<div class="cyp-step-line done"></div>
|
||||
@@ -107,3 +110,4 @@
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{extends file='layouts/layout-full-width.tpl'}
|
||||
|
||||
{block name='content'}
|
||||
<section class="cyp-withdrawal-page">
|
||||
<header class="page-header">
|
||||
<h1>{l s='Widerruf erklären' mod='simple_withdrawalbutton'}</h1>
|
||||
@@ -33,7 +36,7 @@
|
||||
display:flex; align-items:center; gap:10px; background:#eef2f8;
|
||||
border:1px solid #c5d4eb; border-radius:6px; padding:11px 14px;
|
||||
font-size:13px; color:var(--cyw-accent); margin-bottom:24px;">
|
||||
<span style="font-size:16px;">📅</span>
|
||||
<span style="font-size:16px;">📅</span>
|
||||
<span>
|
||||
{l s='Widerrufsfrist (14 Tage ab Bestelldatum): bis' mod='simple_withdrawalbutton'}
|
||||
<strong>{$withdrawal_deadline|escape:'html':'UTF-8'}</strong>
|
||||
@@ -164,3 +167,4 @@
|
||||
update();
|
||||
})();
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{extends file='layouts/layout-full-width.tpl'}
|
||||
|
||||
{block name='content'}
|
||||
<section class="cyp-withdrawal-page">
|
||||
<header class="page-header">
|
||||
<h1>{l s='Widerruf übermittelt' mod='simple_withdrawalbutton'}</h1>
|
||||
@@ -5,12 +8,12 @@
|
||||
|
||||
<div class="cyp-steps">
|
||||
<div class="cyp-step done">
|
||||
<div class="cyp-step-bubble">✓</div>
|
||||
<div class="cyp-step-bubble">✓</div>
|
||||
<div class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
|
||||
</div>
|
||||
<div class="cyp-step-line done"></div>
|
||||
<div class="cyp-step done">
|
||||
<div class="cyp-step-bubble">✓</div>
|
||||
<div class="cyp-step-bubble">✓</div>
|
||||
<div class="cyp-step-label">{l s='Prüfen' mod='simple_withdrawalbutton'}</div>
|
||||
</div>
|
||||
<div class="cyp-step-line done"></div>
|
||||
@@ -22,7 +25,7 @@
|
||||
|
||||
<div class="card card-block">
|
||||
<div class="cyp-success-header">
|
||||
<div class="cyp-success-icon" aria-hidden="true">✓</div>
|
||||
<div class="cyp-success-icon" aria-hidden="true">✓</div>
|
||||
{if isset($success_data.mail_ok) && $success_data.mail_ok}
|
||||
<h2>{l s='Ihr Widerruf wurde erfolgreich übermittelt.' mod='simple_withdrawalbutton'}</h2>
|
||||
<p>{l s='Eine Eingangsbestätigung wurde an Ihre E-Mail-Adresse gesendet.' mod='simple_withdrawalbutton'}</p>
|
||||
@@ -95,7 +98,8 @@
|
||||
</div>
|
||||
|
||||
<button class="cyp-print-btn" onclick="window.print()" type="button">
|
||||
⎙ {l s='Seite drucken / als PDF speichern' mod='simple_withdrawalbutton'}
|
||||
⎙ {l s='Seite drucken / als PDF speichern' mod='simple_withdrawalbutton'}
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user