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 parent
9bd62125d5
commit
4597e96545
3 files changed
+18
-6
No files matched your search
@@ -1,3 +1,6 @@
|
|||||||
|
{extends file='layouts/layout-full-width.tpl'}
|
||||||
|
|
||||||
|
{block name='content'}
|
||||||
<section class="cyp-withdrawal-page">
|
<section class="cyp-withdrawal-page">
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1>{l s='Widerruf bestätigen' mod='simple_withdrawalbutton'}</h1>
|
<h1>{l s='Widerruf bestätigen' mod='simple_withdrawalbutton'}</h1>
|
||||||
@@ -5,7 +8,7 @@
|
|||||||
|
|
||||||
<div class="cyp-steps">
|
<div class="cyp-steps">
|
||||||
<div class="cyp-step done">
|
<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 class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cyp-step-line done"></div>
|
<div class="cyp-step-line done"></div>
|
||||||
@@ -107,3 +110,4 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{/block}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
{extends file='layouts/layout-full-width.tpl'}
|
||||||
|
|
||||||
|
{block name='content'}
|
||||||
<section class="cyp-withdrawal-page">
|
<section class="cyp-withdrawal-page">
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1>{l s='Widerruf erklären' mod='simple_withdrawalbutton'}</h1>
|
<h1>{l s='Widerruf erklären' mod='simple_withdrawalbutton'}</h1>
|
||||||
@@ -33,7 +36,7 @@
|
|||||||
display:flex; align-items:center; gap:10px; background:#eef2f8;
|
display:flex; align-items:center; gap:10px; background:#eef2f8;
|
||||||
border:1px solid #c5d4eb; border-radius:6px; padding:11px 14px;
|
border:1px solid #c5d4eb; border-radius:6px; padding:11px 14px;
|
||||||
font-size:13px; color:var(--cyw-accent); margin-bottom:24px;">
|
font-size:13px; color:var(--cyw-accent); margin-bottom:24px;">
|
||||||
<span style="font-size:16px;">📅</span>
|
<span style="font-size:16px;">📅</span>
|
||||||
<span>
|
<span>
|
||||||
{l s='Widerrufsfrist (14 Tage ab Bestelldatum): bis' mod='simple_withdrawalbutton'}
|
{l s='Widerrufsfrist (14 Tage ab Bestelldatum): bis' mod='simple_withdrawalbutton'}
|
||||||
<strong>{$withdrawal_deadline|escape:'html':'UTF-8'}</strong>
|
<strong>{$withdrawal_deadline|escape:'html':'UTF-8'}</strong>
|
||||||
@@ -164,3 +167,4 @@
|
|||||||
update();
|
update();
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
{/block}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
{extends file='layouts/layout-full-width.tpl'}
|
||||||
|
|
||||||
|
{block name='content'}
|
||||||
<section class="cyp-withdrawal-page">
|
<section class="cyp-withdrawal-page">
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1>{l s='Widerruf übermittelt' mod='simple_withdrawalbutton'}</h1>
|
<h1>{l s='Widerruf übermittelt' mod='simple_withdrawalbutton'}</h1>
|
||||||
@@ -5,12 +8,12 @@
|
|||||||
|
|
||||||
<div class="cyp-steps">
|
<div class="cyp-steps">
|
||||||
<div class="cyp-step done">
|
<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 class="cyp-step-label">{l s='Angaben' mod='simple_withdrawalbutton'}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cyp-step-line done"></div>
|
<div class="cyp-step-line done"></div>
|
||||||
<div class="cyp-step done">
|
<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 class="cyp-step-label">{l s='Prüfen' mod='simple_withdrawalbutton'}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cyp-step-line done"></div>
|
<div class="cyp-step-line done"></div>
|
||||||
@@ -22,7 +25,7 @@
|
|||||||
|
|
||||||
<div class="card card-block">
|
<div class="card card-block">
|
||||||
<div class="cyp-success-header">
|
<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}
|
{if isset($success_data.mail_ok) && $success_data.mail_ok}
|
||||||
<h2>{l s='Ihr Widerruf wurde erfolgreich übermittelt.' mod='simple_withdrawalbutton'}</h2>
|
<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>
|
<p>{l s='Eine Eingangsbestätigung wurde an Ihre E-Mail-Adresse gesendet.' mod='simple_withdrawalbutton'}</p>
|
||||||
@@ -95,7 +98,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="cyp-print-btn" onclick="window.print()" type="button">
|
<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>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{/block}
|
||||||
Reference in new issue
Block a user