3 Commits

Author SHA1 Message Date
Arne Weiss f74bf7a73f Bump version to 0.1.7
Build / build (push) Successful in 13s
Release / release (push) Successful in 12s
2026-06-01 09:57:08 +02:00
Arne Weiss 18636c13c0 Bump version to 0.1.6 2026-06-01 09:56:25 +02:00
Arne Weiss 4597e96545 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>
2026-06-01 09:56:25 +02:00
4 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class Simple_withdrawalbutton extends Module
{
$this->name = 'simple_withdrawalbutton';
$this->tab = 'administration';
$this->version = '0.1.5';
$this->version = '0.1.7';
$this->author = 'Arne Weiss';
$this->need_instance = 0;
$this->bootstrap = true;
+5 -1
View File
@@ -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">&#10003;</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}
+5 -1
View File
@@ -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;">&#128197;</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}
+8 -4
View File
@@ -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">&#10003;</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">&#10003;</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">&#10003;</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'}
&#9113; {l s='Seite drucken / als PDF speichern' mod='simple_withdrawalbutton'}
</button>
</div>
</section>
{/block}