From e9ebf89c6a8510a88a94096d162a460f4b642473 Mon Sep 17 00:00:00 2001 From: MarkusGaertner Date: Mon, 16 May 2022 15:14:57 +0200 Subject: [PATCH] add templates for wave theme --- .../blocks/captcha_form_contact_wave.tpl | 3 +++ .../blocks/captcha_form_forgotpwd_wave.tpl | 3 +++ .../blocks/captcha_form_newsletter_wave.tpl | 3 +++ .../blocks/captcha_form_user_billing_wave.tpl | 3 +++ .../views/blocks/captcha_form_wave.tpl | 3 +++ application/views/tpl/oecaptcha_wave.tpl | 19 +++++++++++++++ metadata.php | 24 ++++++++++++------- 7 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 application/views/blocks/captcha_form_contact_wave.tpl create mode 100644 application/views/blocks/captcha_form_forgotpwd_wave.tpl create mode 100644 application/views/blocks/captcha_form_newsletter_wave.tpl create mode 100644 application/views/blocks/captcha_form_user_billing_wave.tpl create mode 100644 application/views/blocks/captcha_form_wave.tpl create mode 100644 application/views/tpl/oecaptcha_wave.tpl diff --git a/application/views/blocks/captcha_form_contact_wave.tpl b/application/views/blocks/captcha_form_contact_wave.tpl new file mode 100644 index 0000000..8974429 --- /dev/null +++ b/application/views/blocks/captcha_form_contact_wave.tpl @@ -0,0 +1,3 @@ +[{$smarty.block.parent}] + +[{include file="oecaptcha_wave.tpl" labelCssClass="control-label col-lg-2" inputCssClass="col-lg-5"}] diff --git a/application/views/blocks/captcha_form_forgotpwd_wave.tpl b/application/views/blocks/captcha_form_forgotpwd_wave.tpl new file mode 100644 index 0000000..dbe9680 --- /dev/null +++ b/application/views/blocks/captcha_form_forgotpwd_wave.tpl @@ -0,0 +1,3 @@ +[{$smarty.block.parent}] + +[{include file="oecaptcha_wave.tpl" labelCssClass="col-lg-2" inputCssClass="col-lg-5"}] diff --git a/application/views/blocks/captcha_form_newsletter_wave.tpl b/application/views/blocks/captcha_form_newsletter_wave.tpl new file mode 100644 index 0000000..8974429 --- /dev/null +++ b/application/views/blocks/captcha_form_newsletter_wave.tpl @@ -0,0 +1,3 @@ +[{$smarty.block.parent}] + +[{include file="oecaptcha_wave.tpl" labelCssClass="control-label col-lg-2" inputCssClass="col-lg-5"}] diff --git a/application/views/blocks/captcha_form_user_billing_wave.tpl b/application/views/blocks/captcha_form_user_billing_wave.tpl new file mode 100644 index 0000000..71e8bd3 --- /dev/null +++ b/application/views/blocks/captcha_form_user_billing_wave.tpl @@ -0,0 +1,3 @@ +[{$smarty.block.parent}] + +[{include file="oecaptcha_wave.tpl" labelCssClass="col-lg-3" inputCssClass="col-lg-5"}] diff --git a/application/views/blocks/captcha_form_wave.tpl b/application/views/blocks/captcha_form_wave.tpl new file mode 100644 index 0000000..02388f2 --- /dev/null +++ b/application/views/blocks/captcha_form_wave.tpl @@ -0,0 +1,3 @@ +[{$smarty.block.parent}] + +[{include file="oecaptcha_wave.tpl" labelCssClass="col-lg-3" inputCssClass="col-lg-8"}] diff --git a/application/views/tpl/oecaptcha_wave.tpl b/application/views/tpl/oecaptcha_wave.tpl new file mode 100644 index 0000000..123e276 --- /dev/null +++ b/application/views/tpl/oecaptcha_wave.tpl @@ -0,0 +1,19 @@ +[{assign var="oCaptcha" value=$oView->getCaptcha()}] + + +
+ + +
+
+ + [{if $oCaptcha->isImageVisible()}] + + [{else}] + [{$oCaptcha->getText()}] + [{/if}] + + +
+
+
\ No newline at end of file diff --git a/metadata.php b/metadata.php index 1c44928..7956f40 100755 --- a/metadata.php +++ b/metadata.php @@ -55,16 +55,24 @@ $aModule = array( ), 'templates' => array( 'oecaptcha.tpl' => 'oe/captcha/application/views/tpl/oecaptcha.tpl', + 'oecaptcha_wave.tpl' => 'oe/captcha/application/views/tpl/oecaptcha_wave.tpl', ), 'blocks' => array( - array('template' => 'form/contact.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'), - array('template' => 'form/newsletter.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'), - array('template' => 'form/privatesales/invite.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'), - array('template' => 'form/pricealarm.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'), - array('template' => 'form/suggest.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'), - array('template' => 'form/forgotpwd_email.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form_forgotpwd.tpl'), - array('template' => 'form/fieldset/user_billing.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl' - ), + array('template' => 'form/contact.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'), + array('template' => 'form/newsletter.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'), + array('template' => 'form/privatesales/invite.tpl', 'theme' => 'flow', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'), + array('template' => 'form/pricealarm.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'), + array('template' => 'form/suggest.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'), + array('template' => 'form/forgotpwd_email.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form_forgotpwd.tpl'), + array('template' => 'form/fieldset/user_billing.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'), + + array('template' => 'form/contact.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_contact_wave.tpl'), + array('template' => 'form/newsletter.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_newsletter_wave.tpl'), + array('template' => 'form/privatesales/invite.tpl', 'theme' => 'wave', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form_wave.tpl'), + array('template' => 'form/pricealarm.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_wave.tpl'), + array('template' => 'form/suggest.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_wave.tpl'), + array('template' => 'form/forgotpwd_email.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_forgotpwd_wave.tpl'), + array('template' => 'form/fieldset/user_billing.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_user_billing_wave.tpl'), ), 'settings' => array( array('group' => 'main', 'name' => 'oecaptchakey', 'type' => 'str', 'value' => ''),